Commit Graph

22 Commits

Author SHA1 Message Date
Nathan Sobo
980c5d6b11 Add support for native tracing w/ atom.begin/endTracing in console.
* Open the dev tools console
* Call `atom.beginTracing()`
* Do stuff
* Call `atom.endTracing()`
* Save the file somewhere
* Open `about:tracing` in chrome and load the file
* Inspect away!
2012-10-31 11:39:58 -06:00
Nathan Sobo
e649b2e6c6 Handle standard pasteboard keybindings in the dev tools
This commit adds a boolean constructor parameter to the AtomCefClient indicating whether it should handle the standard pasteboard commands for its associated browser. We pass `true` when constructing the client for the dev tools, so these commands work there.
2012-10-29 11:45:16 -06:00
Nathan Sobo
df0c19482c Hack in a workaround to cycle windows with meta-`
There's something wrong with CEF 3 right now where meta-` events aren't being forwarded to cocoa correctly. I just added some code to intercept meta-` and manually cycle the windows. I ignore any windows for which `excludeFromWindowsMenu` is true. That means we don't ever cycle to the hidden menu.
2012-09-24 16:32:05 -06:00
Corey Johnson
5b9a305bba Log console messages to NSLog (so we can see them in Console.app) 2012-09-20 15:26:26 -07:00
Corey Johnson & Nathan Sobo
c9c138491e Add atom.exit, which exits from the browser process instead of the renderer 2012-08-31 10:15:12 -06:00
Corey Johnson & Nathan Sobo
20dd59194b Handle title change. But there's a bug in CEF that makes this only work once. 2012-08-30 17:42:53 -06:00
Nathan Sobo
3cc2faf7c2 Add atom.showDevTools and replace calls to $native.showDevTools 2012-08-30 11:24:01 -06:00
Nathan Sobo
eaafa9eade Merge branch 'master' of github.com:github/atom-cef3
Conflicts:
	native/atom_cef_client.cpp
2012-08-30 11:05:50 -06:00
Nathan Sobo
8b5b7de6e0 Add atom.showSaveDialog
Reply messages now always begin with an array of the reply id and the callback index.
2012-08-30 10:52:35 -06:00
Corey Johnson
9c7c95f413 Update C++ headers 2012-08-30 09:11:01 -07:00
Corey Johnson
b4f617c657 Remove util.h 2012-08-30 09:07:39 -07:00
Nathan Sobo
c24c9e2003 Merge branch 'master' of github.com:github/atom-cef3
Conflicts:
	native/atom_cef_client.h
	native/atom_cef_client_mac.mm
	src/app/atom.coffee
2012-08-29 23:08:31 -06:00
Nathan Sobo
725a6548fc Add atom.confirm, which displays a confirmation w/ buttons that fire callbacks
This communicates back to the browser process to display the confirmation, then the browser replies to the message with the index of the clicked button.
2012-08-29 18:31:49 -05:00
Corey Johnson
d9dc526425 DevTools are working 2012-08-29 15:31:06 -07:00
Corey Johnson
fa4650343b Make meta-n (new window) work 2012-08-28 17:04:56 -07:00
Nathan Sobo
76b10aa85b 💄 2012-08-28 16:05:00 -05:00
Nathan Sobo
16c7c523cf Native open code now presents the open panel from the browser process
This avoids retina resolution issues and ink framework errors that occur when opening dialogs from the chromium renderer process.
2012-08-28 13:54:44 -05:00
Nathan Sobo
7882f70c0c Whitespace 💄 2012-08-28 11:58:24 -05:00
Nathan Sobo
76b8f42bb7 Add atom extension, which implements atom.open
We send a message from the render process to the browser process indicating which path to open. Also start introducing a `v8_extensions::` namespace to contain the extensions.
2012-08-28 11:08:50 -05:00
Nathan Sobo
4da7d4d08b Make AtomCefClient a JSDialogHandler and suppress dialog on reloads 2012-08-28 10:01:00 -05:00
Corey Johnson & Nathan Sobo
64a0fd84a7 WIP: sending reload message to render process on meta-r 2012-08-27 18:39:12 -05:00
Corey Johnson & Nathan Sobo
e8aa1524c7 Rename atom folder to native 2012-08-27 13:21:59 -07:00