web-view-events.ts 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. export const webViewEvents: Record<string, readonly string[]> = {
  2. 'load-commit': ['url', 'isMainFrame'],
  3. 'did-attach': [],
  4. 'did-finish-load': [],
  5. 'did-fail-load': ['errorCode', 'errorDescription', 'validatedURL', 'isMainFrame', 'frameProcessId', 'frameRoutingId'],
  6. 'did-frame-finish-load': ['isMainFrame', 'frameProcessId', 'frameRoutingId'],
  7. 'did-start-loading': [],
  8. 'did-stop-loading': [],
  9. 'dom-ready': [],
  10. 'console-message': ['level', 'message', 'line', 'sourceId'],
  11. 'context-menu': ['params'],
  12. 'devtools-open-url': ['url'],
  13. 'devtools-opened': [],
  14. 'devtools-closed': [],
  15. 'devtools-focused': [],
  16. 'will-navigate': ['url'],
  17. 'did-start-navigation': ['url', 'isInPlace', 'isMainFrame', 'frameProcessId', 'frameRoutingId'],
  18. 'did-redirect-navigation': ['url', 'isInPlace', 'isMainFrame', 'frameProcessId', 'frameRoutingId'],
  19. 'did-navigate': ['url', 'httpResponseCode', 'httpStatusText'],
  20. 'did-frame-navigate': ['url', 'httpResponseCode', 'httpStatusText', 'isMainFrame', 'frameProcessId', 'frameRoutingId'],
  21. 'did-navigate-in-page': ['url', 'isMainFrame', 'frameProcessId', 'frameRoutingId'],
  22. '-focus-change': ['focus'],
  23. close: [],
  24. crashed: [],
  25. 'render-process-gone': ['details'],
  26. 'plugin-crashed': ['name', 'version'],
  27. destroyed: [],
  28. 'page-title-updated': ['title', 'explicitSet'],
  29. 'page-favicon-updated': ['favicons'],
  30. 'enter-html-full-screen': [],
  31. 'leave-html-full-screen': [],
  32. 'media-started-playing': [],
  33. 'media-paused': [],
  34. 'found-in-page': ['result'],
  35. 'did-change-theme-color': ['themeColor'],
  36. 'update-target-url': ['url']
  37. } as const;