Cheng Zhao
197a9b4165
Remove calls to v8::Isolate::GetCurrent
...
It is generally a bad thing to do since we might have multiple Isolates.
2015-06-23 17:22:14 +08:00
Cheng Zhao
015ef3e014
Omit extra transfer of new-window event
2015-06-23 16:34:22 +08:00
Haojian Wu
47eac062f6
Expose Print API to webContents and webView.
...
Also move the print implementation from window to webContents.
2015-06-16 20:08:30 +08:00
Haojian Wu
c0a6cb69bf
Move printToPDF API to WebContents.
...
Also expose in webview.
2015-06-16 20:06:52 +08:00
Haojian Wu
2597ded985
Cleanup.
2015-06-16 20:02:25 +08:00
Haojian Wu
10da361db1
Fix a type error in checking function options.
2015-06-16 20:02:25 +08:00
Haojian Wu
8572ccb807
Add callback function in printToPDF API.
2015-06-16 20:02:24 +08:00
Haojian Wu
ce8bbb689c
Add options to custom print settings in printToPDF API.
2015-06-16 20:02:24 +08:00
Haojian Wu
b360f7d86a
Add printToPDF API skeleton.
2015-06-16 20:02:23 +08:00
Cheng Zhao
132c13a11b
Fix calls to deprecated node::ThrowError API
2015-06-10 14:21:09 +08:00
Cheng Zhao
05468cc3fa
Remove devtools APIs from NativeWindow
2015-06-05 17:01:17 +08:00
Cheng Zhao
94d69777fa
Enable calling WebContents::openDevTools for BrowserWindow's WebContents
2015-06-05 15:41:03 +08:00
Cheng Zhao
47e9deeb9a
Remove Menu::AttachToWindow
...
It makes the logic more complex without any benefit
2015-06-04 15:32:33 +08:00
deepak1556
67a9931b55
devtools: initialise devtoolsWebContents when opened with inspect* apis
2015-06-01 17:23:44 +05:30
Cheng Zhao
4a376694b4
Merge pull request #1719 from deepak1556/service_worker_patch
...
devtools: api to inspect service worker
2015-05-27 15:47:41 +08:00
Cheng Zhao
c244e83e10
Merge pull request #1633 from deepak1556/window_event_patch
...
window: adding resize and move events
2015-05-27 14:54:36 +08:00
Cheng Zhao
d78efe7c22
Use Local instead of Handle
2015-05-22 19:11:22 +08:00
deepak1556
9a60fde59b
alias move and moved event on OS X
2015-05-22 12:24:12 +05:30
Robo
1b1735bca9
avoid unnecessary api calls
2015-05-22 12:13:00 +05:30
deepak1556
3a5977e09f
window: adding resize and move events
2015-05-22 12:13:00 +05:30
deepak1556
f2d91bc53c
adding events to notify fullscreen state
2015-05-21 10:16:11 +05:30
deepak1556
9963ddc485
implement method on browser window
2015-05-18 20:08:08 +05:30
deepak1556
ae6a1b409f
window: adding setBounds and getBounds api
2015-05-01 16:20:53 +05:30
Robo
3aefa5f549
browserWindow: adding devtools-focused event
2015-04-02 12:23:57 +05:30
Cheng Zhao
3b1be743ef
Merge pull request #1309 from hokein/workspace-visible-api
...
Add workspace visible APIs
2015-03-29 20:37:07 +08:00
Haojian Wu
0342854e25
Update workspace visible APIs.
2015-03-29 10:01:52 +08:00
Cheng Zhao
32cd068427
Improve #1307
2015-03-27 16:24:33 +08:00
deepak1556
69d958b94e
providing option to undock devtools from browser-window
2015-03-27 13:32:08 +05:30
Haojian Wu
476b61322f
Add SetVisibleOnAllWorkspaces/IsVisibleOnAllWorkspaces API.
...
These two APIs are only available on OS X/Linux platforms.
2015-03-26 14:18:37 +08:00
Cheng Zhao
a4342fd5ba
Unify how we throw exceptions
2015-03-26 11:34:41 +08:00
Cheng Zhao
9bae54f917
Avoid extra copy of data in capturePage
2015-03-20 10:26:42 +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
0afac1e05a
Plumb code all the way up
2015-02-06 16:12:32 -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
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
c2975d2bcc
Redirect BrowserWindow's "will-navigate" event to WebContents
2014-12-17 14:56:51 -08:00
Cheng Zhao
fd596d4a65
Add "will-navigate" event for BrowserWindow
2014-12-17 14:40:19 -08:00
Cheng Zhao
7bc364a374
Upgrade node for new V8 API
2014-12-07 13:09:50 -08: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
cb8f975528
Add JS menubar APIs
2014-11-12 20:31:55 +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
Kevin Sawicki
b6b6fc3bfd
Remove All Rights Reserved after GitHub copyright
...
Closes #762
2014-10-31 11:17:05 -07:00
Cheng Zhao
25f69df341
Throw error when BrowserWindow is created before app is ready
2014-10-30 21:32:35 +08:00