Commit Graph

419 Commits

Author SHA1 Message Date
Kevin Sawicki
b64f6c5c27 Upgrade icon to orange cube circles 2013-05-02 13:46:42 -07:00
probablycorey
3de96f1e7a Only cancel termination if there are AtomWindowControllers open.
Sometimes an application has other windows open, like the open
panel. Even when these are closed they seem to live on in the
application's window array. We now ignore those windows when trying
to terminate the app.

Closes #534
2013-05-02 09:38:51 -07:00
probablycorey
850ecb23df Atom will auto-update on close if a newer version is on Speakeasy
The first call to terminate is canceled so that every window can be 
closed. On AtomCefClient the OnBeforeClose method is called when a
browser is finished closing. Once all windows have finished closing, AtomCefClient calls terminate again, which will terminate the 
application.

Closes #527
2013-05-01 13:54:38 -07:00
probablycorey
8f03ff2952 💄 2013-05-01 13:54:38 -07:00
Kevin Sawicki
0ce67b307c Remove unneeded resource path assignment
There is a fall back case after this that sets the resource
path to the bundle path if not already set.
2013-04-29 17:58:41 -07:00
Kevin Sawicki
598cdea22a Don't crash when running dev with no resource path
Previously if the --dev flag was used and no resource was
specified or found in ~/github/atom then the app would
crash trying to add a null resource path to the node paths
list.

Now the bundle resource path is the fallback whenever the
dev resource path cannot be found or does not exist.
2013-04-29 17:54:31 -07:00
Kevin Sawicki
32d23d6303 Allow Atom to be run in stable mode
Previously isDevMode was returning true when it was called
before the resource path was initially set forcing Atom to
always run in dev mode.

Now we just use the new isDevFlagSpecified() method to check
where the bundle resource path should be used.
2013-04-29 17:51:13 -07:00
Nathan Sobo
7518864938 Set initial size of config window to 800x600 2013-04-26 15:36:13 -07:00
Nathan Sobo
160b80b47f Open a custom config window on 'open-user-configuration' event 2013-04-26 15:32:47 -07:00
Nathan Sobo
df064ddd21 Use isDevMode method to determine whether to use bundle resource path 2013-04-26 15:32:46 -07:00
Nathan Sobo
444325893b Allow subscribers to unsubscribe on a per-object basis
This makes use of the new ES6 WeakMap feature, which allows for a hash
map that's keyed by object.
2013-04-22 11:34:03 -06:00
Kevin Sawicki
f93b09fc9e Don't try to active windows without a path
Previously Atom would crash if a path was opened when there
was already a window open that did not have a path, such as
the specs window.

Now window controllers without a path are skipped during the
checks to activate an existing window for an opened path.
2013-04-17 18:45:24 -07:00
Kevin Sawicki
9a3821b97e Quit message loop when last browser is closed
Previously CefShutdown() was called after closing the windows
which would prevent them from running their beforeunload callbacks
and saving state properly when cmd-Q the application.

Now the number of open browsers is tracked and the message loop
is quit and the windows are autoreleased only after the browser
is ready to be closed.

Closes #493
2013-04-12 10:22:18 -07:00
Cheng Zhao
17e9c6ea3b Restart renderer process when reloaded for 4 times.
Fix #481.
2013-04-08 12:00:52 +08:00
Cheng Zhao
7c8e1634b8 Remove native path watcher code. 2013-04-07 19:33:27 +08:00
Kevin Sawicki
9633677bcc Only check for updates on code signed builds 2013-04-05 10:16:56 -07:00
Kevin Sawicki
6e4d9508aa Close browser instead of sending shutdown message
CEF now supports calling the beforeunload handler when closed
so we no longer need to send a shutdown message on the native
side.
2013-04-05 08:34:04 -07:00
Kevin Sawicki
062d07ada0 💄 2013-04-04 15:52:53 -07:00
Kevin Sawicki
bb2ab15753 Open files specified via CLI in existing window
Activate the window and open an editor when a path is specified
that is already present in an existing window's project.

Closes #357
2013-04-04 13:40:48 -07:00
Corey Johnson & Nathan Sobo
101605e50f Add atom.crashMainProcess and atom.crashRenderProcess 2013-04-03 15:08:16 -07:00
Corey Johnson & Nathan Sobo
262e2fe1ec Add Quincy crash reporter framework 2013-04-03 15:08:16 -07:00
probablycorey
1c5b72e04d Add version to the Atom Helper plist
Closes #368
2013-03-29 14:13:33 -07:00
Kevin Sawicki
a3483d0ffe Remove native injection from web worker contexts
Tasks are now processed based and so web workers no
longer need access to the native extension.
2013-03-27 20:51:01 -04:00
Cheng Zhao
3ed35574d4 Use node-nsspellchecker to replace $native's spell checker. 2013-03-27 12:25:54 +08:00
Kevin Sawicki
a772a9aa75 Remove unneeded std:: prefix 2013-03-26 23:32:05 -04:00
probablycorey
34f3176259 Add $native.beep
I could have created an npm for this. I also could wash my hands every 10 seconds, but I'm not crazy, so I did neither.
2013-03-26 16:45:21 -07:00
Kevin Sawicki
d58b1d5b72 Hide the 💀 dev button in full screen mode
Closes #417
2013-03-26 16:33:04 -04:00
Kevin Sawicki
74e7fbc76d Remove logging of index URL 2013-03-23 20:29:53 -07:00
Corey Johnson & Nathan Sobo
f4d339ccac Unify root view state with window state 2013-03-21 18:24:21 -06:00
Corey Johnson & Nathan Sobo
b169759f98 Flip version to 2.0 so we don't auto-upgrade after rake install 2013-03-21 16:01:52 -06:00
Kevin Sawicki
39ee6f66ba Remove unused import 2013-03-21 10:02:14 -07:00
Kevin Sawicki
71f28ad9e5 💄 2013-03-20 18:50:20 -07:00
Kevin Sawicki
661ef175d5 Remove $native.getPlatform()
process.platform should now be used instead.
2013-03-20 17:51:51 -07:00
Corey Johnson & Kevin Sawicki
6c357aaca7 Make paths absolute before calling $native.watchPath
Also return a subscription that can be unwatched instead
of returning an id that is later passed to $native.unwatchPath
along with the watched path.

This allows specs to pass when run from a symlink'ed folder.
2013-03-20 13:27:49 -07:00
Kevin Sawicki & Nathan Sobo
501dc9b76c Merge remote-tracking branch 'origin/master' into cefode
Conflicts:
	native/v8_extensions/native.mm
	spec/app/config-spec.coffee
	spec/app/window-spec.coffee
	spec/spec-helper.coffee
	spec/stdlib/fs-utils-spec.coffee
	src/app/atom-package.coffee
	src/app/config.coffee
	src/app/window.coffee
	src/packages/fuzzy-finder/lib/load-paths-handler.coffee
	src/packages/markdown-preview/lib/markdown-preview-view.coffee
	src/packages/tree-view/spec/tree-view-spec.coffee
	src/stdlib/require.coffee
2013-03-20 10:46:50 -06:00
Nathan Sobo
836ff53ef3 Load index.html based on the resource path
Node uses the location of index as a starting point when looking for
node_modules. Previously, we always loaded index.html out of the app
bundle, which caused us to always load node_modules from the app
bundle as well, which is not what we want in dev mode. Since we no
longer depend on a compiled require.js, it's just as easy to load
index.html from the repository path when in dev mode.
2013-03-14 17:46:25 -06:00
Kevin Sawicki
65d5e631f8 Remove $native.absolute()
fs-utils.absolute() now recreates the same behavior
but instead using fs.readpathSync().

This brings over the same behavior for special handling
the /private directory for now.
2013-03-12 19:41:42 -07:00
Kevin Sawicki
426fc7ffc8 Remove themes from node search path 2013-03-12 18:03:47 -07:00
Kevin Sawicki
990f5a92ce Remove vendor/packages from search paths
This folder only contains text mate bundles which
can't be directly required.
2013-03-12 17:58:32 -07:00
Kevin Sawicki
8f177c3835 Remove unused $native.md5ForPath() 2013-03-12 17:43:33 -07:00
Kevin Sawicki
e091f48b81 Only search in benchmark and spec when running specs 2013-03-12 17:33:21 -07:00
Kevin Sawicki
e461c4d94a 💄 2013-03-12 13:49:28 -07:00
Kevin Sawicki
4939b636da Add missing spec segment to fixture packages path 2013-03-12 13:48:43 -07:00
Kevin Sawicki
c61bf804a4 Add root resource path as last searched path 2013-03-12 13:41:27 -07:00
Kevin Sawicki
8b82c06c6f Include fixtures/packages in resource paths when running specs 2013-03-12 13:32:21 -07:00
Kevin Sawicki & Nathan Sobo
1d1ba5f6d1 Use node's require instead of internal require 2013-03-12 10:38:05 -07:00
Kevin Sawicki & Nathan Sobo
cec037333f Add all resource paths to NODE_PATH env var 2013-03-12 08:50:09 -07:00
Kevin Sawicki
6f5138a56e Revert "Remove $native.md5ForPath()"
This reverts commit 832df7149e.
2013-03-12 08:23:54 -07:00
Kevin Sawicki
832df7149e Remove $native.md5ForPath() 2013-03-11 20:58:57 -07:00
Corey Johnson
8247e56bef Fix objective-c compiler warning 2013-03-11 10:49:01 -07:00