Merge pull request #1616 from deepak1556/webview_fullscreen_patch

webContents: override fullscreen notification apis for webview
This commit is contained in:
Cheng Zhao 2015-05-21 15:03:48 +08:00
commit fd41f1e8bc
11 changed files with 114 additions and 3 deletions

View file

@ -22,6 +22,8 @@ WEB_VIEW_EVENTS =
'destroyed': []
'page-title-set': ['title', 'explicitSet']
'page-favicon-updated': ['favicons']
'enter-html-full-screen': []
'leave-html-full-screen': []
dispatchEvent = (webView, event, args...) ->
throw new Error("Unkown event #{event}") unless WEB_VIEW_EVENTS[event]?