added did-navigate event, getFavicon api and workaround webview spec

This commit is contained in:
deepak1556 2015-04-20 12:20:04 +05:30
parent 9b585458c1
commit 36819e2638
9 changed files with 51 additions and 10 deletions

View file

@ -7,6 +7,7 @@ WEB_VIEW_EVENTS =
'did-finish-load': []
'did-fail-load': ['errorCode', 'errorDescription']
'did-frame-finish-load': ['isMainFrame']
'did-navigate': []
'did-start-loading': []
'did-stop-loading': []
'did-get-response-details': ['status', 'newUrl', 'originalUrl',
@ -18,7 +19,7 @@ WEB_VIEW_EVENTS =
'crashed': []
'destroyed': []
'page-title-set': ['title', 'explicitSet']
'page-favicon-set': ['favicons']
'page-favicon-updated': ['favicons']
dispatchEvent = (webView, event, args...) ->
throw new Error("Unkown event #{event}") unless WEB_VIEW_EVENTS[event]?