Add 'new-window' event for <webview>

This commit is contained in:
Cheng Zhao 2014-10-25 13:21:09 +08:00
parent d8447524cb
commit 194ed3884c
4 changed files with 27 additions and 8 deletions

View file

@ -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,