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;
}
const gfx::Rect& pos) override;
void CloseContents(content::WebContents* source) override;
void ActivateContents(content::WebContents* contents) override;
+ void UpdateTargetURL(content::WebContents* source, const GURL& url) override;
bool IsPopupOrPanel(const content::WebContents* source) const override;
void HandleKeyboardEvent(
content::WebContents* source,
<meta name='theme-color' content='#ff0000'>
```
+### Event: 'update-target-url'
+
+Returns:
+
+* `event` Event
+* `url` String
+
+Emitted when mouse moves over a link or the keyboard moves the focus to a link.
+
### Event: 'cursor-changed'
Returns:
<meta name='theme-color' content='#ff0000'>
```
+### Event: 'update-target-url'
+
+Returns:
+
+* `url` String
+
+Emitted when mouse moves over a link or the keyboard moves the focus to a link.
+
### Event: 'devtools-opened'
Emitted when DevTools is opened.
'media-started-playing',
'media-paused',
'found-in-page',
- 'did-change-theme-color'
+ 'did-change-theme-color',
+ 'update-target-url'
]
var nextInstanceId = 0
'crashed': [],
'gpu-crashed': [],
'plugin-crashed': ['name', 'version'],
- 'media-started-playing': [],
- 'media-paused': [],
- 'did-change-theme-color': ['themeColor'],
'destroyed': [],
'page-title-updated': ['title', 'explicitSet'],
'page-favicon-updated': ['favicons'],
'enter-html-full-screen': [],
'leave-html-full-screen': [],
- 'found-in-page': ['result']
+ 'media-started-playing': [],
+ 'media-paused': [],
+ 'found-in-page': ['result'],
+ 'did-change-theme-color': ['themeColor'],
+ 'update-target-url': ['url']
}
var DEPRECATED_EVENTS = {