Commit Graph

91 Commits

Author SHA1 Message Date
Wliu
74e830358d Save the state before the browser window is closed 2015-12-14 17:31:27 -05:00
Wliu
ed96ac7daf browserWindow.restart -> .reload 2015-12-12 21:35:14 -05:00
Wliu
d6fa46acce Update browser files to use require 'electron' 2015-12-12 13:22:22 -05:00
Wliu
dfe27ff989 More deprecations 2015-11-19 20:49:05 -05:00
Wliu
6cd480b37e Fix Electron deprecations 2015-11-17 21:16:09 -05:00
Wliu
232f54ed84 🔥 subpixel-font-scaling
This option was removed in Electron v0.33.9
2015-11-07 10:41:03 -05:00
Kevin Sawicki
77f9e9e5c5 Don't pull atomHome from settings, use env var only 2015-11-03 15:20:59 -08:00
Kevin Sawicki
999bf8911e Set atomHome on load settings from env var 2015-11-03 14:29:44 -08:00
Dave Rael
5d5d83d474 Remove duplication of locating Atom Home 2015-11-03 14:10:37 -08:00
Wliu
6495f1a531 Revert "🔥 subpixel-font-scaling"
This reverts commit 1c0420b3bb.
2015-10-16 19:58:47 -04:00
Wliu
1c0420b3bb 🔥 subpixel-font-scaling
This option was removed in Electron v0.33.9
2015-10-16 19:57:40 -04:00
Nathan Sobo
26a5b26cb9 Merge pull request #8779 from atom/cz-electron-32
Update to Electron v0.33.x
2015-10-16 15:59:14 -06:00
Max Brunsfeld
cd9e24ea33 Don't prevent renderer-side reloads 2015-10-16 12:04:35 -07:00
Nathan Sobo
5f2b5a16df Use WebContents.prototype.isLoading instead of defunct .loaded
Fixes cmd-o interaction.
2015-10-16 11:08:51 -06:00
Nathan Sobo
d4c88cc7fd Merge branch 'master' into ns-alternative-test-env 2015-10-12 15:55:28 -06:00
Thomas Johansen
af36a23e95 🐛 Fix #4300 by preventing 'will-navigate' 2015-10-10 01:21:49 +02:00
Antonio Scandurra
4863b71fd7 Set timeout in the main process 2015-10-09 09:20:19 +02:00
Antonio Scandurra
5da32540b1 🎨 2015-10-08 11:54:11 +02:00
Antonio Scandurra
1d280e8d92 Introduce timeout option
The idea with this commit is to implement a timeout functionality that does not
rely on a system utility (such as unix `timeout`). Tests could hang because of a
CPU-bound task and, as a result, we need to handle timeouts in a separate
process.

An ideal implementation would first spawn the timeout, which in turn would spawn
the tests, acting as a supervisor and making sure they do not exceed the
supplied time. However, setting up such an environment would have been trickier,
thus the test process spawns the timeout cop before running any test. This, in
turn, invokes a `setTimeout` function and kills the parent process as soon as
the timeout gets triggered, logging to console the reason why the parent process
was killed (and exiting the parent process with code 130).

I haven't used `Task` because, in order to log stuff to the console, we need to
fork the ChildProcess from `remote`, as otherwise nothing gets written out.
2015-10-08 11:38:48 +02:00
Nathan Sobo
4c51d29868 Merge remote-tracking branch 'origin/master' into ns-alternative-test-env 2015-10-07 16:10:29 -05:00
Nathan Sobo
d34968b750 Prevent GPU throttling for hidden test windows 2015-10-07 15:25:00 -05:00
Nathan Sobo
8e988e874e Rename exitWhenDone to headless 2015-10-07 15:24:50 -05:00
Antonio Scandurra
beb7896234 Enable subpixel font scaling
For certain font sizes, enabling `textRendering: optimizeLegibility` caused a
bunch of measurement-related issues. You can reproduce it by setting the following in your stylesheet:

```
atom-text-editor {
  font-size: 14px;
  text-rendering: optimizeLegibility;
}
```

Although I wanted to defer subpixel font scaling to a later moment, it seems
like Chrome needs to have it enabled in order to properly support the
"legibility" path for text rendering. (I guess this is part of the reason why
the Chromium team enabled it by default at some point in the past.)
2015-10-02 18:14:09 +02:00
Max Brunsfeld
61f7de736f Normalize resource path drive letters in main 2015-09-01 12:20:05 -07:00
Kevin Sawicki
30dccf987d Require dialog and shell early in browser process
Prevents issues when the asar bundle changes before these
files are required.
2015-07-06 16:49:59 -07:00
Kevin Sawicki
9c4dd71de2 Remove deferred browser process requires 2015-06-29 13:30:37 -07:00
Kevin Sawicki
85a4ae7fea Remove --include-deprecated-apis command line option 2015-06-24 16:51:48 -04:00
Kevin Sawicki
c3953dbbd4 Don't focus when opening locations 2015-06-10 09:27:20 -07:00
Max Brunsfeld
6bccfcd0a3 Guard for atom windows w/ no webContents 2015-06-09 16:45:27 -07:00
Kevin Sawicki
bf37a66831 Rename --one to --include-deprecated-apis 2015-06-02 16:36:20 -07:00
Max Brunsfeld
3d05ae02ba Reopen windows when launching w/ no arguments 2015-04-14 14:18:44 -07:00
Kevin Sawicki
f79c2669fc Add 1.0 API preview command line option 2015-04-03 11:27:59 -07:00
Max Brunsfeld
49e92a45ae Update loadSettings as project paths change
This way, reloading the window always preserves your current state.
2015-03-04 17:40:24 -08:00
Max Brunsfeld
9bb4968e6f Store load settings in URL fragment, not query string 2015-03-04 16:03:00 -08:00
Ben Ogle
80cd20193a Move the logic for opening empty initial buffer to renderer 2015-03-03 11:39:38 -08:00
Max Brunsfeld
0eb742566f Always open w/ one untitled buffer when no paths are given
Fixes #5607
2015-02-18 11:17:52 -08:00
Max Brunsfeld
bcfa4ef608 Restore old behavior for multiple path CLI args
Signed-off-by: Nathan Sobo <nathan@github.com>
2015-02-17 15:25:50 -08:00
Max Brunsfeld
f7e1629cfc Set multiple project paths for multiple cmd-line paths
Signed-off-by: Jessica Lord <jlord@github.com>
2015-02-12 21:18:18 -08:00
Kevin Sawicki
3ca5495690 Merge pull request #5279 from paulcbetts/patch-1
Enable DirectWrite
2015-01-28 16:11:15 -08:00
Cheng Zhao
87c2f4496f 🐧 Set window icon, fixes #5281 2015-01-27 20:34:36 -08:00
Paul Betts
a743e8d058 Enable DirectWrite
Chrome 39 proper now has DirectWrite as the default renderer, which makes a huge difference in text clarity, especially on High DPI monitors.
2015-01-27 14:38:50 -08:00
Cheng Zhao
05aaace387 Do not set window icon, fixes #4811 2015-01-26 11:28:00 -08:00
Ben Ogle
20504fc7a8 Pull load settings out of the focused window 2014-12-19 10:38:03 -08:00
Ben Ogle
0db1971825 Default devMode and safeMode to false 2014-12-19 10:38:03 -08:00
Nathan Sobo
b2025ebad0 Don’t openPath on window startup for spec windows
It causes specs to fail because the window loses focus somehow when
this gets run.
2014-11-27 11:13:46 -07:00
Nathan Sobo
0b44cee8db Separate IPC messages that don’t belong in the command palette
Path opening and update signaling were both using the command-sending
IPC mechanism, but neither is actually a command. This commit adds a
second “message” channel with custom handling on the render process
side for these messages, rather than attempting to route them through
commands.
2014-11-27 10:30:50 -07:00
Cheng Zhao
fdb4cd7e53 Disable DirectWrite, fixes #3540 2014-10-01 21:37:50 +08:00
Nathan Sobo
5afceb3951 Merge remote-tracking branch 'origin/master' into atom-shell-v0.16.0
Conflicts:
	apm/package.json
2014-09-09 12:05:54 -06:00
Cheng Zhao
3e10f491b4 Disable subpixel font scaling. 2014-09-09 21:54:32 +08:00
Kevin Sawicki
417134c799 Require dialog when used 2014-09-08 09:22:45 -07:00