Merge pull request #8409 from javan/add-context-menu-event-to-webview

Add "context-menu" DOM event to <webview>
This commit is contained in:
Kevin Sawicki 2017-01-16 09:04:32 -08:00 committed by GitHub
commit 9089d55342
2 changed files with 2 additions and 0 deletions

View file

@ -18,6 +18,7 @@ const supportedWebViewEvents = [
'did-get-redirect-request',
'dom-ready',
'console-message',
'context-menu',
'devtools-opened',
'devtools-closed',
'devtools-focused',

View file

@ -16,6 +16,7 @@ const WEB_VIEW_EVENTS = {
'did-get-redirect-request': ['oldURL', 'newURL', 'isMainFrame'],
'dom-ready': [],
'console-message': ['level', 'message', 'line', 'sourceId'],
'context-menu': ['params'],
'devtools-opened': [],
'devtools-closed': [],
'devtools-focused': [],