mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
committed by
Kevin Sawicki
parent
ac394ec3ef
commit
fa7f084625
@@ -63,6 +63,10 @@ Evaluates the code in the child window.
|
||||
|
||||
Focuses the child window (brings the window to front).
|
||||
|
||||
### `BrowserWindowProxy.print()`
|
||||
|
||||
Invokes the print dialog on the child window.
|
||||
|
||||
### `BrowserWindowProxy.postMessage(message, targetOrigin)`
|
||||
|
||||
* `message` String
|
||||
|
||||
@@ -45,6 +45,10 @@ var BrowserWindowProxy = (function () {
|
||||
return ipcRenderer.send('ELECTRON_GUEST_WINDOW_MANAGER_WINDOW_METHOD', this.guestId, 'blur')
|
||||
}
|
||||
|
||||
BrowserWindowProxy.prototype.print = function () {
|
||||
return ipcRenderer.send('ELECTRON_GUEST_WINDOW_MANAGER_WINDOW_METHOD', this.guestId, 'print')
|
||||
}
|
||||
|
||||
Object.defineProperty(BrowserWindowProxy.prototype, 'location', {
|
||||
get: function () {
|
||||
return ipcRenderer.sendSync('ELECTRON_GUEST_WINDOW_MANAGER_WINDOW_METHOD', this.guestId, 'getURL')
|
||||
|
||||
Reference in New Issue
Block a user