📠 Add print() to BrowserWindowProxy

Closes #5685
This commit is contained in:
Felix Rieseberg 2016-05-26 09:35:26 -07:00 committed by Kevin Sawicki
parent ac394ec3ef
commit fa7f084625
2 changed files with 8 additions and 0 deletions

View file

@ -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

View file

@ -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')