Add 'new-window' event for <webview>
This commit is contained in:
parent
d8447524cb
commit
194ed3884c
4 changed files with 27 additions and 8 deletions
|
@ -93,6 +93,14 @@ class WebContents : public mate::EventEmitter,
|
|||
const base::string16& message,
|
||||
int32 line_no,
|
||||
const base::string16& source_id) override;
|
||||
bool ShouldCreateWebContents(
|
||||
content::WebContents* web_contents,
|
||||
int route_id,
|
||||
WindowContainerType window_container_type,
|
||||
const base::string16& frame_name,
|
||||
const GURL& target_url,
|
||||
const std::string& partition_id,
|
||||
content::SessionStorageNamespace* session_storage_namespace) override;
|
||||
void CloseContents(content::WebContents* source) override;
|
||||
content::WebContents* OpenURLFromTab(
|
||||
content::WebContents* source,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue