webview: will-navigate and page-favicon-set navigation events

This commit is contained in:
deepak1556 2015-04-18 01:25:31 +05:30
parent c424d0e9f3
commit 9b585458c1
9 changed files with 72 additions and 3 deletions

View file

@ -662,6 +662,13 @@ Emitted when details regarding a requested resource is available.
Emitted when a redirect was received while requesting a resource.
### Event: 'page-favicon-set'
* `event` Event
* `favicons` [String]
Emitted when page receives favicon urls.
### Event: 'new-window'
* `event` Event

View file

@ -275,6 +275,13 @@ examples.
## DOM events
### will-navigate
* `url` String
Fired when view is about to navigate , calling `event.preventDefault()` will
cancel the navigation.
### did-finish-load
Fired when the navigation is done, i.e. the spinner of the tab will stop
@ -330,6 +337,12 @@ Fired when a redirect was received while requesting a resource.
Fired when page title is set during navigation. `explicitSet` is false when title is synthesised from file
url.
### page-favicon-set
* `favicons` [String]
Fired when page receives favicon urls.
### console-message
* `level` Integer