Commit Graph

82 Commits

Author SHA1 Message Date
Corey Johnson & Nathan Sobo
b1b6b3a310 Convert NSString to std::string with a length appropriate to the UTF8 encoding 2012-07-19 11:14:25 -06:00
Corey Johnson & Nathan Sobo
f998da301c Native handler logs when completion callback for child process raises exception 2012-07-17 18:39:00 -06:00
Nathan Sobo
7865799b34 Enable accelerated and threaded compositing on CEF 2012-07-14 10:22:14 -06:00
Corey Johnson & Nathan Sobo
075b2e4304 Don't rethrow execeptions in exec callbacks.
Since the callbacks are executed asynchronously, no v8 code is above them on the stack to which to rethrow. It was causing crashes.
2012-07-12 12:10:37 -07:00
Nathan Sobo
92f4519db2 Allow null characters in child process output
This is needed because grep uses a null character as a delimiter after the file path.
2012-07-11 18:45:57 -06:00
Corey Johnson
2afec5cf53 Add ChildProcess.exec(cmd, [options])
Uses promises for failure and success states. Takes optional stderr and stdout callbacks for incremental reading.
2012-07-10 15:07:28 -07:00
Corey Johnson & Nathan Sobo
523f240fe3 Properly dereference smart-pointer in native reload logic 2012-07-06 11:40:36 -06:00
Nathan Sobo
0433d3c3d9 Never send blur events to specs window
This makes sure that specs that rely on focus behavior don't end up failing because our focus is on an entirely different window.
2012-07-02 19:41:12 -06:00
Corey Johnson & Nathan Sobo
6ebe75c0bd Add fs.md5ForPath 2012-07-02 18:19:16 -06:00
Nathan Sobo
8c740b09e6 Add fs.lastModified 2012-07-02 17:44:12 -06:00
Corey Johnson
b673d40fd5 Remove focus from CEF when AtomController resigns as main window. Add focus when it becomes the main window. 2012-07-02 13:14:46 -06:00
Corey Johnson
9907751fd9 Throw JS exception when calling $native.watchPath with nonexistent path. 2012-06-29 15:09:01 -07:00
Corey Johnson
ff92e11789 PathWatcher handles atomic writes 2012-06-29 15:09:00 -07:00
Corey Johnson
074e2b9b85 A new PathWatcher is created for each v8 context. When the associated v8 context is released, the PathWatcher stops watching all its files and deallocs . 2012-06-29 15:09:00 -07:00
Corey Johnson
1059a6a495 Make dev tools work with specs 2012-06-26 16:41:13 -07:00
Corey Johnson
a364fff7e6 meta-alt-i toggles docked dev tools 2012-06-26 16:41:13 -07:00
Corey Johnson
8ab167fd00 Reloading when there are modified buffers pops up a dialog. 2012-06-12 10:52:11 -07:00
Corey Johnson
321e7b6129 Add $native.reload 2012-06-12 10:52:11 -07:00
Kevin Sawicki
d2e79b13c2 💄 2012-06-07 14:47:58 -07:00
Corey Johnson
196aab1690 $native is now created once and registered as a CEF Extension. 2012-06-06 15:20:54 -07:00
Corey Johnson
1d615c3576 Preprocessor can't distinguish between a macro that is defined with a value, and one that is simply defined. So I removed the LOAD_RESOURCES_FROM_DIR from the release build 2012-05-16 15:08:16 -07:00
Corey Johnson
e20d2dd9cb better LOAD_RESOURCES_FROM_DIR macro detection in atom.mm 2012-05-16 14:32:08 -07:00
Corey Johnson & Nathan Sobo
171e4cc2a5 Use LOAD_RESOURCES_FROM_DIR macro to indicate that resources should be loaded from a path rather than the bundle 2012-05-14 17:43:55 -06:00
Corey Johnson
545671a641 fs.isFile(path) returns false if given path does not exist 2012-05-08 13:02:14 -07:00
Corey Johnson
b422040d52 $native.alert takes an array of [name, callback] tuples for buttons.
I'd rather use a hash, but they aren't ordered.
2012-05-07 15:29:52 -07:00
Corey Johnson
88eda01768 $native.alert can work without buttons 2012-05-07 15:29:52 -07:00
Corey Johnson
886e2caa52 TreeView scrolls to selected path when move-down or move-up are triggered 2012-05-07 10:39:36 -07:00
Corey Johnson
78d3418c8c Add $native.moveToTrash 2012-05-04 15:14:12 -07:00
Corey Johnson
7ca50efa30 Use Atom+sharedApplication to init CEF 2012-05-04 10:13:01 -07:00
Corey Johnson & Nathan Sobo
d83d2a54f9 Upgraded to version 1.1025.607 of CEF1 2012-05-04 10:12:36 -07:00
Scott Chacon
568d35b89c pointers are confusing 2012-05-03 09:00:29 -07:00
Scott Chacon
eadf1e57d8 unwatchPath throws a javascript exception 2012-05-02 18:00:55 -07:00
Corey Johnson
f563579e20 Unwatch all paths on any page load 2012-05-01 13:06:36 -07:00
Corey Johnson & Nathan Sobo
daa051339c 💩 2012-04-30 08:49:27 -07:00
Corey Johnson & Nathan Sobo
69a76d1b47 Can move files from the tree view 2012-04-27 14:18:55 -07:00
Corey Johnson
fbcd8e43a0 Add fs.makeDirectory 2012-04-26 17:12:20 -07:00
Corey Johnson
4221cc7a98 Forgot dealloc 2012-04-26 11:05:18 -07:00
Corey Johnson & Nathan Sobo
42c6b92cfe Unwatch all paths before reload is triggered 2012-04-26 09:46:34 -07:00
Corey Johnson & Nathan Sobo
6de031c41e Clean up after paths are unwatched. Add [PathWatcher unwatchAll] 2012-04-26 09:46:14 -07:00
Nathan Sobo
5c057e11b1 Make unwatchPath spec make a valid negative assertion and return the watchId from $native.watchPath 2012-04-25 20:14:35 -06:00
Corey Johnson & Nathan Sobo
3ac49e1cd5 add $native.unwatch(path, id) 2012-04-25 18:03:51 -07:00
Corey Johnson & Nathan Sobo
b35823b912 PathWatcher no longer opens multiple file descriptors for the same path and other 💄 2012-04-25 17:38:25 -06:00
Corey Johnson & Nathan Sobo
5aed1b012a PathWatcher executes callback when path is changed 2012-04-25 13:49:53 -07:00
Nathan Sobo
980e1fb9fc Inject $windowNumber on all window objects so we use it to key into a window state hash 2012-04-10 12:14:08 -06:00
Corey Johnson & Nathan Sobo
9814d74c43 This ended up not solving our memory problems 2012-04-05 12:59:38 -07:00
Corey Johnson
7e22d47256 Close the dev-tools when reloading reduces memory leaks (by a lot) 2012-04-04 09:44:53 -07:00
Corey Johnson
5d90b902c3 Less noise 2012-04-04 09:15:24 -07:00
Corey Johnson
8667628623 Remove unused array 2012-04-04 08:44:36 -07:00
Corey Johnson
e0274c293f Better error output 2012-04-03 10:33:24 -07:00
Corey Johnson
6cf1744c82 Release build uses the bundle resource as the load path 2012-03-29 15:24:24 -07:00