2021-05-04 21:12:49 +00:00
|
|
|
export const webViewEvents: Record<string, readonly string[]> = {
|
2020-10-06 13:11:26 +00:00
|
|
|
'load-commit': ['url', 'isMainFrame'],
|
|
|
|
'did-attach': [],
|
|
|
|
'did-finish-load': [],
|
|
|
|
'did-fail-load': ['errorCode', 'errorDescription', 'validatedURL', 'isMainFrame', 'frameProcessId', 'frameRoutingId'],
|
|
|
|
'did-frame-finish-load': ['isMainFrame', 'frameProcessId', 'frameRoutingId'],
|
|
|
|
'did-start-loading': [],
|
|
|
|
'did-stop-loading': [],
|
|
|
|
'dom-ready': [],
|
|
|
|
'console-message': ['level', 'message', 'line', 'sourceId'],
|
|
|
|
'context-menu': ['params'],
|
2023-01-26 08:54:26 +00:00
|
|
|
'devtools-open-url': ['url'],
|
2020-10-06 13:11:26 +00:00
|
|
|
'devtools-opened': [],
|
|
|
|
'devtools-closed': [],
|
|
|
|
'devtools-focused': [],
|
|
|
|
'will-navigate': ['url'],
|
|
|
|
'did-start-navigation': ['url', 'isInPlace', 'isMainFrame', 'frameProcessId', 'frameRoutingId'],
|
2021-08-23 14:26:00 +00:00
|
|
|
'did-redirect-navigation': ['url', 'isInPlace', 'isMainFrame', 'frameProcessId', 'frameRoutingId'],
|
2020-10-06 13:11:26 +00:00
|
|
|
'did-navigate': ['url', 'httpResponseCode', 'httpStatusText'],
|
|
|
|
'did-frame-navigate': ['url', 'httpResponseCode', 'httpStatusText', 'isMainFrame', 'frameProcessId', 'frameRoutingId'],
|
|
|
|
'did-navigate-in-page': ['url', 'isMainFrame', 'frameProcessId', 'frameRoutingId'],
|
2021-05-05 18:37:40 +00:00
|
|
|
'-focus-change': ['focus'],
|
2020-10-06 13:11:26 +00:00
|
|
|
close: [],
|
|
|
|
'render-process-gone': ['details'],
|
|
|
|
'plugin-crashed': ['name', 'version'],
|
|
|
|
destroyed: [],
|
|
|
|
'page-title-updated': ['title', 'explicitSet'],
|
|
|
|
'page-favicon-updated': ['favicons'],
|
|
|
|
'enter-html-full-screen': [],
|
|
|
|
'leave-html-full-screen': [],
|
|
|
|
'media-started-playing': [],
|
|
|
|
'media-paused': [],
|
|
|
|
'found-in-page': ['result'],
|
|
|
|
'did-change-theme-color': ['themeColor'],
|
|
|
|
'update-target-url': ['url']
|
2021-05-04 21:12:49 +00:00
|
|
|
} as const;
|