chrome-devtools-frontend 1.0.954845 → 1.0.956401

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. package/.eslintrc.js +1 -0
  2. package/AUTHORS +1 -0
  3. package/config/gni/devtools_grd_files.gni +0 -1
  4. package/config/owner/COMMON_OWNERS +2 -2
  5. package/front_end/.eslintrc.js +1 -11
  6. package/front_end/core/common/Console.ts +1 -1
  7. package/front_end/core/common/ResolverBase.ts +1 -1
  8. package/front_end/core/common/Throttler.ts +1 -1
  9. package/front_end/core/common/Worker.ts +4 -4
  10. package/front_end/core/host/InspectorFrontendHost.ts +1 -1
  11. package/front_end/core/host/ResourceLoader.ts +2 -2
  12. package/front_end/core/i18n/DevToolsLocale.ts +0 -2
  13. package/front_end/core/i18n/i18nImpl.ts +0 -2
  14. package/front_end/core/i18n/locales/en-US.json +3 -3
  15. package/front_end/core/i18n/locales/en-XL.json +3 -3
  16. package/front_end/core/sdk/AccessibilityModel.ts +1 -1
  17. package/front_end/core/sdk/CPUProfilerModel.ts +2 -2
  18. package/front_end/core/sdk/CPUThrottlingManager.ts +2 -2
  19. package/front_end/core/sdk/CSSModel.ts +7 -7
  20. package/front_end/core/sdk/CSSProperty.ts +1 -1
  21. package/front_end/core/sdk/CSSStyleDeclaration.ts +1 -1
  22. package/front_end/core/sdk/ChildTargetManager.ts +6 -6
  23. package/front_end/core/sdk/Connections.ts +2 -2
  24. package/front_end/core/sdk/ConsoleModel.ts +1 -1
  25. package/front_end/core/sdk/DOMDebuggerModel.ts +16 -15
  26. package/front_end/core/sdk/DOMModel.ts +17 -17
  27. package/front_end/core/sdk/DebuggerModel.ts +24 -24
  28. package/front_end/core/sdk/EmulationModel.ts +16 -16
  29. package/front_end/core/sdk/EventBreakpointsModel.ts +2 -2
  30. package/front_end/core/sdk/IsolateManager.ts +2 -2
  31. package/front_end/core/sdk/IssuesModel.ts +1 -1
  32. package/front_end/core/sdk/LogModel.ts +3 -3
  33. package/front_end/core/sdk/NetworkManager.ts +25 -25
  34. package/front_end/core/sdk/OverlayModel.ts +23 -23
  35. package/front_end/core/sdk/PageResourceLoader.ts +1 -1
  36. package/front_end/core/sdk/PaintProfiler.ts +1 -1
  37. package/front_end/core/sdk/RemoteObject.ts +2 -2
  38. package/front_end/core/sdk/Resource.ts +2 -2
  39. package/front_end/core/sdk/ResourceTreeModel.ts +5 -5
  40. package/front_end/core/sdk/RuntimeModel.ts +11 -11
  41. package/front_end/core/sdk/ScreenCaptureModel.ts +3 -3
  42. package/front_end/core/sdk/ServiceWorkerCacheModel.ts +7 -7
  43. package/front_end/core/sdk/ServiceWorkerManager.ts +4 -4
  44. package/front_end/core/sdk/SourceMapManager.ts +1 -1
  45. package/front_end/core/sdk/TargetManager.ts +2 -2
  46. package/front_end/core/sdk/TracingManager.ts +1 -1
  47. package/front_end/entrypoints/formatter_worker/FormatterActions.ts +10 -0
  48. package/front_end/entrypoints/formatter_worker/FormatterWorker.ts +3 -4
  49. package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshotLoader.ts +1 -1
  50. package/front_end/entrypoints/inspector_main/InspectorMain.ts +4 -4
  51. package/front_end/entrypoints/inspector_main/RenderingOptions.ts +1 -1
  52. package/front_end/entrypoints/js_app/js_app.ts +2 -2
  53. package/front_end/entrypoints/main/MainImpl.ts +31 -23
  54. package/front_end/entrypoints/main/main-meta.ts +1 -1
  55. package/front_end/entrypoints/node_app/NodeMain.ts +6 -6
  56. package/front_end/entrypoints/worker_app/WorkerMain.ts +1 -1
  57. package/front_end/generated/ARIAProperties.js +1 -1
  58. package/front_end/generated/InspectorBackendCommands.js +5 -1
  59. package/front_end/generated/SupportedCSSProperties.js +15 -15
  60. package/front_end/generated/protocol.d.ts +13 -0
  61. package/front_end/global_typings/global_defs.d.ts +0 -1
  62. package/front_end/models/bindings/BreakpointManager.ts +21 -23
  63. package/front_end/models/bindings/CSSWorkspaceBinding.ts +3 -3
  64. package/front_end/models/bindings/CompilerScriptMapping.ts +1 -1
  65. package/front_end/models/bindings/ContentProviderBasedProject.ts +1 -1
  66. package/front_end/models/bindings/DebuggerLanguagePlugins.ts +2 -2
  67. package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +3 -3
  68. package/front_end/models/bindings/DefaultScriptMapping.ts +1 -1
  69. package/front_end/models/bindings/FileUtils.ts +5 -5
  70. package/front_end/models/bindings/IgnoreListManager.ts +4 -4
  71. package/front_end/models/bindings/LiveLocation.ts +9 -0
  72. package/front_end/models/bindings/PresentationConsoleMessageHelper.ts +2 -1
  73. package/front_end/models/bindings/ResourceMapping.ts +1 -1
  74. package/front_end/models/bindings/ResourceScriptMapping.ts +9 -9
  75. package/front_end/models/bindings/StylesSourceMapping.ts +3 -3
  76. package/front_end/models/bindings/TempFile.ts +1 -1
  77. package/front_end/models/emulation/DeviceModeModel.ts +5 -5
  78. package/front_end/models/emulation/EmulatedDevices.ts +1 -1
  79. package/front_end/models/extensions/ExtensionPanel.ts +1 -1
  80. package/front_end/models/extensions/ExtensionServer.ts +8 -8
  81. package/front_end/models/formatter/FormatterWorkerPool.ts +2 -12
  82. package/front_end/models/formatter/ScriptFormatter.ts +3 -3
  83. package/front_end/models/formatter/SourceFormatter.ts +2 -2
  84. package/front_end/models/issues_manager/ContrastCheckTrigger.ts +1 -1
  85. package/front_end/models/issues_manager/DeprecationIssue.ts +7 -7
  86. package/front_end/models/issues_manager/SourceFrameIssuesManager.ts +3 -3
  87. package/front_end/models/persistence/Automapping.ts +3 -3
  88. package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +3 -3
  89. package/front_end/models/persistence/IsolatedFileSystem.ts +1 -1
  90. package/front_end/models/persistence/IsolatedFileSystemManager.ts +2 -2
  91. package/front_end/models/persistence/NetworkPersistenceManager.ts +11 -11
  92. package/front_end/models/persistence/PersistenceActions.ts +3 -3
  93. package/front_end/models/persistence/PersistenceImpl.ts +2 -2
  94. package/front_end/models/persistence/WorkspaceSettingsTab.ts +1 -1
  95. package/front_end/models/workspace/UISourceCode.ts +2 -2
  96. package/front_end/models/workspace_diff/WorkspaceDiff.ts +2 -2
  97. package/front_end/panels/accessibility/AXBreadcrumbsPane.ts +4 -4
  98. package/front_end/panels/accessibility/AccessibilityNodeView.ts +3 -3
  99. package/front_end/panels/accessibility/AccessibilitySidebarView.ts +7 -7
  100. package/front_end/panels/animation/AnimationModel.ts +6 -6
  101. package/front_end/panels/animation/AnimationTimeline.ts +3 -3
  102. package/front_end/panels/animation/AnimationUI.ts +3 -3
  103. package/front_end/panels/application/AppManifestView.ts +4 -4
  104. package/front_end/panels/application/ApplicationPanelCacheSection.ts +3 -3
  105. package/front_end/panels/application/ApplicationPanelSidebar.ts +15 -15
  106. package/front_end/panels/application/BackgroundServiceModel.ts +3 -3
  107. package/front_end/panels/application/BackgroundServiceView.ts +3 -3
  108. package/front_end/panels/application/CookieItemsView.ts +5 -5
  109. package/front_end/panels/application/DOMStorageItemsView.ts +4 -4
  110. package/front_end/panels/application/DOMStorageModel.ts +4 -4
  111. package/front_end/panels/application/DatabaseModel.ts +2 -2
  112. package/front_end/panels/application/DatabaseQueryView.ts +2 -2
  113. package/front_end/panels/application/DatabaseTableView.ts +1 -1
  114. package/front_end/panels/application/IndexedDBModel.ts +11 -11
  115. package/front_end/panels/application/IndexedDBViews.ts +5 -5
  116. package/front_end/panels/application/OpenedWindowDetailsView.ts +4 -4
  117. package/front_end/panels/application/ReportingApiView.ts +1 -1
  118. package/front_end/panels/application/ResourcesPanel.ts +2 -2
  119. package/front_end/panels/application/ServiceWorkerCacheViews.ts +7 -7
  120. package/front_end/panels/application/ServiceWorkersView.ts +15 -15
  121. package/front_end/panels/application/StorageView.ts +5 -5
  122. package/front_end/panels/application/TrustTokensTreeElement.ts +1 -1
  123. package/front_end/panels/application/components/BackForwardCacheStrings.ts +5 -1
  124. package/front_end/panels/application/components/BackForwardCacheView.ts +4 -4
  125. package/front_end/panels/application/components/FrameDetailsView.ts +3 -3
  126. package/front_end/panels/application/components/PermissionsPolicySection.ts +2 -2
  127. package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +1 -1
  128. package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +8 -7
  129. package/front_end/panels/browser_debugger/ObjectEventListenersSidebarPane.ts +1 -1
  130. package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +4 -4
  131. package/front_end/panels/changes/ChangesView.ts +4 -4
  132. package/front_end/panels/console/ConsoleContextSelector.ts +1 -1
  133. package/front_end/panels/console/ConsoleFilter.ts +17 -2
  134. package/front_end/panels/console/ConsoleFormat.ts +5 -4
  135. package/front_end/panels/console/ConsolePinPane.ts +4 -4
  136. package/front_end/panels/console/ConsolePrompt.ts +4 -4
  137. package/front_end/panels/console/ConsoleView.ts +96 -71
  138. package/front_end/panels/console/ConsoleViewMessage.ts +61 -19
  139. package/front_end/panels/console/consoleView.css +36 -0
  140. package/front_end/panels/console_counters/WarningErrorCounter.ts +2 -2
  141. package/front_end/panels/coverage/CoverageListView.ts +3 -3
  142. package/front_end/panels/coverage/CoverageModel.ts +3 -3
  143. package/front_end/panels/coverage/CoverageView.ts +6 -6
  144. package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +3 -3
  145. package/front_end/panels/css_overview/CSSOverviewModel.ts +2 -2
  146. package/front_end/panels/css_overview/CSSOverviewPanel.ts +1 -1
  147. package/front_end/panels/developer_resources/DeveloperResourcesListView.ts +1 -1
  148. package/front_end/panels/developer_resources/DeveloperResourcesView.ts +1 -1
  149. package/front_end/panels/elements/AccessibilityTreeView.ts +5 -5
  150. package/front_end/panels/elements/ClassesPaneWidget.ts +1 -1
  151. package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +10 -10
  152. package/front_end/panels/elements/ComputedStyleWidget.ts +2 -2
  153. package/front_end/panels/elements/DOMLinkifier.ts +2 -2
  154. package/front_end/panels/elements/ElementsPanel.ts +19 -19
  155. package/front_end/panels/elements/ElementsSidebarPane.ts +1 -1
  156. package/front_end/panels/elements/ElementsTreeElement.ts +26 -25
  157. package/front_end/panels/elements/ElementsTreeElementHighlighter.ts +1 -1
  158. package/front_end/panels/elements/ElementsTreeOutline.ts +4 -4
  159. package/front_end/panels/elements/InspectElementModeController.ts +3 -3
  160. package/front_end/panels/elements/LayoutSidebarPane.ts +2 -2
  161. package/front_end/panels/elements/MetricsSidebarPane.ts +2 -2
  162. package/front_end/panels/elements/StylePropertyHighlighter.ts +1 -1
  163. package/front_end/panels/elements/StylePropertyTreeElement.ts +16 -16
  164. package/front_end/panels/elements/StylesSidebarPane.ts +15 -15
  165. package/front_end/panels/elements/components/AccessibilityTreeNode.ts +1 -1
  166. package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +8 -8
  167. package/front_end/panels/elements/elementsPanel.css +1 -0
  168. package/front_end/panels/elements/elementsTreeOutline.css +6 -1
  169. package/front_end/panels/emulation/AdvancedApp.ts +2 -2
  170. package/front_end/panels/emulation/DeviceModeToolbar.ts +1 -1
  171. package/front_end/panels/emulation/DeviceModeView.ts +2 -2
  172. package/front_end/panels/emulation/DeviceModeWrapper.ts +4 -4
  173. package/front_end/panels/emulation/MediaQueryInspector.ts +3 -3
  174. package/front_end/panels/event_listeners/EventListenersView.ts +3 -3
  175. package/front_end/panels/input/InputModel.ts +2 -2
  176. package/front_end/panels/input/InputTimeline.ts +6 -6
  177. package/front_end/panels/issues/AffectedCookiesView.ts +2 -2
  178. package/front_end/panels/issues/AffectedDirectivesView.ts +1 -1
  179. package/front_end/panels/issues/AffectedElementsView.ts +1 -1
  180. package/front_end/panels/issues/AffectedResourcesView.ts +2 -2
  181. package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +1 -1
  182. package/front_end/panels/issues/ComboBoxOfCheckBoxes.ts +1 -1
  183. package/front_end/panels/issues/IssueView.ts +1 -1
  184. package/front_end/panels/issues/components/HideIssuesMenu.ts +1 -1
  185. package/front_end/panels/layer_viewer/LayerDetailsView.ts +1 -1
  186. package/front_end/panels/layer_viewer/LayerViewHost.ts +1 -1
  187. package/front_end/panels/layer_viewer/Layers3DView.ts +7 -7
  188. package/front_end/panels/layer_viewer/PaintProfilerView.ts +1 -1
  189. package/front_end/panels/layers/LayerPaintProfilerView.ts +3 -3
  190. package/front_end/panels/layers/LayerTreeModel.ts +4 -4
  191. package/front_end/panels/layers/LayersPanel.ts +4 -4
  192. package/front_end/panels/lighthouse/LighthouseController.ts +1 -1
  193. package/front_end/panels/lighthouse/LighthousePanel.ts +5 -5
  194. package/front_end/panels/lighthouse/LighthouseProtocolService.ts +1 -1
  195. package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +1 -1
  196. package/front_end/panels/media/MediaModel.ts +1 -1
  197. package/front_end/panels/media/PlayerListView.ts +1 -1
  198. package/front_end/panels/mobile_throttling/NetworkThrottlingSelector.ts +1 -1
  199. package/front_end/panels/network/BinaryResourceView.ts +1 -1
  200. package/front_end/panels/network/BlockedURLsPane.ts +5 -5
  201. package/front_end/panels/network/NetworkDataGridNode.ts +1 -1
  202. package/front_end/panels/network/NetworkItemView.ts +2 -2
  203. package/front_end/panels/network/NetworkLogView.ts +4 -4
  204. package/front_end/panels/network/NetworkLogViewColumns.ts +1 -1
  205. package/front_end/panels/network/NetworkPanel.ts +8 -8
  206. package/front_end/panels/network/NetworkTimeCalculator.ts +1 -1
  207. package/front_end/panels/network/RequestHeadersView.ts +4 -3
  208. package/front_end/panels/network/RequestPayloadView.ts +8 -8
  209. package/front_end/panels/network/RequestPreviewView.ts +1 -1
  210. package/front_end/panels/network/RequestResponseView.ts +2 -2
  211. package/front_end/panels/network/ResourceWebSocketFrameView.ts +1 -1
  212. package/front_end/panels/performance_monitor/PerformanceMonitor.ts +2 -2
  213. package/front_end/panels/profiler/CPUProfileView.ts +4 -4
  214. package/front_end/panels/profiler/HeapProfileView.ts +6 -6
  215. package/front_end/panels/profiler/HeapProfilerPanel.ts +2 -2
  216. package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +10 -10
  217. package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +9 -8
  218. package/front_end/panels/profiler/HeapSnapshotView.ts +24 -24
  219. package/front_end/panels/profiler/LiveHeapProfileView.ts +4 -4
  220. package/front_end/panels/profiler/ProfileSidebarTreeElement.ts +1 -1
  221. package/front_end/panels/profiler/ProfileView.ts +3 -3
  222. package/front_end/panels/profiler/ProfilesPanel.ts +3 -3
  223. package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +3 -3
  224. package/front_end/panels/screencast/InputModel.ts +3 -3
  225. package/front_end/panels/screencast/ScreencastView.ts +10 -10
  226. package/front_end/panels/search/SearchResultsPane.ts +1 -1
  227. package/front_end/panels/search/SearchView.ts +2 -2
  228. package/front_end/panels/security/SecurityModel.ts +1 -1
  229. package/front_end/panels/security/SecurityPanel.ts +2 -2
  230. package/front_end/panels/sensors/SensorsView.ts +3 -2
  231. package/front_end/panels/settings/SettingsScreen.ts +5 -5
  232. package/front_end/panels/settings/components/SyncSection.ts +1 -1
  233. package/front_end/panels/snippets/SnippetsQuickOpen.ts +1 -1
  234. package/front_end/panels/sources/BreakpointEditDialog.ts +2 -2
  235. package/front_end/panels/sources/CallStackSidebarPane.ts +4 -4
  236. package/front_end/panels/sources/CoveragePlugin.ts +3 -3
  237. package/front_end/panels/sources/DebuggerPlugin.ts +12 -12
  238. package/front_end/panels/sources/GoToLineQuickOpen.ts +1 -1
  239. package/front_end/panels/sources/InplaceFormatterEditorAction.ts +3 -3
  240. package/front_end/panels/sources/JavaScriptBreakpointsSidebarPane.ts +3 -3
  241. package/front_end/panels/sources/NavigatorView.ts +6 -6
  242. package/front_end/panels/sources/OpenFileQuickOpen.ts +2 -2
  243. package/front_end/panels/sources/OutlineQuickOpen.ts +1 -1
  244. package/front_end/panels/sources/ScopeChainSidebarPane.ts +3 -3
  245. package/front_end/panels/sources/ScriptFormatterEditorAction.ts +3 -3
  246. package/front_end/panels/sources/SearchSourcesView.ts +2 -2
  247. package/front_end/panels/sources/SourcesNavigator.ts +9 -9
  248. package/front_end/panels/sources/SourcesPanel.ts +28 -25
  249. package/front_end/panels/sources/SourcesSearchScope.ts +2 -2
  250. package/front_end/panels/sources/SourcesView.ts +4 -4
  251. package/front_end/panels/sources/TabbedEditorContainer.ts +1 -1
  252. package/front_end/panels/sources/UISourceCodeFrame.ts +2 -2
  253. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +4 -4
  254. package/front_end/panels/timeline/EventsTimelineTreeView.ts +1 -1
  255. package/front_end/panels/timeline/TimelineController.ts +1 -1
  256. package/front_end/panels/timeline/TimelineDetailsView.ts +2 -2
  257. package/front_end/panels/timeline/TimelineEventOverview.ts +2 -2
  258. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +22 -5
  259. package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +9 -6
  260. package/front_end/panels/timeline/TimelineHistoryManager.ts +1 -1
  261. package/front_end/panels/timeline/TimelineLayersView.ts +1 -1
  262. package/front_end/panels/timeline/TimelineLoader.ts +2 -2
  263. package/front_end/panels/timeline/TimelinePaintProfilerView.ts +4 -4
  264. package/front_end/panels/timeline/TimelinePanel.ts +10 -10
  265. package/front_end/panels/timeline/TimelineUIUtils.ts +2 -2
  266. package/front_end/panels/timeline/components/WebVitalsTimeline.ts +2 -2
  267. package/front_end/panels/web_audio/WebAudioModel.ts +1 -1
  268. package/front_end/panels/web_audio/WebAudioView.ts +1 -1
  269. package/front_end/panels/webauthn/WebauthnPane.ts +7 -7
  270. package/front_end/ui/components/buttons/Button.ts +10 -10
  271. package/front_end/ui/components/data_grid/DataGrid.ts +14 -14
  272. package/front_end/ui/components/docs/tree_outline/basic.ts +2 -2
  273. package/front_end/ui/components/docs/tree_outline/custom-renderers.ts +1 -1
  274. package/front_end/ui/components/docs/tree_outline/lazy-children.ts +1 -1
  275. package/front_end/ui/components/helpers/scheduled-render.ts +1 -1
  276. package/front_end/ui/components/icon_button/Icon.ts +1 -1
  277. package/front_end/ui/components/issue_counter/IssueCounter.ts +1 -1
  278. package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +2 -2
  279. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorController.ts +2 -2
  280. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorPane.ts +5 -2
  281. package/front_end/ui/components/linkifier/LinkifierImpl.ts +1 -1
  282. package/front_end/ui/components/panel_feedback/FeedbackButton.ts +1 -1
  283. package/front_end/ui/components/panel_feedback/PanelFeedback.ts +1 -1
  284. package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +3 -3
  285. package/front_end/ui/components/text_editor/cursor_tooltip.ts +1 -1
  286. package/front_end/ui/components/text_editor/javascript.ts +2 -2
  287. package/front_end/ui/components/tree_outline/TreeOutline.ts +8 -8
  288. package/front_end/ui/legacy/Context.ts +1 -1
  289. package/front_end/ui/legacy/ContextMenu.ts +1 -1
  290. package/front_end/ui/legacy/GlassPane.ts +0 -1
  291. package/front_end/ui/legacy/InspectorView.ts +2 -3
  292. package/front_end/ui/legacy/PopoverHelper.ts +1 -1
  293. package/front_end/ui/legacy/ShortcutRegistry.ts +1 -1
  294. package/front_end/ui/legacy/TabbedPane.ts +2 -2
  295. package/front_end/ui/legacy/ThrottledWidget.ts +1 -1
  296. package/front_end/ui/legacy/Toolbar.ts +3 -3
  297. package/front_end/ui/legacy/Treeoutline.ts +6 -6
  298. package/front_end/ui/legacy/UIUtils.ts +17 -24
  299. package/front_end/ui/legacy/ViewManager.ts +9 -9
  300. package/front_end/ui/legacy/components/color_picker/ContrastOverlay.ts +1 -1
  301. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +7 -7
  302. package/front_end/ui/legacy/components/color_picker/spectrum.css +5 -2
  303. package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +3 -3
  304. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +2 -2
  305. package/front_end/ui/legacy/components/data_grid/ShowMoreDataGridNode.ts +3 -3
  306. package/front_end/ui/legacy/components/inline_editor/CSSAngleEditor.ts +1 -1
  307. package/front_end/ui/legacy/components/inline_editor/FontEditor.ts +4 -4
  308. package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +3 -3
  309. package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +1 -1
  310. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +11 -11
  311. package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +8 -8
  312. package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +13 -18
  313. package/front_end/ui/legacy/components/perf_ui/GCActionDelegate.ts +1 -1
  314. package/front_end/ui/legacy/components/perf_ui/LineLevelProfile.ts +1 -1
  315. package/front_end/ui/legacy/components/perf_ui/LiveHeapProfile.ts +3 -3
  316. package/front_end/ui/legacy/components/perf_ui/TimelineGrid.ts +2 -4
  317. package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +2 -2
  318. package/front_end/ui/legacy/components/perf_ui/flameChart.css +8 -0
  319. package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +5 -5
  320. package/front_end/ui/legacy/components/source_frame/FontView.ts +1 -2
  321. package/front_end/ui/legacy/components/source_frame/ImageView.ts +3 -4
  322. package/front_end/ui/legacy/components/source_frame/JSONView.ts +0 -1
  323. package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +1 -2
  324. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +5 -5
  325. package/front_end/ui/legacy/components/source_frame/XMLView.ts +0 -2
  326. package/front_end/ui/legacy/components/utils/ImagePreview.ts +1 -1
  327. package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +1 -1
  328. package/front_end/ui/legacy/components/utils/Linkifier.ts +5 -5
  329. package/front_end/ui/legacy/components/utils/TargetDetachedDialog.ts +2 -2
  330. package/front_end/ui/legacy/inspectorSyntaxHighlight.css +8 -11
  331. package/front_end/ui/legacy/tabbedPane.css +1 -0
  332. package/front_end/ui/legacy/themeColors.css +3 -1
  333. package/front_end/ui/legacy/theme_support/theme_support_impl.ts +23 -229
  334. package/front_end/ui/legacy/toolbar.css +1 -0
  335. package/package.json +1 -1
  336. package/scripts/component_server/server.js +2 -2
  337. package/scripts/eslint_rules/lib/no_bound_component_methods.js +116 -0
  338. package/scripts/eslint_rules/tests/check_license_header_test.js +10 -8
  339. package/scripts/eslint_rules/tests/no_bound_component_methods_test.js +85 -0
  340. package/front_end/global_typings/intl_display_names.d.ts +0 -111
  341. package/front_end/ui/legacy/inspectorSyntaxHighlightDark.css +0 -270
@@ -55,5 +55,5 @@ component.data = data;
55
55
 
56
56
  document.getElementById('container')?.appendChild(component);
57
57
  document.getElementById('recursively-expand')?.addEventListener('click', () => {
58
- component.expandRecursively();
58
+ void component.expandRecursively();
59
59
  });
@@ -87,5 +87,5 @@ component.data = data;
87
87
 
88
88
  document.getElementById('container')?.appendChild(component);
89
89
  document.getElementById('recursively-expand')?.addEventListener('click', () => {
90
- component.expandRecursively();
90
+ void component.expandRecursively();
91
91
  });
@@ -51,7 +51,7 @@ export async function scheduleRender(component: HTMLElement, callback: () => voi
51
51
  return;
52
52
  }
53
53
 
54
- scheduleRender(component, newCallback);
54
+ void scheduleRender(component, newCallback);
55
55
  }
56
56
  }
57
57
 
@@ -105,7 +105,7 @@ export class Icon extends HTMLElement {
105
105
  }
106
106
 
107
107
  #render(): void {
108
- coordinator.write(() => {
108
+ void coordinator.write(() => {
109
109
  // clang-format off
110
110
  LitHtml.render(LitHtml.html`
111
111
  <div class="icon-basic" style=${LitHtml.Directives.styleMap(this.#getStyles())}></div>
@@ -97,7 +97,7 @@ export class IssueCounter extends HTMLElement {
97
97
 
98
98
  scheduleUpdate(): void {
99
99
  if (this.#throttler) {
100
- this.#throttler.schedule(async () => this.#render());
100
+ void this.#throttler.schedule(async () => this.#render());
101
101
  } else {
102
102
  this.#render();
103
103
  }
@@ -80,7 +80,7 @@ export class IssueLinkIcon extends HTMLElement {
80
80
  } else {
81
81
  this.#issueTitlePromise = this.#fetchIssueTitle();
82
82
  }
83
- this.#render();
83
+ void this.#render();
84
84
  }
85
85
 
86
86
  async #fetchIssueTitle(): Promise<void> {
@@ -133,7 +133,7 @@ export class IssueLinkIcon extends HTMLElement {
133
133
  return; // Only handle left-click for now.
134
134
  }
135
135
  if (this.#issue) {
136
- this.#reveal(this.#issue);
136
+ void this.#reveal(this.#issue);
137
137
  }
138
138
  this.#additionalOnClickAction?.();
139
139
  }
@@ -168,7 +168,7 @@ export class LinearMemoryInspectorController extends SDK.TargetManager.SDKModelO
168
168
 
169
169
  if (this.#bufferIdToRemoteObject.has(id)) {
170
170
  this.#paneInstance.reveal(id, address);
171
- UI.ViewManager.ViewManager.instance().showView('linear-memory-inspector');
171
+ void UI.ViewManager.ViewManager.instance().showView('linear-memory-inspector');
172
172
  return;
173
173
  }
174
174
 
@@ -177,7 +177,7 @@ export class LinearMemoryInspectorController extends SDK.TargetManager.SDKModelO
177
177
  const arrayBufferWrapper = new RemoteArrayBufferWrapper(buffer);
178
178
 
179
179
  this.#paneInstance.create(id, title, arrayBufferWrapper, address);
180
- UI.ViewManager.ViewManager.instance().showView('linear-memory-inspector');
180
+ void UI.ViewManager.ViewManager.instance().showView('linear-memory-inspector');
181
181
  }
182
182
 
183
183
  modelRemoved(model: SDK.RuntimeModel.RuntimeModel): void {
@@ -167,7 +167,10 @@ class LinearMemoryInspectorView extends UI.Widget.VBox {
167
167
  }
168
168
 
169
169
  refreshData(): void {
170
- LinearMemoryInspectorController.getMemoryForAddress(this.#memoryWrapper, this.#address).then(({memory, offset}) => {
170
+ void LinearMemoryInspectorController.getMemoryForAddress(this.#memoryWrapper, this.#address).then(({
171
+ memory,
172
+ offset,
173
+ }) => {
171
174
  let valueTypes;
172
175
  let valueTypeModes;
173
176
  let endianness;
@@ -196,7 +199,7 @@ class LinearMemoryInspectorView extends UI.Widget.VBox {
196
199
  throw new Error('Requested address is out of bounds.');
197
200
  }
198
201
 
199
- LinearMemoryInspectorController.getMemoryRange(this.#memoryWrapper, start, end).then(memory => {
202
+ void LinearMemoryInspectorController.getMemoryRange(this.#memoryWrapper, start, end).then(memory => {
200
203
  this.#inspector.data = {
201
204
  memory: memory,
202
205
  address: address,
@@ -45,7 +45,7 @@ export class Linkifier extends HTMLElement {
45
45
  throw new Error('Cannot construct a Linkifier without providing a valid string URL.');
46
46
  }
47
47
 
48
- this.#render();
48
+ void this.#render();
49
49
  }
50
50
 
51
51
  connectedCallback(): void {
@@ -34,7 +34,7 @@ export class FeedbackButton extends HTMLElement {
34
34
 
35
35
  set data(data: FeedbackButtonData) {
36
36
  this.#props = data;
37
- ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
37
+ void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
38
38
  }
39
39
 
40
40
  #onFeedbackClick(): void {
@@ -56,7 +56,7 @@ export class PanelFeedback extends HTMLElement {
56
56
 
57
57
  set data(data: PanelFeedbackData) {
58
58
  this.#props = data;
59
- ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
59
+ void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
60
60
  }
61
61
 
62
62
  #render(): void {
@@ -86,7 +86,7 @@ export class RequestLinkIcon extends HTMLElement {
86
86
  if (!this.#request && data.affectedRequest) {
87
87
  this.#requestResolvedPromise = this.#resolveRequest(data.affectedRequest.requestId);
88
88
  }
89
- this.#render();
89
+ void this.#render();
90
90
  }
91
91
 
92
92
  connectedCallback(): void {
@@ -147,11 +147,11 @@ export class RequestLinkIcon extends HTMLElement {
147
147
  if (this.#highlightHeader) {
148
148
  const requestLocation = NetworkForward.UIRequestLocation.UIRequestLocation.header(
149
149
  linkedRequest, this.#highlightHeader.section, this.#highlightHeader.name);
150
- this.#reveal(requestLocation);
150
+ void this.#reveal(requestLocation);
151
151
  } else {
152
152
  const requestLocation = NetworkForward.UIRequestLocation.UIRequestLocation.tab(
153
153
  linkedRequest, this.#networkTab ?? NetworkForward.UIRequestLocation.UIRequestTabs.Headers);
154
- this.#reveal(requestLocation);
154
+ void this.#reveal(requestLocation);
155
155
  }
156
156
  this.#additionalOnClickAction?.();
157
157
  }
@@ -57,7 +57,7 @@ export function cursorTooltip(
57
57
  const {main} = view.state.selection;
58
58
  if (main.empty) {
59
59
  const {updateID} = this;
60
- source(view.state, main.from).then(tooltip => {
60
+ void source(view.state, main.from).then(tooltip => {
61
61
  if (this.updateID !== updateID) {
62
62
  if (this.pending < 0) {
63
63
  this.scheduleUpdate(view);
@@ -18,11 +18,11 @@ export function completion(): CodeMirror.Extension {
18
18
  export async function completeInContext(
19
19
  textBefore: string, query: string, force: boolean = false): Promise<UI.SuggestBox.Suggestions> {
20
20
  const state = CodeMirror.EditorState.create({
21
- doc: textBefore,
21
+ doc: textBefore + query,
22
22
  selection: {anchor: textBefore.length},
23
23
  extensions: CodeMirror.javascript.javascriptLanguage,
24
24
  });
25
- const result = await javascriptCompletionSource(new CodeMirror.CompletionContext(state, textBefore.length, force));
25
+ const result = await javascriptCompletionSource(new CodeMirror.CompletionContext(state, state.doc.length, force));
26
26
  return result ?
27
27
  result.options.filter((o): boolean => o.label.startsWith(query)).map((o): UI.SuggestBox.Suggestion => ({
28
28
  text: o.label,
@@ -153,7 +153,7 @@ export class TreeOutline<TreeNodeDataType> extends HTMLElement {
153
153
  if (!this.#hasRenderedAtLeastOnce) {
154
154
  this.#selectedTreeNode = this.#treeData[0];
155
155
  }
156
- this.#render();
156
+ void this.#render();
157
157
  }
158
158
 
159
159
  /**
@@ -298,7 +298,7 @@ export class TreeOutline<TreeNodeDataType> extends HTMLElement {
298
298
  event.stopPropagation();
299
299
  if (isExpandableNode(node)) {
300
300
  this.#setNodeExpandedState(node, !this.#nodeIsExpanded(node));
301
- this.#render();
301
+ void this.#render();
302
302
  }
303
303
  };
304
304
  }
@@ -312,7 +312,7 @@ export class TreeOutline<TreeNodeDataType> extends HTMLElement {
312
312
  if (nodeClickExpandsOrContracts && node && isExpandableNode(node)) {
313
313
  this.#setNodeExpandedState(node, !this.#nodeIsExpanded(node));
314
314
  }
315
- this.#focusTreeNode(domNode);
315
+ void this.#focusTreeNode(domNode);
316
316
  }
317
317
 
318
318
  async #focusTreeNode(domNode: HTMLLIElement): Promise<void> {
@@ -323,7 +323,7 @@ export class TreeOutline<TreeNodeDataType> extends HTMLElement {
323
323
  this.#selectedTreeNode = treeNode;
324
324
  await this.#render();
325
325
  this.dispatchEvent(new ItemSelectedEvent(treeNode));
326
- coordinator.write('DOMNode focus', () => {
326
+ void coordinator.write('DOMNode focus', () => {
327
327
  domNode.focus();
328
328
  });
329
329
  }
@@ -332,7 +332,7 @@ export class TreeOutline<TreeNodeDataType> extends HTMLElement {
332
332
  if (key === 'Home') {
333
333
  const firstRootNode = this.#shadow.querySelector<HTMLLIElement>('ul[role="tree"] > li[role="treeitem"]');
334
334
  if (firstRootNode) {
335
- this.#focusTreeNode(firstRootNode);
335
+ void this.#focusTreeNode(firstRootNode);
336
336
  }
337
337
  } else if (key === 'End') {
338
338
  /**
@@ -347,7 +347,7 @@ export class TreeOutline<TreeNodeDataType> extends HTMLElement {
347
347
  const allTreeItems = this.#shadow.querySelectorAll<HTMLLIElement>('li[role="treeitem"]');
348
348
  const lastTreeItem = allTreeItems[allTreeItems.length - 1];
349
349
  if (lastTreeItem) {
350
- this.#focusTreeNode(lastTreeItem);
350
+ void this.#focusTreeNode(lastTreeItem);
351
351
  }
352
352
  }
353
353
  }
@@ -376,7 +376,7 @@ export class TreeOutline<TreeNodeDataType> extends HTMLElement {
376
376
  if (isExpandableNode(currentTreeNode)) {
377
377
  const currentExpandedState = this.#nodeIsExpanded(currentTreeNode);
378
378
  this.#setNodeExpandedState(currentTreeNode, !currentExpandedState);
379
- this.#render();
379
+ void this.#render();
380
380
  }
381
381
  }
382
382
 
@@ -399,7 +399,7 @@ export class TreeOutline<TreeNodeDataType> extends HTMLElement {
399
399
 
400
400
  #focusPendingNode(domNode: HTMLLIElement): void {
401
401
  this.#nodeIdPendingFocus = null;
402
- this.#focusTreeNode(domNode);
402
+ void this.#focusTreeNode(domNode);
403
403
  }
404
404
 
405
405
  #isSelectedNode(node: TreeNode<TreeNodeDataType>): boolean {
@@ -52,7 +52,7 @@ export class Context {
52
52
  private dispatchFlavorChange<T>(flavorType: ConstructorFn<T>, flavorValue: T|null): void {
53
53
  for (const extension of getRegisteredListeners()) {
54
54
  if (extension.contextTypes().includes(flavorType)) {
55
- extension.loadListener().then(instance => instance.flavorChanged(flavorValue));
55
+ void extension.loadListener().then(instance => instance.flavorChanged(flavorValue));
56
56
  }
57
57
  }
58
58
  const dispatcher = this.eventDispatchers.get(flavorType);
@@ -388,7 +388,7 @@ export class ContextMenu extends SubMenu {
388
388
 
389
389
  function handler(event: Event): void {
390
390
  const contextMenu = new ContextMenu(event);
391
- contextMenu.show();
391
+ void contextMenu.show();
392
392
  }
393
393
  }
394
394
 
@@ -56,7 +56,6 @@ export class GlassPane {
56
56
  }
57
57
 
58
58
  registerRequiredCSS(cssFile: {cssContent: string}): void {
59
- // eslint-disable-next-line no-restricted-syntax -- Should import styles https://crbug.com/1106746
60
59
  this.widgetInternal.registerRequiredCSS(cssFile);
61
60
  }
62
61
 
@@ -198,7 +198,7 @@ export class InspectorView extends VBox implements ViewLocationResolver {
198
198
  Host.InspectorFrontendHostAPI.Events.ShowPanel, showPanel.bind(this));
199
199
 
200
200
  function showPanel(this: InspectorView, {data: panelName}: Common.EventTarget.EventTargetEvent<string>): void {
201
- this.showPanel(panelName);
201
+ void this.showPanel(panelName);
202
202
  }
203
203
 
204
204
  if (shouldShowLocaleInfobar()) {
@@ -375,7 +375,7 @@ export class InspectorView extends VBox implements ViewLocationResolver {
375
375
  const panelName = this.tabbedPane.tabIds()[panelIndex];
376
376
  if (panelName) {
377
377
  if (!Dialog.hasInstance() && !this.currentPanelLocked) {
378
- this.showPanel(panelName);
378
+ void this.showPanel(panelName);
379
379
  }
380
380
  event.consume(true);
381
381
  }
@@ -478,7 +478,6 @@ function shouldShowLocaleInfobar(): boolean {
478
478
  function createLocaleInfobar(): Infobar {
479
479
  const devtoolsLocale = i18n.DevToolsLocale.DevToolsLocale.instance();
480
480
  const closestSupportedLocale = devtoolsLocale.lookupClosestDevToolsLocale(navigator.language);
481
- // @ts-ignore TODO(crbug.com/1163928) Wait for Intl support.
482
481
  const locale = new Intl.Locale(closestSupportedLocale);
483
482
  const closestSupportedLanguageInCurrentLocale =
484
483
  new Intl.DisplayNames([devtoolsLocale.locale], {type: 'language'}).of(locale.language || 'en');
@@ -197,7 +197,7 @@ export class PopoverHelper {
197
197
  if (!request) {
198
198
  return;
199
199
  }
200
- request.show.call(null, popover).then(success => {
200
+ void request.show.call(null, popover).then(success => {
201
201
  if (!success) {
202
202
  return;
203
203
  }
@@ -137,7 +137,7 @@ export class ShortcutRegistry {
137
137
  handleShortcut(event: KeyboardEvent, handlers?: {
138
138
  [x: string]: () => Promise<boolean>,
139
139
  }): void {
140
- this.handleKey(KeyboardShortcut.makeKeyFromEvent(event), event.key, event, handlers);
140
+ void this.handleKey(KeyboardShortcut.makeKeyFromEvent(event), event.key, event, handlers);
141
141
  }
142
142
 
143
143
  actionHasDefaultShortcut(actionId: string): boolean {
@@ -632,7 +632,7 @@ export class TabbedPane extends Common.ObjectWrapper.eventMixin<EventTypes, type
632
632
  menu.defaultSection().appendItem(tab.title, this.dropDownMenuItemSelected.bind(this, tab));
633
633
  }
634
634
  }
635
- menu.show();
635
+ void menu.show();
636
636
  }
637
637
 
638
638
  private dropDownKeydown(event: Event): void {
@@ -1250,7 +1250,7 @@ export class TabbedPaneTab {
1250
1250
  if (this.delegate) {
1251
1251
  this.delegate.onContextMenu(this.id, contextMenu);
1252
1252
  }
1253
- contextMenu.show();
1253
+ void contextMenu.show();
1254
1254
  }
1255
1255
 
1256
1256
  private startTabDragging(ev: Event): boolean {
@@ -24,7 +24,7 @@ export class ThrottledWidget extends VBox {
24
24
  if (this.updateWhenVisible) {
25
25
  return;
26
26
  }
27
- this.updateThrottler.schedule(() => {
27
+ void this.updateThrottler.schedule(() => {
28
28
  if (this.isShowing()) {
29
29
  return this.doUpdate();
30
30
  }
@@ -225,13 +225,13 @@ export class Toolbar {
225
225
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
226
226
  data: any,
227
227
  }): void => {
228
- action.execute();
228
+ void action.execute();
229
229
  };
230
230
  if (options.userActionCode) {
231
231
  const actionCode = options.userActionCode;
232
232
  handler = (): void => {
233
233
  Host.userMetrics.actionTaken(actionCode);
234
- action.execute();
234
+ void action.execute();
235
235
  };
236
236
  }
237
237
  button.addEventListener(ToolbarButton.Events.Click, handler, action);
@@ -814,7 +814,7 @@ export class ToolbarMenuButton extends ToolbarButton {
814
814
  y: this.element.totalOffsetTop() + this.element.offsetHeight,
815
815
  });
816
816
  this.contextMenuHandler(contextMenu);
817
- contextMenu.show();
817
+ void contextMenu.show();
818
818
  this.lastTriggerTime = Date.now();
819
819
  }
820
820
 
@@ -924,7 +924,7 @@ export class TreeElement {
924
924
  }
925
925
  } else {
926
926
  if (event.altKey) {
927
- this.expandRecursively();
927
+ void this.expandRecursively();
928
928
  } else {
929
929
  this.expand();
930
930
  }
@@ -1020,7 +1020,7 @@ export class TreeElement {
1020
1020
 
1021
1021
  this.expanded = true;
1022
1022
 
1023
- this.populateIfNeeded();
1023
+ void this.populateIfNeeded();
1024
1024
  this.listItemNode.classList.add('expanded');
1025
1025
  this.childrenListNode.classList.add('expanded');
1026
1026
  ARIAUtils.setExpanded(this.listItemNode, true);
@@ -1093,7 +1093,7 @@ export class TreeElement {
1093
1093
 
1094
1094
  if (!this.expanded) {
1095
1095
  if (altKey) {
1096
- this.expandRecursively();
1096
+ void this.expandRecursively();
1097
1097
  } else {
1098
1098
  this.expand();
1099
1099
  }
@@ -1292,7 +1292,7 @@ export class TreeElement {
1292
1292
  depthChange: number,
1293
1293
  }): TreeElement|null {
1294
1294
  if (!dontPopulate) {
1295
- this.populateIfNeeded();
1295
+ void this.populateIfNeeded();
1296
1296
  }
1297
1297
 
1298
1298
  if (info) {
@@ -1338,14 +1338,14 @@ export class TreeElement {
1338
1338
  let element: (TreeElement|null) =
1339
1339
  skipUnrevealed ? (this.revealed() ? this.previousSibling : null) : this.previousSibling;
1340
1340
  if (!dontPopulate && element) {
1341
- element.populateIfNeeded();
1341
+ void element.populateIfNeeded();
1342
1342
  }
1343
1343
 
1344
1344
  while (element &&
1345
1345
  (skipUnrevealed ? (element.revealed() && element.expanded ? element.lastChild() : null) :
1346
1346
  element.lastChild())) {
1347
1347
  if (!dontPopulate) {
1348
- element.populateIfNeeded();
1348
+ void element.populateIfNeeded();
1349
1349
  }
1350
1350
  element =
1351
1351
  (skipUnrevealed ? (element.revealed() && element.expanded ? element.lastChild() : null) :
@@ -33,7 +33,6 @@
33
33
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
34
  */
35
35
 
36
- import type * as Common from '../../core/common/common.js';
37
36
  import * as DOMExtension from '../../core/dom_extension/dom_extension.js';
38
37
  import * as Host from '../../core/host/host.js';
39
38
  import * as i18n from '../../core/i18n/i18n.js';
@@ -46,7 +45,6 @@ import {Size} from './Geometry.js';
46
45
  import {GlassPane, PointerEventsBehavior, SizeBehavior} from './GlassPane.js';
47
46
  import {Icon} from './Icon.js';
48
47
  import {KeyboardShortcut} from './KeyboardShortcut.js';
49
- import * as ThemeSupport from './theme_support/theme_support.js';
50
48
  import * as Utils from './utils/utils.js';
51
49
 
52
50
  import type {ToolbarButton} from './Toolbar.js';
@@ -141,9 +139,9 @@ export function installDragHandle(
141
139
  }
142
140
 
143
141
  let startTimer: number|null;
144
- element.addEventListener('mousedown', onMouseDown, false);
142
+ element.addEventListener('pointerdown', onMouseDown, false);
145
143
  if (startDelay) {
146
- element.addEventListener('mouseup', onMouseUp, false);
144
+ element.addEventListener('pointerup', onMouseUp, false);
147
145
  }
148
146
  if (hoverCursor !== null) {
149
147
  (element as HTMLElement).style.cursor = hoverCursor || cursor || '';
@@ -233,12 +231,12 @@ class DragHandler {
233
231
  this.dragEventsTargetDocumentTop = this.dragEventsTargetDocument;
234
232
  }
235
233
 
236
- targetDocument.addEventListener('mousemove', this.elementDragMove, true);
237
- targetDocument.addEventListener('mouseup', this.elementDragEnd, true);
234
+ targetDocument.addEventListener('pointermove', this.elementDragMove, true);
235
+ targetDocument.addEventListener('pointerup', this.elementDragEnd, true);
238
236
  DragHandler.rootForMouseOut &&
239
- DragHandler.rootForMouseOut.addEventListener('mouseout', this.mouseOutWhileDragging, {capture: true});
237
+ DragHandler.rootForMouseOut.addEventListener('pointerout', this.mouseOutWhileDragging, {capture: true});
240
238
  if (this.dragEventsTargetDocumentTop && targetDocument !== this.dragEventsTargetDocumentTop) {
241
- this.dragEventsTargetDocumentTop.addEventListener('mouseup', this.elementDragEnd, true);
239
+ this.dragEventsTargetDocumentTop.addEventListener('pointerup', this.elementDragEnd, true);
242
240
  }
243
241
 
244
242
  const targetHtmlElement = (targetElement as HTMLElement);
@@ -264,17 +262,17 @@ class DragHandler {
264
262
  if (!DragHandler.rootForMouseOut) {
265
263
  return;
266
264
  }
267
- DragHandler.rootForMouseOut.removeEventListener('mouseout', this.mouseOutWhileDragging, {capture: true});
265
+ DragHandler.rootForMouseOut.removeEventListener('pointerout', this.mouseOutWhileDragging, {capture: true});
268
266
  }
269
267
 
270
268
  private unregisterDragEvents(): void {
271
269
  if (!this.dragEventsTargetDocument) {
272
270
  return;
273
271
  }
274
- this.dragEventsTargetDocument.removeEventListener('mousemove', this.elementDragMove, true);
275
- this.dragEventsTargetDocument.removeEventListener('mouseup', this.elementDragEnd, true);
272
+ this.dragEventsTargetDocument.removeEventListener('pointermove', this.elementDragMove, true);
273
+ this.dragEventsTargetDocument.removeEventListener('pointerup', this.elementDragEnd, true);
276
274
  if (this.dragEventsTargetDocumentTop && this.dragEventsTargetDocument !== this.dragEventsTargetDocumentTop) {
277
- this.dragEventsTargetDocumentTop.removeEventListener('mouseup', this.elementDragEnd, true);
275
+ this.dragEventsTargetDocumentTop.removeEventListener('pointerup', this.elementDragEnd, true);
278
276
  }
279
277
  delete this.dragEventsTargetDocument;
280
278
  delete this.dragEventsTargetDocumentTop;
@@ -993,9 +991,9 @@ export class LongClickController {
993
991
 
994
992
  this.element.addEventListener('keydown', boundKeyDown, false);
995
993
  this.element.addEventListener('keyup', boundKeyUp, false);
996
- this.element.addEventListener('mousedown', boundMouseDown, false);
997
- this.element.addEventListener('mouseout', boundReset, false);
998
- this.element.addEventListener('mouseup', boundMouseUp, false);
994
+ this.element.addEventListener('pointerdown', boundMouseDown, false);
995
+ this.element.addEventListener('pointerout', boundReset, false);
996
+ this.element.addEventListener('pointerup', boundMouseUp, false);
999
997
  this.element.addEventListener('click', boundReset, true);
1000
998
 
1001
999
  this.longClickData = {mouseUp: boundMouseUp, mouseDown: boundMouseDown, reset: boundReset};
@@ -1033,9 +1031,9 @@ export class LongClickController {
1033
1031
  if (!this.longClickData) {
1034
1032
  return;
1035
1033
  }
1036
- this.element.removeEventListener('mousedown', this.longClickData.mouseDown, false);
1037
- this.element.removeEventListener('mouseout', this.longClickData.reset, false);
1038
- this.element.removeEventListener('mouseup', this.longClickData.mouseUp, false);
1034
+ this.element.removeEventListener('poinerdown', this.longClickData.mouseDown, false);
1035
+ this.element.removeEventListener('pointerout', this.longClickData.reset, false);
1036
+ this.element.removeEventListener('pointerup', this.longClickData.mouseUp, false);
1039
1037
  this.element.addEventListener('click', this.longClickData.reset, true);
1040
1038
  delete this.longClickData;
1041
1039
  }
@@ -1043,7 +1041,7 @@ export class LongClickController {
1043
1041
  static readonly TIME_MS = 200;
1044
1042
  }
1045
1043
 
1046
- export function initializeUIUtils(document: Document, themeSetting: Common.Settings.Setting<string>): void {
1044
+ export function initializeUIUtils(document: Document): void {
1047
1045
  document.body.classList.toggle('inactive', !document.hasFocus());
1048
1046
  if (document.defaultView) {
1049
1047
  document.defaultView.addEventListener('focus', windowFocused.bind(undefined, document), false);
@@ -1051,11 +1049,6 @@ export function initializeUIUtils(document: Document, themeSetting: Common.Setti
1051
1049
  }
1052
1050
  document.addEventListener('focus', Utils.focusChanged.bind(undefined), true);
1053
1051
 
1054
- if (!ThemeSupport.ThemeSupport.hasInstance()) {
1055
- ThemeSupport.ThemeSupport.instance({forceNew: true, setting: themeSetting});
1056
- }
1057
- ThemeSupport.ThemeSupport.instance().applyTheme(document);
1058
-
1059
1052
  const body = (document.body as Element);
1060
1053
  GlassPane.setContainer(body);
1061
1054
  }
@@ -239,7 +239,7 @@ export class ViewManager {
239
239
  }
240
240
 
241
241
  // Find new location and show view there
242
- this.resolveLocation(locationName).then(location => {
242
+ void this.resolveLocation(locationName).then(location => {
243
243
  if (!location) {
244
244
  throw new Error('Move view: Could not resolve location for view: ' + viewId);
245
245
  }
@@ -393,7 +393,7 @@ export class ContainerWidget extends VBox {
393
393
  }
394
394
 
395
395
  wasShown(): void {
396
- this.materialize().then(() => {
396
+ void this.materialize().then(() => {
397
397
  const widget = widgetForView.get(this.view);
398
398
  if (widget) {
399
399
  widget.show(this.element);
@@ -442,7 +442,7 @@ export class _ExpandableContainerWidget extends VBox {
442
442
 
443
443
  wasShown(): void {
444
444
  if (this.widget && this.materializePromise) {
445
- this.materializePromise.then(() => {
445
+ void this.materializePromise.then(() => {
446
446
  if (this.titleElement.classList.contains('expanded') && this.widget) {
447
447
  this.widget.show(this.element);
448
448
  }
@@ -496,7 +496,7 @@ export class _ExpandableContainerWidget extends VBox {
496
496
  this.titleElement.classList.remove('expanded');
497
497
  ARIAUtils.setExpanded(this.titleElement, false);
498
498
  this.titleExpandIcon.setIconType('smallicon-triangle-right');
499
- this.materialize().then(() => {
499
+ void this.materialize().then(() => {
500
500
  if (this.widget) {
501
501
  this.widget.detach();
502
502
  }
@@ -510,7 +510,7 @@ export class _ExpandableContainerWidget extends VBox {
510
510
  if (this.titleElement.classList.contains('expanded')) {
511
511
  this.collapse();
512
512
  } else {
513
- this.expand();
513
+ void this.expand();
514
514
  }
515
515
  }
516
516
 
@@ -523,7 +523,7 @@ export class _ExpandableContainerWidget extends VBox {
523
523
  this.collapse();
524
524
  } else if (keyEvent.key === 'ArrowRight') {
525
525
  if (!this.titleElement.classList.contains('expanded')) {
526
- this.expand();
526
+ void this.expand();
527
527
  } else if (this.widget) {
528
528
  this.widget.focus();
529
529
  }
@@ -685,7 +685,7 @@ export class _TabbedLocation extends Location implements TabbedViewLocation {
685
685
  const view = Array.from(this.views.values()).find(view => view.viewId() === this.defaultTab);
686
686
  if (view) {
687
687
  // defaultTab is indeed part of the views for this tabbed location
688
- this.showView(view);
688
+ void this.showView(view);
689
689
  }
690
690
  }
691
691
  } else if (this.lastSelectedTabSetting && this.tabbedPaneInternal.hasTab(this.lastSelectedTabSetting.get())) {
@@ -702,7 +702,7 @@ export class _TabbedLocation extends Location implements TabbedViewLocation {
702
702
  if (view.viewId() === 'issues-pane') {
703
703
  contextMenu.defaultSection().appendItem(title, () => {
704
704
  Host.userMetrics.issuesPanelOpenedFrom(Host.UserMetrics.IssueOpener.HamburgerMenu);
705
- this.showView(view, undefined, true);
705
+ void this.showView(view, undefined, true);
706
706
  });
707
707
  continue;
708
708
  }
@@ -801,7 +801,7 @@ export class _TabbedLocation extends Location implements TabbedViewLocation {
801
801
  }
802
802
  const view = this.views.get(tabId);
803
803
  if (view) {
804
- view.disposeView();
804
+ void view.disposeView();
805
805
  }
806
806
  }
807
807
 
@@ -57,7 +57,7 @@ export class ContrastOverlay {
57
57
  if (!this.contrastInfo.contrastRatio()) {
58
58
  return;
59
59
  }
60
- this.contrastRatioLinesThrottler.schedule(this.drawContrastRatioLinesBound);
60
+ void this.contrastRatioLinesThrottler.schedule(this.drawContrastRatioLinesBound);
61
61
  }
62
62
 
63
63
  setDimensions(width: number, height: number): void {