github-electron: add missing remote.getCurrentWebContents()

API document is here:

https://github.com/atom/electron/blob/master/docs/api/remote.md#remotegetcurrentwebcontents
This commit is contained in:
rhysd
2016-03-11 10:14:19 +09:00
parent 0144ad5a74
commit 2a9dadf70a
2 changed files with 6 additions and 0 deletions

View File

@@ -1541,6 +1541,10 @@ declare module Electron {
* @returns The BrowserWindow object which this web page belongs to.
*/
getCurrentWindow(): BrowserWindow;
/**
* @returns The WebContents object of this web page.
*/
getCurrentWebContents(): WebContents;
/**
* @returns The global variable of name (e.g. global[name]) in the main process.
*/