Also Expose printToPDF to BrowserWindow.

This commit is contained in:
Haojian Wu 2015-06-13 21:39:06 +08:00
parent 47eac062f6
commit 1eba552a8d
2 changed files with 5 additions and 0 deletions

View file

@ -84,5 +84,6 @@ BrowserWindow::toggleDevTools = -> @webContents.toggleDevTools()
BrowserWindow::inspectElement = -> @webContents.inspectElement.apply @webContents, arguments BrowserWindow::inspectElement = -> @webContents.inspectElement.apply @webContents, arguments
BrowserWindow::inspectServiceWorker = -> @webContents.inspectServiceWorker() BrowserWindow::inspectServiceWorker = -> @webContents.inspectServiceWorker()
BrowserWindow::print = -> @webContents.print.apply @webContents, arguments BrowserWindow::print = -> @webContents.print.apply @webContents, arguments
BrowserWindow::printToPDF = -> @webContents.printToPDF.apply @webContents, arguments
module.exports = BrowserWindow module.exports = BrowserWindow

View file

@ -558,6 +558,10 @@ process.
Same with `webContents.print([options])` Same with `webContents.print([options])`
### BrowserWindow.printToPDF(options, callback)
Same with `webContents.printToPDF(options, callback)`
### BrowserWindow.loadUrl(url, [options]) ### BrowserWindow.loadUrl(url, [options])
Same with `webContents.loadUrl(url, [options])`. Same with `webContents.loadUrl(url, [options])`.