web-view-events.ts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  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-opened': [],
  13. 'devtools-closed': [],
  14. 'devtools-focused': [],
  15. 'new-window': ['url', 'frameName', 'disposition', 'options'],
  16. 'will-navigate': ['url'],
  17. 'did-start-navigation': ['url', 'isInPlace', 'isMainFrame', 'frameProcessId', 'frameRoutingId'],
  18. 'did-navigate': ['url', 'httpResponseCode', 'httpStatusText'],
  19. 'did-frame-navigate': ['url', 'httpResponseCode', 'httpStatusText', 'isMainFrame', 'frameProcessId', 'frameRoutingId'],
  20. 'did-navigate-in-page': ['url', 'isMainFrame', 'frameProcessId', 'frameRoutingId'],
  21. 'focus-change': ['focus', 'guestInstanceId'],
  22. close: [],
  23. crashed: [],
  24. 'render-process-gone': ['details'],
  25. 'plugin-crashed': ['name', 'version'],
  26. destroyed: [],
  27. 'page-title-updated': ['title', 'explicitSet'],
  28. 'page-favicon-updated': ['favicons'],
  29. 'enter-html-full-screen': [],
  30. 'leave-html-full-screen': [],
  31. 'media-started-playing': [],
  32. 'media-paused': [],
  33. 'found-in-page': ['result'],
  34. 'did-change-theme-color': ['themeColor'],
  35. 'update-target-url': ['url']
  36. } as const;