Merge pull request #6355 from electron/webview-capture-page
Add <webview>.capturePage([rect,] callback)
This commit is contained in:
commit
bbfdaf7679
11 changed files with 78 additions and 92 deletions
|
@ -153,6 +153,9 @@ Object.assign(BrowserWindow.prototype, {
|
|||
},
|
||||
showDefinitionForSelection () {
|
||||
return this.webContents.showDefinitionForSelection()
|
||||
},
|
||||
capturePage (...args) {
|
||||
return this.webContents.capturePage.apply(this.webContents, args)
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
@ -386,7 +386,8 @@ var registerWebViewElement = function () {
|
|||
'inspectServiceWorker',
|
||||
'print',
|
||||
'printToPDF',
|
||||
'showDefinitionForSelection'
|
||||
'showDefinitionForSelection',
|
||||
'capturePage'
|
||||
]
|
||||
nonblockMethods = [
|
||||
'insertCSS',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue