From 8bfa3cba63720da7a37e93c549a19ce452bc35c3 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 22 Sep 2015 23:41:08 +0800 Subject: [PATCH] docs: The options parameter of new-window event --- docs/api/web-contents.md | 2 ++ docs/api/web-view-tag.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index f971c569eee9..e858d0211a92 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -111,6 +111,8 @@ Returns: * `frameName` String * `disposition` String - Can be `default`, `foreground-tab`, `background-tab`, `new-window` and `other`. +* `options` Object - The options which will be used for creating the new + `BrowserWindow`. Emitted when the page requests to open a new window for a `url`. It could be requested by `window.open` or an external link like ``. diff --git a/docs/api/web-view-tag.md b/docs/api/web-view-tag.md index 7b4aa2ebf86c..3fda3a98edb5 100644 --- a/docs/api/web-view-tag.md +++ b/docs/api/web-view-tag.md @@ -505,6 +505,8 @@ Returns: * `frameName` String * `disposition` String - Can be `default`, `foreground-tab`, `background-tab`, `new-window` and `other`. +* `options` Object - The options which should be used for creating the new + `BrowserWindow`. Fired when the guest page attempts to open a new browser window.