Add update-target-url event

This commit is contained in:
Cheng Zhao 2016-06-07 15:56:19 +09:00
parent 1c504ec45d
commit 3c873736d7
6 changed files with 30 additions and 5 deletions

View file

@ -389,6 +389,11 @@ void WebContents::ActivateContents(content::WebContents* source) {
Emit("activate");
}
void WebContents::UpdateTargetURL(content::WebContents* source,
const GURL& url) {
Emit("update-target-url", url);
}
bool WebContents::IsPopupOrPanel(const content::WebContents* source) const {
return type_ == BROWSER_WINDOW;
}