Cheng Zhao
9bae54f917
Avoid extra copy of data in capturePage
2015-03-20 10:26:42 +08:00
deepak1556
9eac8ef266
add protocol.RequestBuffer api
2015-03-19 09:36:57 +05:30
Cheng Zhao
12d5474077
Fix webview for the new API
2015-03-18 09:57:46 +08:00
Cheng Zhao
dfad907530
Fix API changes of tracing API
2015-03-18 09:57:39 +08:00
Cheng Zhao
8a138fafd4
Fix API changes of WebContentsDelegate
2015-03-18 09:57:38 +08:00
Cheng Zhao
dead7caab2
CommandLine moved to base::CommandLine
2015-03-18 09:57:37 +08:00
Cheng Zhao
7457eccdee
Merge pull request #1238 from deepak1556/browser_window_lib_patch
...
define devToolsWebContents for use from remote module
2015-03-16 16:43:46 +08:00
Robo
87cb2ece80
add DidFailProvisionalLoad method
2015-03-14 08:58:30 +05:30
deepak1556
adb130cefa
define devToolsWebContents for use from remote module
2015-03-11 19:58:12 +05:30
Cheng Zhao
6856d203c5
Merge pull request #1215 from deepak1556/dialog_patch
...
avoid overriding type value of showMessageBox
2015-03-09 13:50:18 -07:00
Cheng Zhao
29471ff8b5
Fix styling of #1209
2015-03-09 13:46:46 -07:00
deepak1556
0b780def24
avoid overriding type value of showMessageBox
2015-03-06 17:56:26 +05:30
Robo
0663b9dae2
using WebContentsObserver::NavigationEntryCommitted to set virtualurl
2015-03-05 20:09:27 +05:30
Charlie Hess
b6787a9b34
Emit a new before-quit event at the start of Browser::Quit, which gives us a chance to cancel before any windows are closed.
2015-02-25 19:33:42 -08:00
Cheng Zhao
e81baf759a
Enable setting icon of menu item
2015-02-13 12:11:50 +08:00
Cheng Zhao
b28a241dbf
Simplify the code to call delegate method
2015-02-13 11:47:22 +08:00
Cheng Zhao
da407200d2
Return NativeImage in BrowserWindow.capturePage
2015-02-12 13:45:50 +08:00
Paul Betts
86de75deef
Style fixups
2015-02-10 17:14:26 -08:00
Paul Betts
f55379ed5b
Add missing trampoline method
2015-02-06 17:07:29 -08:00
Paul Betts
1b9649b481
Switch to gfx::Image
2015-02-06 17:00:26 -08:00
Paul Betts
fa6d499a4e
Come correct with line length and constness
2015-02-06 16:32:27 -08:00
Paul Betts
0afac1e05a
Plumb code all the way up
2015-02-06 16:12:32 -08:00
Cheng Zhao
071a55974a
A little clean up
2015-02-05 00:19:30 -08:00
Cheng Zhao
7c8bed7bfc
Get the WebViewManager from embedder WebContents
...
This make our lives easier when we have multiple BrowserContext support.
2015-02-04 15:52:59 -08:00
Cheng Zhao
209840871c
Seperate the API implementation of WebViewManager
2015-02-04 15:39:41 -08:00
Cheng Zhao
331d0481bb
Move web_view_manager to atom/browser
2015-02-04 15:17:28 -08:00
Cheng Zhao
2c61070b36
Avoid using global BrowserContext
2015-02-04 15:08:29 -08:00
Cheng Zhao
502c0f0df7
Remove the WebViewRendererState class
2015-02-04 14:58:03 -08:00
Cheng Zhao
92142ee372
Fix the API to set opaque background
2015-01-27 13:18:31 -08:00
Cheng Zhao
43421aedcf
OVERRIDE macro is now removed
2015-01-27 13:18:30 -08:00
Cheng Zhao
20431f4f2f
No need to route via ATOM_INTERNAL_MESSAGE
2015-01-27 10:47:11 -08:00
Cheng Zhao
81b370ee9f
Implement CheckMediaAccessPermission, fixes #1017
2015-01-23 15:13:49 -08:00
Cheng Zhao
3d858bee95
Guard against bad events in screen module
...
It can happen that the DisplayObserver methods are called without a
valid Display object passed.
2015-01-19 14:46:29 -08:00
Cheng Zhao
7fbf4246ac
Add editing commands for WebContents
2015-01-19 12:09:47 -08:00
Cheng Zhao
4604c9bb0e
Add a few more paths for app.getPath
2015-01-18 21:43:23 -08:00
Cheng Zhao
ce52a87477
Add "cache" and "userCache" directories
2015-01-18 21:43:22 -08:00
Cheng Zhao
3d398458a8
Throw error when PathService call failed
2015-01-18 21:43:21 -08:00
Cheng Zhao
a988b48016
Implement app.getHomeDir with app.getPath
2015-01-18 21:43:20 -08:00
Cheng Zhao
06da5f254a
Add app.setPath and app.getPath APIs
...
They can be used to set/get any path defined in PathService
2015-01-18 21:43:19 -08:00
Cheng Zhao
45c26e0e5a
Add app.setDataPath API
2015-01-18 21:43:18 -08:00
Cheng Zhao
c6fb645f6b
Warning of app not ready in screen module
2015-01-18 21:42:46 -08:00
Cheng Zhao
b3c3556286
Update the displays when there is metrics change
2015-01-16 12:04:35 -08:00
Cheng Zhao
50b96ca7ef
Pass the display in screen events
2015-01-16 12:02:32 -08:00
Cheng Zhao
7749484628
Make getAllDisplays return current displays.
2015-01-16 11:39:25 -08:00
Cheng Zhao
b5898d3355
Add events on display add/remove.
2015-01-16 11:01:38 -08:00
Cheng Zhao
809c995c0b
Make "screen" module a browser module
2015-01-16 11:01:38 -08:00
Cheng Zhao
1a1cf57097
Unpack the arguments in ipc message
2015-01-14 19:33:24 -08:00
Cheng Zhao
2d6dc9c527
Convert arguments to V8 directly in EventEmitter::Emmit
...
This gets rid of the extra conversion between ListValue.
2015-01-14 17:51:54 -08:00
Cheng Zhao
ecb9e93394
File dialogs don't need icon
2015-01-05 15:29:26 -08:00
Cheng Zhao
8457090b18
Add "icon" option for message box
2015-01-05 15:08:42 -08:00
Cheng Zhao
ab83b21fa6
Use gfx::Image instead of gfx::ImageSkia in API
...
The gfx::Image can use NSImage directly as underlying format, so we
don't have to decode images ourselves on Mac, and we will also be able
to make use of template images.
2015-01-02 18:43:56 -08:00
Cheng Zhao
6cdc8e4b96
Small style fixes
2014-12-19 12:48:53 -08:00
Hajime Morrita
dc9329ff43
Add BrowserWindow.showDefinitionForSelection()
...
This API shows the system-provided pop-up dictionary.
Some Mac apps including Chrome have "Look Up in in Dictionary" context
menu item. This API can be used to implement it.
2014-12-18 16:45:45 -08:00
Cheng Zhao
47d7a355f2
Make file dialogs work in <webview>, fixes #930
2014-12-18 12:58:17 -08:00
Cheng Zhao
a1ae399d10
Make getUserMedia work in <webview>, fixes #845
2014-12-18 12:02:53 -08:00
Cheng Zhao
da54ac5f55
Don't leak listeners in embedder when guest is destroyed
2014-12-17 20:44:15 -08:00
Cheng Zhao
c2975d2bcc
Redirect BrowserWindow's "will-navigate" event to WebContents
2014-12-17 14:56:51 -08:00
Cheng Zhao
60df32aab5
Add "will-navigate" event for WebContents
2014-12-17 14:55:22 -08:00
Cheng Zhao
fd596d4a65
Add "will-navigate" event for BrowserWindow
2014-12-17 14:40:19 -08:00
Cheng Zhao
d50eeb04d5
Upgrade cpplint
2014-12-15 17:15:56 -08:00
Cheng Zhao
68381e1b76
Use element instant id for GetGuestByInstanceID
2014-12-09 14:38:43 -08:00
Cheng Zhao
882a08f61a
Fix browser plugin API changes
2014-12-08 09:00:00 -08:00
Cheng Zhao
7bc364a374
Upgrade node for new V8 API
2014-12-07 13:09:50 -08:00
Cheng Zhao
10823eeeaa
Fix compilation errors caused by Chrome 39
2014-12-07 07:43:26 -08:00
Cheng Zhao
f78f94d4f1
Fix building on Mac
2014-11-28 19:50:10 +08:00
Cheng Zhao
9f99209733
win: Add "balloon-show" and "balloon-closed" events
2014-11-28 19:42:57 +08:00
Cheng Zhao
210c97f957
win: Add "balloon-clicked" event for Tray
2014-11-28 18:50:31 +08:00
Cheng Zhao
8097cb2b9e
Add Tray.displayBallon API
2014-11-28 18:39:30 +08:00
Cheng Zhao
f6c66a7374
Add Tray.destroy() API, fixes #871
2014-11-28 18:06:51 +08:00
Cheng Zhao
86cf5e0028
OVERRIDE => override in atom_api_tray.h
2014-11-28 17:54:38 +08:00
Cheng Zhao
ff26c3c16f
Some coding style fixes
2014-11-28 15:59:03 +08:00
Cheng Zhao
8a736abac7
Merge pull request #870 from joaomoreno/popup
...
Allow positioning the context menu
2014-11-28 12:42:49 +08:00
Joao Moreno
c06e844ef4
fix build
2014-11-26 15:28:03 +01:00
Joao Moreno
46e6b5ec3e
Allow positioning the context menu
2014-11-26 13:54:05 +01:00
Benjamin Winkler
bf85e61dc2
fix typo in variable name
...
This is just for the looks. No errors where throws, because the variable
name was misspelled in all occurences.
2014-11-25 20:57:55 +01:00
Cheng Zhao
271eb63083
SetFullscreen => SetFullScreen
2014-11-25 14:34:14 +08:00
Cheng Zhao
b77e6c369a
x11: Implement window state events
2014-11-25 12:43:25 +08:00
Cheng Zhao
ee9964c141
AddUserTasks => setUserTasks
2014-11-17 19:32:11 +08:00
Cheng Zhao
0b1b0940d2
Enable setting icon for addUserTasks
2014-11-17 17:35:51 +08:00
Cheng Zhao
0db2769781
Only "title" and "program" are required for AddUserTasks
2014-11-17 17:26:44 +08:00
Cheng Zhao
47c18fef7f
win: Add app.addUserTasks API
2014-11-17 17:19:41 +08:00
Cheng Zhao
48412769df
win: Add app.clearRecentDocuments API
2014-11-17 16:13:47 +08:00
Cheng Zhao
c23ba7b504
mac: Add app.addRecentDocument API
2014-11-17 13:05:06 +08:00
Cheng Zhao
0e94977d42
Add app.dock.setMenu API
2014-11-16 23:04:31 +08:00
Cheng Zhao
ba4f502b1e
OVERRIDE => override in atom_api_app.h
2014-11-16 22:45:29 +08:00
Cheng Zhao
ab6cb042f6
OVERRIDE => override in atom_api_menu.h
2014-11-16 10:45:53 +08:00
Cheng Zhao
cb8f975528
Add JS menubar APIs
2014-11-12 20:31:55 +08:00
Cheng Zhao
fbd74c0e2d
Various fixes of #801
2014-11-12 10:28:50 +08:00
Frank Hale
747698fe9b
Fix code style formatting
...
- Fix code style formatting to be <= 80 lines
- Add default parameter for urlOptions to loadUrl, reload and
reloadIgnoringCache functions to be compatible with old API.
2014-11-11 13:33:15 -05:00
Frank Hale
ef255db069
Making Http Referrer addition better!
...
- Code cleanup
2014-11-07 21:54:36 -05:00
Frank Hale
f56d1ea7b4
Add support for setting http referrer
...
- Add url option to specify the http referrer
- Add httpReferrer attribute to webview
NOTE: This is still not complete. Some love has to be done to
guest-view-manager.coffee and very likely the function calls called
createGuest and to the code that uses them.
2014-11-06 14:29:41 -05:00
Cheng Zhao
058046304d
Forbid using dialog module before app is ready
2014-11-05 19:50:24 +08:00
Cheng Zhao
490a12d38a
Add dialog.showErrorBox API
2014-11-05 16:04:39 +08:00
Cheng Zhao
c5212b36f7
External links should have "foreground-tab" disposition
2014-11-04 18:49:57 +08:00
Cheng Zhao
f29c7164f3
Translate |disposition| to string
2014-11-04 18:12:57 +08:00
Cheng Zhao
013593ccf8
Emit "new-window" event for dispositions other than CURRENT_TAB
2014-11-04 17:59:15 +08:00
Cheng Zhao
4c12a4369d
Fixes Event.prevenDefault() not working, closes #771
2014-11-03 23:24:20 +08:00
Cheng Zhao
4ebe58df57
Also add closeDevTools and isDevToolsOpened for webview
2014-11-03 22:12:56 +08:00
Cheng Zhao
accd08a2bf
Show devtools for guest page in undocked mode
2014-11-03 21:48:25 +08:00
Cheng Zhao
1731d609b7
Fix double freeing WebContents
2014-11-03 19:45:09 +08:00