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.
- package/.eslintrc.js +1 -0
- package/AUTHORS +1 -0
- package/config/gni/devtools_grd_files.gni +0 -1
- package/config/owner/COMMON_OWNERS +2 -2
- package/front_end/.eslintrc.js +1 -11
- package/front_end/core/common/Console.ts +1 -1
- package/front_end/core/common/ResolverBase.ts +1 -1
- package/front_end/core/common/Throttler.ts +1 -1
- package/front_end/core/common/Worker.ts +4 -4
- package/front_end/core/host/InspectorFrontendHost.ts +1 -1
- package/front_end/core/host/ResourceLoader.ts +2 -2
- package/front_end/core/i18n/DevToolsLocale.ts +0 -2
- package/front_end/core/i18n/i18nImpl.ts +0 -2
- package/front_end/core/i18n/locales/en-US.json +3 -3
- package/front_end/core/i18n/locales/en-XL.json +3 -3
- package/front_end/core/sdk/AccessibilityModel.ts +1 -1
- package/front_end/core/sdk/CPUProfilerModel.ts +2 -2
- package/front_end/core/sdk/CPUThrottlingManager.ts +2 -2
- package/front_end/core/sdk/CSSModel.ts +7 -7
- package/front_end/core/sdk/CSSProperty.ts +1 -1
- package/front_end/core/sdk/CSSStyleDeclaration.ts +1 -1
- package/front_end/core/sdk/ChildTargetManager.ts +6 -6
- package/front_end/core/sdk/Connections.ts +2 -2
- package/front_end/core/sdk/ConsoleModel.ts +1 -1
- package/front_end/core/sdk/DOMDebuggerModel.ts +16 -15
- package/front_end/core/sdk/DOMModel.ts +17 -17
- package/front_end/core/sdk/DebuggerModel.ts +24 -24
- package/front_end/core/sdk/EmulationModel.ts +16 -16
- package/front_end/core/sdk/EventBreakpointsModel.ts +2 -2
- package/front_end/core/sdk/IsolateManager.ts +2 -2
- package/front_end/core/sdk/IssuesModel.ts +1 -1
- package/front_end/core/sdk/LogModel.ts +3 -3
- package/front_end/core/sdk/NetworkManager.ts +25 -25
- package/front_end/core/sdk/OverlayModel.ts +23 -23
- package/front_end/core/sdk/PageResourceLoader.ts +1 -1
- package/front_end/core/sdk/PaintProfiler.ts +1 -1
- package/front_end/core/sdk/RemoteObject.ts +2 -2
- package/front_end/core/sdk/Resource.ts +2 -2
- package/front_end/core/sdk/ResourceTreeModel.ts +5 -5
- package/front_end/core/sdk/RuntimeModel.ts +11 -11
- package/front_end/core/sdk/ScreenCaptureModel.ts +3 -3
- package/front_end/core/sdk/ServiceWorkerCacheModel.ts +7 -7
- package/front_end/core/sdk/ServiceWorkerManager.ts +4 -4
- package/front_end/core/sdk/SourceMapManager.ts +1 -1
- package/front_end/core/sdk/TargetManager.ts +2 -2
- package/front_end/core/sdk/TracingManager.ts +1 -1
- package/front_end/entrypoints/formatter_worker/FormatterActions.ts +10 -0
- package/front_end/entrypoints/formatter_worker/FormatterWorker.ts +3 -4
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshotLoader.ts +1 -1
- package/front_end/entrypoints/inspector_main/InspectorMain.ts +4 -4
- package/front_end/entrypoints/inspector_main/RenderingOptions.ts +1 -1
- package/front_end/entrypoints/js_app/js_app.ts +2 -2
- package/front_end/entrypoints/main/MainImpl.ts +31 -23
- package/front_end/entrypoints/main/main-meta.ts +1 -1
- package/front_end/entrypoints/node_app/NodeMain.ts +6 -6
- package/front_end/entrypoints/worker_app/WorkerMain.ts +1 -1
- package/front_end/generated/ARIAProperties.js +1 -1
- package/front_end/generated/InspectorBackendCommands.js +5 -1
- package/front_end/generated/SupportedCSSProperties.js +15 -15
- package/front_end/generated/protocol.d.ts +13 -0
- package/front_end/global_typings/global_defs.d.ts +0 -1
- package/front_end/models/bindings/BreakpointManager.ts +21 -23
- package/front_end/models/bindings/CSSWorkspaceBinding.ts +3 -3
- package/front_end/models/bindings/CompilerScriptMapping.ts +1 -1
- package/front_end/models/bindings/ContentProviderBasedProject.ts +1 -1
- package/front_end/models/bindings/DebuggerLanguagePlugins.ts +2 -2
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +3 -3
- package/front_end/models/bindings/DefaultScriptMapping.ts +1 -1
- package/front_end/models/bindings/FileUtils.ts +5 -5
- package/front_end/models/bindings/IgnoreListManager.ts +4 -4
- package/front_end/models/bindings/LiveLocation.ts +9 -0
- package/front_end/models/bindings/PresentationConsoleMessageHelper.ts +2 -1
- package/front_end/models/bindings/ResourceMapping.ts +1 -1
- package/front_end/models/bindings/ResourceScriptMapping.ts +9 -9
- package/front_end/models/bindings/StylesSourceMapping.ts +3 -3
- package/front_end/models/bindings/TempFile.ts +1 -1
- package/front_end/models/emulation/DeviceModeModel.ts +5 -5
- package/front_end/models/emulation/EmulatedDevices.ts +1 -1
- package/front_end/models/extensions/ExtensionPanel.ts +1 -1
- package/front_end/models/extensions/ExtensionServer.ts +8 -8
- package/front_end/models/formatter/FormatterWorkerPool.ts +2 -12
- package/front_end/models/formatter/ScriptFormatter.ts +3 -3
- package/front_end/models/formatter/SourceFormatter.ts +2 -2
- package/front_end/models/issues_manager/ContrastCheckTrigger.ts +1 -1
- package/front_end/models/issues_manager/DeprecationIssue.ts +7 -7
- package/front_end/models/issues_manager/SourceFrameIssuesManager.ts +3 -3
- package/front_end/models/persistence/Automapping.ts +3 -3
- package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +3 -3
- package/front_end/models/persistence/IsolatedFileSystem.ts +1 -1
- package/front_end/models/persistence/IsolatedFileSystemManager.ts +2 -2
- package/front_end/models/persistence/NetworkPersistenceManager.ts +11 -11
- package/front_end/models/persistence/PersistenceActions.ts +3 -3
- package/front_end/models/persistence/PersistenceImpl.ts +2 -2
- package/front_end/models/persistence/WorkspaceSettingsTab.ts +1 -1
- package/front_end/models/workspace/UISourceCode.ts +2 -2
- package/front_end/models/workspace_diff/WorkspaceDiff.ts +2 -2
- package/front_end/panels/accessibility/AXBreadcrumbsPane.ts +4 -4
- package/front_end/panels/accessibility/AccessibilityNodeView.ts +3 -3
- package/front_end/panels/accessibility/AccessibilitySidebarView.ts +7 -7
- package/front_end/panels/animation/AnimationModel.ts +6 -6
- package/front_end/panels/animation/AnimationTimeline.ts +3 -3
- package/front_end/panels/animation/AnimationUI.ts +3 -3
- package/front_end/panels/application/AppManifestView.ts +4 -4
- package/front_end/panels/application/ApplicationPanelCacheSection.ts +3 -3
- package/front_end/panels/application/ApplicationPanelSidebar.ts +15 -15
- package/front_end/panels/application/BackgroundServiceModel.ts +3 -3
- package/front_end/panels/application/BackgroundServiceView.ts +3 -3
- package/front_end/panels/application/CookieItemsView.ts +5 -5
- package/front_end/panels/application/DOMStorageItemsView.ts +4 -4
- package/front_end/panels/application/DOMStorageModel.ts +4 -4
- package/front_end/panels/application/DatabaseModel.ts +2 -2
- package/front_end/panels/application/DatabaseQueryView.ts +2 -2
- package/front_end/panels/application/DatabaseTableView.ts +1 -1
- package/front_end/panels/application/IndexedDBModel.ts +11 -11
- package/front_end/panels/application/IndexedDBViews.ts +5 -5
- package/front_end/panels/application/OpenedWindowDetailsView.ts +4 -4
- package/front_end/panels/application/ReportingApiView.ts +1 -1
- package/front_end/panels/application/ResourcesPanel.ts +2 -2
- package/front_end/panels/application/ServiceWorkerCacheViews.ts +7 -7
- package/front_end/panels/application/ServiceWorkersView.ts +15 -15
- package/front_end/panels/application/StorageView.ts +5 -5
- package/front_end/panels/application/TrustTokensTreeElement.ts +1 -1
- package/front_end/panels/application/components/BackForwardCacheStrings.ts +5 -1
- package/front_end/panels/application/components/BackForwardCacheView.ts +4 -4
- package/front_end/panels/application/components/FrameDetailsView.ts +3 -3
- package/front_end/panels/application/components/PermissionsPolicySection.ts +2 -2
- package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +1 -1
- package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +8 -7
- package/front_end/panels/browser_debugger/ObjectEventListenersSidebarPane.ts +1 -1
- package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +4 -4
- package/front_end/panels/changes/ChangesView.ts +4 -4
- package/front_end/panels/console/ConsoleContextSelector.ts +1 -1
- package/front_end/panels/console/ConsoleFilter.ts +17 -2
- package/front_end/panels/console/ConsoleFormat.ts +5 -4
- package/front_end/panels/console/ConsolePinPane.ts +4 -4
- package/front_end/panels/console/ConsolePrompt.ts +4 -4
- package/front_end/panels/console/ConsoleView.ts +96 -71
- package/front_end/panels/console/ConsoleViewMessage.ts +61 -19
- package/front_end/panels/console/consoleView.css +36 -0
- package/front_end/panels/console_counters/WarningErrorCounter.ts +2 -2
- package/front_end/panels/coverage/CoverageListView.ts +3 -3
- package/front_end/panels/coverage/CoverageModel.ts +3 -3
- package/front_end/panels/coverage/CoverageView.ts +6 -6
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +3 -3
- package/front_end/panels/css_overview/CSSOverviewModel.ts +2 -2
- package/front_end/panels/css_overview/CSSOverviewPanel.ts +1 -1
- package/front_end/panels/developer_resources/DeveloperResourcesListView.ts +1 -1
- package/front_end/panels/developer_resources/DeveloperResourcesView.ts +1 -1
- package/front_end/panels/elements/AccessibilityTreeView.ts +5 -5
- package/front_end/panels/elements/ClassesPaneWidget.ts +1 -1
- package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +10 -10
- package/front_end/panels/elements/ComputedStyleWidget.ts +2 -2
- package/front_end/panels/elements/DOMLinkifier.ts +2 -2
- package/front_end/panels/elements/ElementsPanel.ts +19 -19
- package/front_end/panels/elements/ElementsSidebarPane.ts +1 -1
- package/front_end/panels/elements/ElementsTreeElement.ts +26 -25
- package/front_end/panels/elements/ElementsTreeElementHighlighter.ts +1 -1
- package/front_end/panels/elements/ElementsTreeOutline.ts +4 -4
- package/front_end/panels/elements/InspectElementModeController.ts +3 -3
- package/front_end/panels/elements/LayoutSidebarPane.ts +2 -2
- package/front_end/panels/elements/MetricsSidebarPane.ts +2 -2
- package/front_end/panels/elements/StylePropertyHighlighter.ts +1 -1
- package/front_end/panels/elements/StylePropertyTreeElement.ts +16 -16
- package/front_end/panels/elements/StylesSidebarPane.ts +15 -15
- package/front_end/panels/elements/components/AccessibilityTreeNode.ts +1 -1
- package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +8 -8
- package/front_end/panels/elements/elementsPanel.css +1 -0
- package/front_end/panels/elements/elementsTreeOutline.css +6 -1
- package/front_end/panels/emulation/AdvancedApp.ts +2 -2
- package/front_end/panels/emulation/DeviceModeToolbar.ts +1 -1
- package/front_end/panels/emulation/DeviceModeView.ts +2 -2
- package/front_end/panels/emulation/DeviceModeWrapper.ts +4 -4
- package/front_end/panels/emulation/MediaQueryInspector.ts +3 -3
- package/front_end/panels/event_listeners/EventListenersView.ts +3 -3
- package/front_end/panels/input/InputModel.ts +2 -2
- package/front_end/panels/input/InputTimeline.ts +6 -6
- package/front_end/panels/issues/AffectedCookiesView.ts +2 -2
- package/front_end/panels/issues/AffectedDirectivesView.ts +1 -1
- package/front_end/panels/issues/AffectedElementsView.ts +1 -1
- package/front_end/panels/issues/AffectedResourcesView.ts +2 -2
- package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +1 -1
- package/front_end/panels/issues/ComboBoxOfCheckBoxes.ts +1 -1
- package/front_end/panels/issues/IssueView.ts +1 -1
- package/front_end/panels/issues/components/HideIssuesMenu.ts +1 -1
- package/front_end/panels/layer_viewer/LayerDetailsView.ts +1 -1
- package/front_end/panels/layer_viewer/LayerViewHost.ts +1 -1
- package/front_end/panels/layer_viewer/Layers3DView.ts +7 -7
- package/front_end/panels/layer_viewer/PaintProfilerView.ts +1 -1
- package/front_end/panels/layers/LayerPaintProfilerView.ts +3 -3
- package/front_end/panels/layers/LayerTreeModel.ts +4 -4
- package/front_end/panels/layers/LayersPanel.ts +4 -4
- package/front_end/panels/lighthouse/LighthouseController.ts +1 -1
- package/front_end/panels/lighthouse/LighthousePanel.ts +5 -5
- package/front_end/panels/lighthouse/LighthouseProtocolService.ts +1 -1
- package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +1 -1
- package/front_end/panels/media/MediaModel.ts +1 -1
- package/front_end/panels/media/PlayerListView.ts +1 -1
- package/front_end/panels/mobile_throttling/NetworkThrottlingSelector.ts +1 -1
- package/front_end/panels/network/BinaryResourceView.ts +1 -1
- package/front_end/panels/network/BlockedURLsPane.ts +5 -5
- package/front_end/panels/network/NetworkDataGridNode.ts +1 -1
- package/front_end/panels/network/NetworkItemView.ts +2 -2
- package/front_end/panels/network/NetworkLogView.ts +4 -4
- package/front_end/panels/network/NetworkLogViewColumns.ts +1 -1
- package/front_end/panels/network/NetworkPanel.ts +8 -8
- package/front_end/panels/network/NetworkTimeCalculator.ts +1 -1
- package/front_end/panels/network/RequestHeadersView.ts +4 -3
- package/front_end/panels/network/RequestPayloadView.ts +8 -8
- package/front_end/panels/network/RequestPreviewView.ts +1 -1
- package/front_end/panels/network/RequestResponseView.ts +2 -2
- package/front_end/panels/network/ResourceWebSocketFrameView.ts +1 -1
- package/front_end/panels/performance_monitor/PerformanceMonitor.ts +2 -2
- package/front_end/panels/profiler/CPUProfileView.ts +4 -4
- package/front_end/panels/profiler/HeapProfileView.ts +6 -6
- package/front_end/panels/profiler/HeapProfilerPanel.ts +2 -2
- package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +10 -10
- package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +9 -8
- package/front_end/panels/profiler/HeapSnapshotView.ts +24 -24
- package/front_end/panels/profiler/LiveHeapProfileView.ts +4 -4
- package/front_end/panels/profiler/ProfileSidebarTreeElement.ts +1 -1
- package/front_end/panels/profiler/ProfileView.ts +3 -3
- package/front_end/panels/profiler/ProfilesPanel.ts +3 -3
- package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +3 -3
- package/front_end/panels/screencast/InputModel.ts +3 -3
- package/front_end/panels/screencast/ScreencastView.ts +10 -10
- package/front_end/panels/search/SearchResultsPane.ts +1 -1
- package/front_end/panels/search/SearchView.ts +2 -2
- package/front_end/panels/security/SecurityModel.ts +1 -1
- package/front_end/panels/security/SecurityPanel.ts +2 -2
- package/front_end/panels/sensors/SensorsView.ts +3 -2
- package/front_end/panels/settings/SettingsScreen.ts +5 -5
- package/front_end/panels/settings/components/SyncSection.ts +1 -1
- package/front_end/panels/snippets/SnippetsQuickOpen.ts +1 -1
- package/front_end/panels/sources/BreakpointEditDialog.ts +2 -2
- package/front_end/panels/sources/CallStackSidebarPane.ts +4 -4
- package/front_end/panels/sources/CoveragePlugin.ts +3 -3
- package/front_end/panels/sources/DebuggerPlugin.ts +12 -12
- package/front_end/panels/sources/GoToLineQuickOpen.ts +1 -1
- package/front_end/panels/sources/InplaceFormatterEditorAction.ts +3 -3
- package/front_end/panels/sources/JavaScriptBreakpointsSidebarPane.ts +3 -3
- package/front_end/panels/sources/NavigatorView.ts +6 -6
- package/front_end/panels/sources/OpenFileQuickOpen.ts +2 -2
- package/front_end/panels/sources/OutlineQuickOpen.ts +1 -1
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +3 -3
- package/front_end/panels/sources/ScriptFormatterEditorAction.ts +3 -3
- package/front_end/panels/sources/SearchSourcesView.ts +2 -2
- package/front_end/panels/sources/SourcesNavigator.ts +9 -9
- package/front_end/panels/sources/SourcesPanel.ts +28 -25
- package/front_end/panels/sources/SourcesSearchScope.ts +2 -2
- package/front_end/panels/sources/SourcesView.ts +4 -4
- package/front_end/panels/sources/TabbedEditorContainer.ts +1 -1
- package/front_end/panels/sources/UISourceCodeFrame.ts +2 -2
- package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +4 -4
- package/front_end/panels/timeline/EventsTimelineTreeView.ts +1 -1
- package/front_end/panels/timeline/TimelineController.ts +1 -1
- package/front_end/panels/timeline/TimelineDetailsView.ts +2 -2
- package/front_end/panels/timeline/TimelineEventOverview.ts +2 -2
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +22 -5
- package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +9 -6
- package/front_end/panels/timeline/TimelineHistoryManager.ts +1 -1
- package/front_end/panels/timeline/TimelineLayersView.ts +1 -1
- package/front_end/panels/timeline/TimelineLoader.ts +2 -2
- package/front_end/panels/timeline/TimelinePaintProfilerView.ts +4 -4
- package/front_end/panels/timeline/TimelinePanel.ts +10 -10
- package/front_end/panels/timeline/TimelineUIUtils.ts +2 -2
- package/front_end/panels/timeline/components/WebVitalsTimeline.ts +2 -2
- package/front_end/panels/web_audio/WebAudioModel.ts +1 -1
- package/front_end/panels/web_audio/WebAudioView.ts +1 -1
- package/front_end/panels/webauthn/WebauthnPane.ts +7 -7
- package/front_end/ui/components/buttons/Button.ts +10 -10
- package/front_end/ui/components/data_grid/DataGrid.ts +14 -14
- package/front_end/ui/components/docs/tree_outline/basic.ts +2 -2
- package/front_end/ui/components/docs/tree_outline/custom-renderers.ts +1 -1
- package/front_end/ui/components/docs/tree_outline/lazy-children.ts +1 -1
- package/front_end/ui/components/helpers/scheduled-render.ts +1 -1
- package/front_end/ui/components/icon_button/Icon.ts +1 -1
- package/front_end/ui/components/issue_counter/IssueCounter.ts +1 -1
- package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +2 -2
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorController.ts +2 -2
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorPane.ts +5 -2
- package/front_end/ui/components/linkifier/LinkifierImpl.ts +1 -1
- package/front_end/ui/components/panel_feedback/FeedbackButton.ts +1 -1
- package/front_end/ui/components/panel_feedback/PanelFeedback.ts +1 -1
- package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +3 -3
- package/front_end/ui/components/text_editor/cursor_tooltip.ts +1 -1
- package/front_end/ui/components/text_editor/javascript.ts +2 -2
- package/front_end/ui/components/tree_outline/TreeOutline.ts +8 -8
- package/front_end/ui/legacy/Context.ts +1 -1
- package/front_end/ui/legacy/ContextMenu.ts +1 -1
- package/front_end/ui/legacy/GlassPane.ts +0 -1
- package/front_end/ui/legacy/InspectorView.ts +2 -3
- package/front_end/ui/legacy/PopoverHelper.ts +1 -1
- package/front_end/ui/legacy/ShortcutRegistry.ts +1 -1
- package/front_end/ui/legacy/TabbedPane.ts +2 -2
- package/front_end/ui/legacy/ThrottledWidget.ts +1 -1
- package/front_end/ui/legacy/Toolbar.ts +3 -3
- package/front_end/ui/legacy/Treeoutline.ts +6 -6
- package/front_end/ui/legacy/UIUtils.ts +17 -24
- package/front_end/ui/legacy/ViewManager.ts +9 -9
- package/front_end/ui/legacy/components/color_picker/ContrastOverlay.ts +1 -1
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +7 -7
- package/front_end/ui/legacy/components/color_picker/spectrum.css +5 -2
- package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +3 -3
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +2 -2
- package/front_end/ui/legacy/components/data_grid/ShowMoreDataGridNode.ts +3 -3
- package/front_end/ui/legacy/components/inline_editor/CSSAngleEditor.ts +1 -1
- package/front_end/ui/legacy/components/inline_editor/FontEditor.ts +4 -4
- package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +3 -3
- package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +1 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +11 -11
- package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +8 -8
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +13 -18
- package/front_end/ui/legacy/components/perf_ui/GCActionDelegate.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/LineLevelProfile.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/LiveHeapProfile.ts +3 -3
- package/front_end/ui/legacy/components/perf_ui/TimelineGrid.ts +2 -4
- package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +2 -2
- package/front_end/ui/legacy/components/perf_ui/flameChart.css +8 -0
- package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +5 -5
- package/front_end/ui/legacy/components/source_frame/FontView.ts +1 -2
- package/front_end/ui/legacy/components/source_frame/ImageView.ts +3 -4
- package/front_end/ui/legacy/components/source_frame/JSONView.ts +0 -1
- package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +1 -2
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +5 -5
- package/front_end/ui/legacy/components/source_frame/XMLView.ts +0 -2
- package/front_end/ui/legacy/components/utils/ImagePreview.ts +1 -1
- package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +1 -1
- package/front_end/ui/legacy/components/utils/Linkifier.ts +5 -5
- package/front_end/ui/legacy/components/utils/TargetDetachedDialog.ts +2 -2
- package/front_end/ui/legacy/inspectorSyntaxHighlight.css +8 -11
- package/front_end/ui/legacy/tabbedPane.css +1 -0
- package/front_end/ui/legacy/themeColors.css +3 -1
- package/front_end/ui/legacy/theme_support/theme_support_impl.ts +23 -229
- package/front_end/ui/legacy/toolbar.css +1 -0
- package/package.json +1 -1
- package/scripts/component_server/server.js +2 -2
- package/scripts/eslint_rules/lib/no_bound_component_methods.js +116 -0
- package/scripts/eslint_rules/tests/check_license_header_test.js +10 -8
- package/scripts/eslint_rules/tests/no_bound_component_methods_test.js +85 -0
- package/front_end/global_typings/intl_display_names.d.ts +0 -111
- package/front_end/ui/legacy/inspectorSyntaxHighlightDark.css +0 -270
|
@@ -267,14 +267,14 @@ export class Spectrum extends Common.ObjectWrapper.eventMixin<EventTypes, typeof
|
|
|
267
267
|
UI.ARIAUtils.markAsButton(displaySwitcher);
|
|
268
268
|
|
|
269
269
|
UI.UIUtils.installDragHandle(
|
|
270
|
-
this.hueElement, this.dragStart.bind(this, positionHue.bind(this)), positionHue.bind(this), null, '
|
|
271
|
-
'
|
|
270
|
+
this.hueElement, this.dragStart.bind(this, positionHue.bind(this)), positionHue.bind(this), null, 'ew-resize',
|
|
271
|
+
'crosshair');
|
|
272
272
|
UI.UIUtils.installDragHandle(
|
|
273
273
|
this.alphaElement, this.dragStart.bind(this, positionAlpha.bind(this)), positionAlpha.bind(this), null,
|
|
274
|
-
'
|
|
274
|
+
'ew-resize', 'crosshair');
|
|
275
275
|
UI.UIUtils.installDragHandle(
|
|
276
|
-
this.colorElement, this.dragStart.bind(this, positionColor.bind(this)), positionColor.bind(this), null,
|
|
277
|
-
'
|
|
276
|
+
this.colorElement, this.dragStart.bind(this, positionColor.bind(this)), positionColor.bind(this), null, 'move',
|
|
277
|
+
'crosshair');
|
|
278
278
|
|
|
279
279
|
// Color contrast business.
|
|
280
280
|
if (contrastInfo) {
|
|
@@ -894,7 +894,7 @@ export class Spectrum extends Common.ObjectWrapper.eventMixin<EventTypes, typeof
|
|
|
894
894
|
}
|
|
895
895
|
contextMenu.defaultSection().appendItem(
|
|
896
896
|
i18nString(UIStrings.clearPalette), this.deletePaletteColors.bind(this, -1, true));
|
|
897
|
-
contextMenu.show();
|
|
897
|
+
void contextMenu.show();
|
|
898
898
|
}
|
|
899
899
|
|
|
900
900
|
private deletePaletteColors(colorIndex: number, toRight: boolean): void {
|
|
@@ -1231,7 +1231,7 @@ export class PaletteGenerator {
|
|
|
1231
1231
|
stylesheetPromises.push(this.processStylesheet(stylesheet));
|
|
1232
1232
|
}
|
|
1233
1233
|
}
|
|
1234
|
-
Promise.all(stylesheetPromises)
|
|
1234
|
+
void Promise.all(stylesheetPromises)
|
|
1235
1235
|
.catch(error => {
|
|
1236
1236
|
console.error(error);
|
|
1237
1237
|
})
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
border-radius: 2px 2px 0 0;
|
|
26
26
|
overflow: hidden;
|
|
27
27
|
flex: none;
|
|
28
|
+
touch-action: none;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
.spectrum-dragger,
|
|
@@ -37,7 +38,8 @@
|
|
|
37
38
|
height: 12px;
|
|
38
39
|
width: 12px;
|
|
39
40
|
border: 1px solid var(--color-background);
|
|
40
|
-
cursor:
|
|
41
|
+
cursor: move;
|
|
42
|
+
z-index: 1;
|
|
41
43
|
position: absolute;
|
|
42
44
|
top: 0;
|
|
43
45
|
left: 0;
|
|
@@ -48,7 +50,7 @@
|
|
|
48
50
|
.spectrum-slider {
|
|
49
51
|
position: absolute;
|
|
50
52
|
top: -1px;
|
|
51
|
-
cursor:
|
|
53
|
+
cursor: ew-resize;
|
|
52
54
|
width: 13px;
|
|
53
55
|
height: 13px;
|
|
54
56
|
border-radius: 13px;
|
|
@@ -90,6 +92,7 @@
|
|
|
90
92
|
width: 130px;
|
|
91
93
|
height: 11px;
|
|
92
94
|
border-radius: 2px;
|
|
95
|
+
touch-action: none;
|
|
93
96
|
}
|
|
94
97
|
|
|
95
98
|
.spectrum-hue:focus-visible .spectrum-slider,
|
|
@@ -639,7 +639,7 @@ export class CookiesTable extends UI.Widget.VBox {
|
|
|
639
639
|
if (!this.saveCallback) {
|
|
640
640
|
return;
|
|
641
641
|
}
|
|
642
|
-
this.saveCallback(newCookie, oldCookie).then(success => {
|
|
642
|
+
void this.saveCallback(newCookie, oldCookie).then(success => {
|
|
643
643
|
if (success) {
|
|
644
644
|
this.refresh();
|
|
645
645
|
} else {
|
|
@@ -731,12 +731,12 @@ export class CookiesTable extends UI.Widget.VBox {
|
|
|
731
731
|
filterValue: cookie.name(),
|
|
732
732
|
},
|
|
733
733
|
]);
|
|
734
|
-
Common.Revealer.reveal(requestFilter);
|
|
734
|
+
void Common.Revealer.reveal(requestFilter);
|
|
735
735
|
});
|
|
736
736
|
if (IssuesManager.RelatedIssue.hasIssues(cookie)) {
|
|
737
737
|
contextMenu.revealSection().appendItem(i18nString(UIStrings.showIssueAssociatedWithThis), () => {
|
|
738
738
|
// TODO(chromium:1077719): Just filter for the cookie instead of revealing one of the associated issues.
|
|
739
|
-
IssuesManager.RelatedIssue.reveal(cookie);
|
|
739
|
+
void IssuesManager.RelatedIssue.reveal(cookie);
|
|
740
740
|
});
|
|
741
741
|
}
|
|
742
742
|
}
|
|
@@ -1307,7 +1307,7 @@ export class DataGridImpl<T> extends Common.ObjectWrapper.ObjectWrapper<EventTyp
|
|
|
1307
1307
|
this.headerContextMenuCallback(contextMenu);
|
|
1308
1308
|
}
|
|
1309
1309
|
contextMenu.defaultSection().appendItem(i18nString(UIStrings.resetColumns), this.resetColumnWeights.bind(this));
|
|
1310
|
-
contextMenu.show();
|
|
1310
|
+
void contextMenu.show();
|
|
1311
1311
|
return;
|
|
1312
1312
|
}
|
|
1313
1313
|
|
|
@@ -1368,7 +1368,7 @@ export class DataGridImpl<T> extends Common.ObjectWrapper.ObjectWrapper<EventTyp
|
|
|
1368
1368
|
}
|
|
1369
1369
|
}
|
|
1370
1370
|
|
|
1371
|
-
contextMenu.show();
|
|
1371
|
+
void contextMenu.show();
|
|
1372
1372
|
}
|
|
1373
1373
|
|
|
1374
1374
|
private clickInDataTable(event: Event): void {
|
|
@@ -97,15 +97,15 @@ export class ShowMoreDataGridNode extends DataGridNode<ShowMoreDataGridNode> {
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
private showNextChunk(): void {
|
|
100
|
-
this.callback(this.startPosition, this.startPosition + this.chunkSize);
|
|
100
|
+
void this.callback(this.startPosition, this.startPosition + this.chunkSize);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
private showAllInternal(): void {
|
|
104
|
-
this.callback(this.startPosition, this.endPosition);
|
|
104
|
+
void this.callback(this.startPosition, this.endPosition);
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
private showLastChunk(): void {
|
|
108
|
-
this.callback(this.endPosition - this.chunkSize, this.endPosition);
|
|
108
|
+
void this.callback(this.endPosition - this.chunkSize, this.endPosition);
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
private updateLabels(): void {
|
|
@@ -92,7 +92,7 @@ export class CSSAngleEditor extends HTMLElement {
|
|
|
92
92
|
|
|
93
93
|
event.preventDefault();
|
|
94
94
|
|
|
95
|
-
this.mousemoveThrottler.schedule(() => {
|
|
95
|
+
void this.mousemoveThrottler.schedule(() => {
|
|
96
96
|
this.updateAngleFromMousePosition(event.pageX, event.pageY, event.shiftKey);
|
|
97
97
|
return Promise.resolve();
|
|
98
98
|
});
|
|
@@ -140,7 +140,7 @@ export class FontEditor extends Common.ObjectWrapper.eventMixin<EventTypes, type
|
|
|
140
140
|
|
|
141
141
|
const propertyValue: string|undefined = this.propertyMap.get('font-family');
|
|
142
142
|
|
|
143
|
-
this.createFontSelectorSection(propertyValue);
|
|
143
|
+
void this.createFontSelectorSection(propertyValue);
|
|
144
144
|
|
|
145
145
|
// CSS Font Property Section
|
|
146
146
|
const cssPropertySection = this.contentElement.createChild('div', 'font-section');
|
|
@@ -187,11 +187,11 @@ export class FontEditor extends Common.ObjectWrapper.eventMixin<EventTypes, type
|
|
|
187
187
|
if (!FontEditorUtils.GlobalValues.includes(splitValue[0])) {
|
|
188
188
|
// We add one to the splitValue length so that we have an additional empty fallback selector
|
|
189
189
|
for (let i = 1; i < splitValue.length + 1; i++) {
|
|
190
|
-
this.createFontSelector(splitValue[i]);
|
|
190
|
+
void this.createFontSelector(splitValue[i]);
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
} else {
|
|
194
|
-
this.createFontSelector('', true);
|
|
194
|
+
void this.createFontSelector('', true);
|
|
195
195
|
}
|
|
196
196
|
this.resizePopout();
|
|
197
197
|
}
|
|
@@ -383,7 +383,7 @@ export class FontEditor extends Common.ObjectWrapper.eventMixin<EventTypes, type
|
|
|
383
383
|
// selector's value is not a global value and if the list of selectors has not exceeded 10.
|
|
384
384
|
if (this.fontSelectors[this.fontSelectors.length - 1].input.value !== '' && !isGlobalValue &&
|
|
385
385
|
this.fontSelectors.length < 10) {
|
|
386
|
-
this.createFontSelector(/** value= */ '');
|
|
386
|
+
void this.createFontSelector(/** value= */ '');
|
|
387
387
|
this.resizePopout();
|
|
388
388
|
}
|
|
389
389
|
this.updatePropertyValue('font-family', value);
|
|
@@ -133,7 +133,7 @@ export class CustomPreviewSection {
|
|
|
133
133
|
if (this.cachedContent) {
|
|
134
134
|
this.toggleExpand();
|
|
135
135
|
} else {
|
|
136
|
-
this.loadBody();
|
|
136
|
+
void this.loadBody();
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
|
|
@@ -199,7 +199,7 @@ export class CustomPreviewComponent {
|
|
|
199
199
|
expandIfPossible(): void {
|
|
200
200
|
const customPreview = this.object.customPreview();
|
|
201
201
|
if (customPreview && customPreview.bodyGetterId && this.customPreviewSection) {
|
|
202
|
-
this.customPreviewSection.loadBody();
|
|
202
|
+
void this.customPreviewSection.loadBody();
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
|
|
@@ -209,7 +209,7 @@ export class CustomPreviewComponent {
|
|
|
209
209
|
contextMenu.revealSection().appendItem(i18nString(UIStrings.showAsJavascriptObject), this.disassemble.bind(this));
|
|
210
210
|
}
|
|
211
211
|
contextMenu.appendApplicableItems(this.object);
|
|
212
|
-
contextMenu.show();
|
|
212
|
+
void contextMenu.show();
|
|
213
213
|
}
|
|
214
214
|
|
|
215
215
|
private disassemble(): void {
|
|
@@ -107,7 +107,7 @@ export class ObjectPopoverHelper {
|
|
|
107
107
|
return new ObjectPopoverHelper(null, false);
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
ObjectPropertiesSection.formatObjectAsFunction(result, valueElement, true);
|
|
110
|
+
void ObjectPropertiesSection.formatObjectAsFunction(result, valueElement, true);
|
|
111
111
|
const response = await result.debuggerModel().functionDetailsPromise(result);
|
|
112
112
|
if (!response) {
|
|
113
113
|
return null;
|
|
@@ -370,7 +370,7 @@ export class ObjectPropertiesSection extends UI.TreeOutline.TreeOutlineInShadow
|
|
|
370
370
|
};
|
|
371
371
|
memoryIcon.onclick = (event: MouseEvent): void => {
|
|
372
372
|
Host.userMetrics.linearMemoryInspectorRevealedFrom(Host.UserMetrics.LinearMemoryInspectorRevealedFrom.MemoryIcon);
|
|
373
|
-
LinearMemoryInspector.LinearMemoryInspectorController.LinearMemoryInspectorController.instance()
|
|
373
|
+
void LinearMemoryInspector.LinearMemoryInspectorController.LinearMemoryInspectorController.instance()
|
|
374
374
|
.openInspectorView(obj);
|
|
375
375
|
event.stopPropagation();
|
|
376
376
|
};
|
|
@@ -476,7 +476,7 @@ export class ObjectPropertiesSection extends UI.TreeOutline.TreeOutlineInShadow
|
|
|
476
476
|
valueElement.classList.add('object-value-node');
|
|
477
477
|
createSpansForNodeTitle(valueElement, (description as string));
|
|
478
478
|
valueElement.addEventListener('click', event => {
|
|
479
|
-
Common.Revealer.reveal(value);
|
|
479
|
+
void Common.Revealer.reveal(value);
|
|
480
480
|
event.consume(true);
|
|
481
481
|
}, false);
|
|
482
482
|
valueElement.addEventListener(
|
|
@@ -495,7 +495,7 @@ export class ObjectPropertiesSection extends UI.TreeOutline.TreeOutlineInShadow
|
|
|
495
495
|
if (linkify && response && response.location) {
|
|
496
496
|
element.classList.add('linkified');
|
|
497
497
|
element.addEventListener('click', () => {
|
|
498
|
-
Common.Revealer.reveal(response.location);
|
|
498
|
+
void Common.Revealer.reveal(response.location);
|
|
499
499
|
return false;
|
|
500
500
|
});
|
|
501
501
|
}
|
|
@@ -553,7 +553,7 @@ export class ObjectPropertiesSection extends UI.TreeOutline.TreeOutlineInShadow
|
|
|
553
553
|
i18nString(UIStrings.collapseChildren),
|
|
554
554
|
this.objectTreeElementInternal.collapseChildren.bind(this.objectTreeElementInternal));
|
|
555
555
|
}
|
|
556
|
-
contextMenu.show();
|
|
556
|
+
void contextMenu.show();
|
|
557
557
|
}
|
|
558
558
|
|
|
559
559
|
titleLessMode(): void {
|
|
@@ -655,7 +655,7 @@ export class RootElement extends UI.TreeOutline.TreeElement {
|
|
|
655
655
|
contextMenu.viewSection().appendItem(
|
|
656
656
|
i18nString(UIStrings.expandRecursively), this.expandRecursively.bind(this, Number.MAX_VALUE));
|
|
657
657
|
contextMenu.viewSection().appendItem(i18nString(UIStrings.collapseChildren), this.collapseChildren.bind(this));
|
|
658
|
-
contextMenu.show();
|
|
658
|
+
void contextMenu.show();
|
|
659
659
|
}
|
|
660
660
|
|
|
661
661
|
async onpopulate(): Promise<void> {
|
|
@@ -706,7 +706,7 @@ export class ObjectPropertyTreeElement extends UI.TreeOutline.TreeElement {
|
|
|
706
706
|
targetValue?: SDK.RemoteObject.RemoteObject): Promise<void> {
|
|
707
707
|
if (value.arrayLength() > ARRAY_LOAD_THRESHOLD) {
|
|
708
708
|
treeElement.removeChildren();
|
|
709
|
-
ArrayGroupingTreeElement.populateArray(treeElement, value, 0, value.arrayLength() - 1, linkifier);
|
|
709
|
+
void ArrayGroupingTreeElement.populateArray(treeElement, value, 0, value.arrayLength() - 1, linkifier);
|
|
710
710
|
return;
|
|
711
711
|
}
|
|
712
712
|
|
|
@@ -838,7 +838,7 @@ export class ObjectPropertyTreeElement extends UI.TreeOutline.TreeElement {
|
|
|
838
838
|
// The definition of callFunction expects an unknown, and setting to `any` causes Closure to fail.
|
|
839
839
|
// However, leaving this as unknown also causes TypeScript to fail, so for now we leave this as unchecked.
|
|
840
840
|
// @ts-ignore TODO(crbug.com/1011811): Fix after Closure is removed.
|
|
841
|
-
object.callFunction(invokeGetter, [{value: JSON.stringify(propertyPath)}]).then(callback);
|
|
841
|
+
void object.callFunction(invokeGetter, [{value: JSON.stringify(propertyPath)}]).then(callback);
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
844
|
|
|
@@ -1105,7 +1105,7 @@ export class ObjectPropertyTreeElement extends UI.TreeOutline.TreeElement {
|
|
|
1105
1105
|
if (this.propertyValue) {
|
|
1106
1106
|
this.propertyValue.appendApplicableItems(event, contextMenu, {});
|
|
1107
1107
|
}
|
|
1108
|
-
contextMenu.show();
|
|
1108
|
+
void contextMenu.show();
|
|
1109
1109
|
}
|
|
1110
1110
|
|
|
1111
1111
|
private startEditing(): void {
|
|
@@ -1177,7 +1177,7 @@ export class ObjectPropertyTreeElement extends UI.TreeOutline.TreeElement {
|
|
|
1177
1177
|
const keyboardEvent = (event as KeyboardEvent);
|
|
1178
1178
|
if (keyboardEvent.key === 'Enter') {
|
|
1179
1179
|
keyboardEvent.consume();
|
|
1180
|
-
this.editingCommitted(originalContent);
|
|
1180
|
+
void this.editingCommitted(originalContent);
|
|
1181
1181
|
return;
|
|
1182
1182
|
}
|
|
1183
1183
|
if (keyboardEvent.key === Platform.KeyboardUtilities.ESCAPE_KEY) {
|
|
@@ -1200,7 +1200,7 @@ export class ObjectPropertyTreeElement extends UI.TreeOutline.TreeElement {
|
|
|
1200
1200
|
const parent = this.parent;
|
|
1201
1201
|
if (parent) {
|
|
1202
1202
|
parent.invalidateChildren();
|
|
1203
|
-
parent.onpopulate();
|
|
1203
|
+
void parent.onpopulate();
|
|
1204
1204
|
}
|
|
1205
1205
|
} else {
|
|
1206
1206
|
this.update();
|
|
@@ -1225,7 +1225,7 @@ export class ObjectPropertyTreeElement extends UI.TreeOutline.TreeElement {
|
|
|
1225
1225
|
const parent = this.parent;
|
|
1226
1226
|
if (parent) {
|
|
1227
1227
|
parent.invalidateChildren();
|
|
1228
|
-
parent.onpopulate();
|
|
1228
|
+
void parent.onpopulate();
|
|
1229
1229
|
}
|
|
1230
1230
|
}
|
|
1231
1231
|
}
|
|
@@ -127,13 +127,13 @@ export class FilmStripView extends Common.ObjectWrapper.eventMixin<EventTypes, t
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
if (this.mode === Modes.FrameBased) {
|
|
130
|
-
Promise.all(frames.map(this.createFrameElement.bind(this))).then(appendElements.bind(this));
|
|
130
|
+
void Promise.all(frames.map(this.createFrameElement.bind(this))).then(appendElements.bind(this));
|
|
131
131
|
return;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
const width = this.contentElement.clientWidth;
|
|
135
135
|
const scale = this.spanTime / width;
|
|
136
|
-
this.createFrameElement(frames[0]).then(
|
|
136
|
+
void this.createFrameElement(frames[0]).then(
|
|
137
137
|
continueWhenFrameImageLoaded.bind(this)); // Calculate frame width basing on the first frame.
|
|
138
138
|
|
|
139
139
|
function continueWhenFrameImageLoaded(this: FilmStripView, element0: Element): void {
|
|
@@ -147,7 +147,7 @@ export class FilmStripView extends Common.ObjectWrapper.eventMixin<EventTypes, t
|
|
|
147
147
|
const time = pos * scale + this.zeroTime;
|
|
148
148
|
promises.push(this.createFrameElement(this.frameByTime(time)).then(fixWidth));
|
|
149
149
|
}
|
|
150
|
-
Promise.all(promises).then(appendElements.bind(this));
|
|
150
|
+
void Promise.all(promises).then(appendElements.bind(this));
|
|
151
151
|
function fixWidth(element: Element): Element {
|
|
152
152
|
(element as HTMLElement).style.width = frameWidth + 'px';
|
|
153
153
|
return element;
|
|
@@ -244,7 +244,7 @@ export class Dialog {
|
|
|
244
244
|
this.index = filmStripFrame.index;
|
|
245
245
|
this.zeroTime = zeroTime || filmStripFrame.model().zeroTime();
|
|
246
246
|
this.dialog = null;
|
|
247
|
-
this.render();
|
|
247
|
+
void this.render();
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
private resize(): void {
|
|
@@ -294,24 +294,24 @@ export class Dialog {
|
|
|
294
294
|
if (this.index > 0) {
|
|
295
295
|
--this.index;
|
|
296
296
|
}
|
|
297
|
-
this.render();
|
|
297
|
+
void this.render();
|
|
298
298
|
}
|
|
299
299
|
|
|
300
300
|
private onNextFrame(): void {
|
|
301
301
|
if (this.index < this.frames.length - 1) {
|
|
302
302
|
++this.index;
|
|
303
303
|
}
|
|
304
|
-
this.render();
|
|
304
|
+
void this.render();
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
private onFirstFrame(): void {
|
|
308
308
|
this.index = 0;
|
|
309
|
-
this.render();
|
|
309
|
+
void this.render();
|
|
310
310
|
}
|
|
311
311
|
|
|
312
312
|
private onLastFrame(): void {
|
|
313
313
|
this.index = this.frames.length - 1;
|
|
314
|
-
this.render();
|
|
314
|
+
void this.render();
|
|
315
315
|
}
|
|
316
316
|
|
|
317
317
|
private render(): Promise<void> {
|
|
@@ -126,8 +126,6 @@ export class FlameChart extends Common.ObjectWrapper.eventMixin<EventTypes, type
|
|
|
126
126
|
private lastMouseOffsetX: number;
|
|
127
127
|
private selectedGroup: number;
|
|
128
128
|
private keyboardFocusedGroup: number;
|
|
129
|
-
private selectedGroupBackroundColor: string;
|
|
130
|
-
private selectedGroupBorderColor: string;
|
|
131
129
|
private offsetWidth!: number;
|
|
132
130
|
private offsetHeight!: number;
|
|
133
131
|
private dragStartX!: number;
|
|
@@ -230,10 +228,9 @@ export class FlameChart extends Common.ObjectWrapper.eventMixin<EventTypes, type
|
|
|
230
228
|
// Keyboard focused group is used to navigate groups irrespective of whether they are selectable or not
|
|
231
229
|
this.keyboardFocusedGroup = -1;
|
|
232
230
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
Colors.SelectedGroupBorder, ThemeSupport.ThemeSupport.ColorUsage.Background);
|
|
231
|
+
ThemeSupport.ThemeSupport.instance().addEventListener(ThemeSupport.ThemeChangeEvent.eventName, () => {
|
|
232
|
+
this.scheduleUpdate();
|
|
233
|
+
});
|
|
237
234
|
}
|
|
238
235
|
|
|
239
236
|
willHide(): void {
|
|
@@ -1140,7 +1137,8 @@ export class FlameChart extends Common.ObjectWrapper.eventMixin<EventTypes, type
|
|
|
1140
1137
|
context.save();
|
|
1141
1138
|
this.forEachGroupInViewport((offset, index, group, isFirst, groupHeight) => {
|
|
1142
1139
|
if (this.isGroupFocused(index)) {
|
|
1143
|
-
context.fillStyle =
|
|
1140
|
+
context.fillStyle =
|
|
1141
|
+
ThemeSupport.ThemeSupport.instance().getComputedValue('--selected-group-background', this.contentElement);
|
|
1144
1142
|
context.fillRect(0, offset, width, groupHeight - group.style.padding);
|
|
1145
1143
|
}
|
|
1146
1144
|
});
|
|
@@ -1563,7 +1561,6 @@ export class FlameChart extends Common.ObjectWrapper.eventMixin<EventTypes, type
|
|
|
1563
1561
|
return;
|
|
1564
1562
|
}
|
|
1565
1563
|
const lastGroupOffset = groupOffsets[groupOffsets.length - 1];
|
|
1566
|
-
const colorUsage = ThemeSupport.ThemeSupport.ColorUsage;
|
|
1567
1564
|
|
|
1568
1565
|
context.save();
|
|
1569
1566
|
context.scale(ratio, ratio);
|
|
@@ -1571,7 +1568,7 @@ export class FlameChart extends Common.ObjectWrapper.eventMixin<EventTypes, type
|
|
|
1571
1568
|
const defaultFont = '11px ' + Host.Platform.fontFamily();
|
|
1572
1569
|
context.font = defaultFont;
|
|
1573
1570
|
|
|
1574
|
-
context.fillStyle = ThemeSupport.ThemeSupport.instance().
|
|
1571
|
+
context.fillStyle = ThemeSupport.ThemeSupport.instance().getComputedValue('--color-background');
|
|
1575
1572
|
this.forEachGroupInViewport((offset, index, group) => {
|
|
1576
1573
|
const paddingHeight = group.style.padding;
|
|
1577
1574
|
if (paddingHeight < 5) {
|
|
@@ -1583,7 +1580,7 @@ export class FlameChart extends Common.ObjectWrapper.eventMixin<EventTypes, type
|
|
|
1583
1580
|
context.fillRect(0, lastGroupOffset + 2, width, top + height - lastGroupOffset);
|
|
1584
1581
|
}
|
|
1585
1582
|
|
|
1586
|
-
context.strokeStyle = ThemeSupport.ThemeSupport.instance().
|
|
1583
|
+
context.strokeStyle = ThemeSupport.ThemeSupport.instance().getComputedValue('--color-background-elevation-1');
|
|
1587
1584
|
context.beginPath();
|
|
1588
1585
|
this.forEachGroupInViewport((offset, index, group, isFirst) => {
|
|
1589
1586
|
if (isFirst || group.style.padding < 4) {
|
|
@@ -1622,7 +1619,8 @@ export class FlameChart extends Common.ObjectWrapper.eventMixin<EventTypes, type
|
|
|
1622
1619
|
if (this.isGroupCollapsible(index) && !group.expanded || group.style.shareHeaderLine) {
|
|
1623
1620
|
const width = this.labelWidthForGroup(context, group) + 2;
|
|
1624
1621
|
if (this.isGroupFocused(index)) {
|
|
1625
|
-
context.fillStyle =
|
|
1622
|
+
context.fillStyle =
|
|
1623
|
+
ThemeSupport.ThemeSupport.instance().getComputedValue('--selected-group-background', this.contentElement);
|
|
1626
1624
|
} else {
|
|
1627
1625
|
const parsedColor = Common.Color.Color.parse(group.style.backgroundColor);
|
|
1628
1626
|
if (parsedColor) {
|
|
@@ -1641,7 +1639,7 @@ export class FlameChart extends Common.ObjectWrapper.eventMixin<EventTypes, type
|
|
|
1641
1639
|
});
|
|
1642
1640
|
context.restore();
|
|
1643
1641
|
|
|
1644
|
-
context.fillStyle = ThemeSupport.ThemeSupport.instance().
|
|
1642
|
+
context.fillStyle = ThemeSupport.ThemeSupport.instance().getComputedValue('--color-text-secondary');
|
|
1645
1643
|
context.beginPath();
|
|
1646
1644
|
this.forEachGroupInViewport((offset, index, group) => {
|
|
1647
1645
|
if (this.isGroupCollapsible(index)) {
|
|
@@ -1652,7 +1650,7 @@ export class FlameChart extends Common.ObjectWrapper.eventMixin<EventTypes, type
|
|
|
1652
1650
|
});
|
|
1653
1651
|
context.fill();
|
|
1654
1652
|
|
|
1655
|
-
context.strokeStyle = ThemeSupport.ThemeSupport.instance().
|
|
1653
|
+
context.strokeStyle = ThemeSupport.ThemeSupport.instance().getComputedValue('--color-details-hairline-light');
|
|
1656
1654
|
context.beginPath();
|
|
1657
1655
|
context.stroke();
|
|
1658
1656
|
|
|
@@ -1660,7 +1658,8 @@ export class FlameChart extends Common.ObjectWrapper.eventMixin<EventTypes, type
|
|
|
1660
1658
|
if (this.isGroupFocused(index)) {
|
|
1661
1659
|
const lineWidth = 2;
|
|
1662
1660
|
const bracketLength = 10;
|
|
1663
|
-
context.fillStyle =
|
|
1661
|
+
context.fillStyle =
|
|
1662
|
+
ThemeSupport.ThemeSupport.instance().getComputedValue('--selected-group-border', this.contentElement);
|
|
1664
1663
|
context.fillRect(0, offset - lineWidth, lineWidth, groupHeight - group.style.padding + 2 * lineWidth);
|
|
1665
1664
|
context.fillRect(0, offset - lineWidth, bracketLength, lineWidth);
|
|
1666
1665
|
context.fillRect(0, offset + groupHeight - group.style.padding, bracketLength, lineWidth);
|
|
@@ -2326,10 +2325,6 @@ export type EventTypes = {
|
|
|
2326
2325
|
[Events.EntryHighlighted]: number,
|
|
2327
2326
|
};
|
|
2328
2327
|
|
|
2329
|
-
export const Colors = {
|
|
2330
|
-
SelectedGroupBackground: 'hsl(215, 85%, 98%)',
|
|
2331
|
-
SelectedGroupBorder: 'hsl(216, 68%, 54%)',
|
|
2332
|
-
};
|
|
2333
2328
|
export interface Group {
|
|
2334
2329
|
name: Common.UIString.LocalizedString;
|
|
2335
2330
|
startLevel: number;
|
|
@@ -22,7 +22,7 @@ export class GCActionDelegate implements UI.ActionRegistration.ActionDelegate {
|
|
|
22
22
|
handleAction(_context: UI.Context.Context, _actionId: string): boolean {
|
|
23
23
|
for (const heapProfilerModel of SDK.TargetManager.TargetManager.instance().models(
|
|
24
24
|
SDK.HeapProfilerModel.HeapProfilerModel)) {
|
|
25
|
-
heapProfilerModel.collectGarbage();
|
|
25
|
+
void heapProfilerModel.collectGarbage();
|
|
26
26
|
}
|
|
27
27
|
return true;
|
|
28
28
|
}
|
|
@@ -23,7 +23,7 @@ export class LiveHeapProfile implements Common.Runnable.Runnable,
|
|
|
23
23
|
this.setting = Common.Settings.Settings.instance().moduleSetting('memoryLiveHeapProfile');
|
|
24
24
|
this.setting.addChangeListener(event => event.data ? this.startProfiling() : this.stopProfiling());
|
|
25
25
|
if (this.setting.get()) {
|
|
26
|
-
this.startProfiling();
|
|
26
|
+
void this.startProfiling();
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -41,7 +41,7 @@ export class LiveHeapProfile implements Common.Runnable.Runnable,
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
modelAdded(model: SDK.HeapProfilerModel.HeapProfilerModel): void {
|
|
44
|
-
model.startSampling(1e4);
|
|
44
|
+
void model.startSampling(1e4);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
modelRemoved(_model: SDK.HeapProfilerModel.HeapProfilerModel): void {
|
|
@@ -85,7 +85,7 @@ export class LiveHeapProfile implements Common.Runnable.Runnable,
|
|
|
85
85
|
SDK.TargetManager.TargetManager.instance().removeModelListener(
|
|
86
86
|
SDK.ResourceTreeModel.ResourceTreeModel, SDK.ResourceTreeModel.Events.Load, this.loadEventFired, this);
|
|
87
87
|
for (const model of SDK.TargetManager.TargetManager.instance().models(SDK.HeapProfilerModel.HeapProfilerModel)) {
|
|
88
|
-
model.stopSampling();
|
|
88
|
+
void model.stopSampling();
|
|
89
89
|
}
|
|
90
90
|
Memory.instance().reset();
|
|
91
91
|
}
|
|
@@ -132,12 +132,10 @@ export class TimelineGrid {
|
|
|
132
132
|
const width = Math.ceil(context.canvas.width / window.devicePixelRatio);
|
|
133
133
|
|
|
134
134
|
context.beginPath();
|
|
135
|
-
context.fillStyle = ThemeSupport.ThemeSupport.instance().
|
|
136
|
-
'rgba(255, 255, 255, 0.5)', ThemeSupport.ThemeSupport.ColorUsage.Background);
|
|
135
|
+
context.fillStyle = ThemeSupport.ThemeSupport.instance().getComputedValue('--color-background-opacity-50');
|
|
137
136
|
context.fillRect(0, 0, width, headerHeight);
|
|
138
137
|
|
|
139
|
-
context.fillStyle =
|
|
140
|
-
ThemeSupport.ThemeSupport.instance().patchColorText('#333', ThemeSupport.ThemeSupport.ColorUsage.Foreground);
|
|
138
|
+
context.fillStyle = ThemeSupport.ThemeSupport.instance().getComputedValue('--color-text-primary');
|
|
141
139
|
context.textBaseline = 'hanging';
|
|
142
140
|
context.font = '11px ' + Host.Platform.fontFamily();
|
|
143
141
|
|
|
@@ -94,7 +94,7 @@ export class TimelineOverviewPane extends Common.ObjectWrapper.eventMixin<EventT
|
|
|
94
94
|
this.cursorPosition = mouseEvent.offsetX + target.offsetLeft;
|
|
95
95
|
this.cursorElement.style.left = this.cursorPosition + 'px';
|
|
96
96
|
this.cursorElement.style.visibility = 'visible';
|
|
97
|
-
this.overviewInfo.setContent(this.buildOverviewInfo());
|
|
97
|
+
void this.overviewInfo.setContent(this.buildOverviewInfo());
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
private async buildOverviewInfo(): Promise<DocumentFragment> {
|
|
@@ -153,7 +153,7 @@ export class TimelineOverviewPane extends Common.ObjectWrapper.eventMixin<EventT
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
scheduleUpdate(): void {
|
|
156
|
-
this.updateThrottler.schedule(async () => {
|
|
156
|
+
void this.updateThrottler.schedule(async () => {
|
|
157
157
|
this.update();
|
|
158
158
|
});
|
|
159
159
|
}
|
|
@@ -6,6 +6,14 @@
|
|
|
6
6
|
|
|
7
7
|
.flame-chart-main-pane {
|
|
8
8
|
overflow: hidden;
|
|
9
|
+
|
|
10
|
+
--selected-group-background: hsl(215deg 85% 98%);
|
|
11
|
+
--selected-group-border: hsl(216deg 68% 54%);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host-context(.-theme-with-dark-background) .flame-chart-main-pane {
|
|
15
|
+
--selected-group-background: hsl(215deg 85% 15%);
|
|
16
|
+
--selected-group-border: hsl(216deg 68% 46%);
|
|
9
17
|
}
|
|
10
18
|
|
|
11
19
|
.flame-chart-marker-highlight-element {
|
|
@@ -85,7 +85,7 @@ export class FilteredListWidget extends Common.ObjectWrapper.eventMixin<EventTyp
|
|
|
85
85
|
this.itemElementsContainer.classList.add('container');
|
|
86
86
|
this.bottomElementsContainer.appendChild(this.itemElementsContainer);
|
|
87
87
|
this.itemElementsContainer.addEventListener('click', this.onClick.bind(this), false);
|
|
88
|
-
this.itemElementsContainer.addEventListener('
|
|
88
|
+
this.itemElementsContainer.addEventListener('mousemove', this.onMouseMove.bind(this), false);
|
|
89
89
|
UI.ARIAUtils.markAsListBox(this.itemElementsContainer);
|
|
90
90
|
UI.ARIAUtils.setControls(this.inputBoxElement, this.itemElementsContainer);
|
|
91
91
|
UI.ARIAUtils.setAutocomplete(this.inputBoxElement, UI.ARIAUtils.AutocompleteInteractionModel.list);
|
|
@@ -167,7 +167,7 @@ export class FilteredListWidget extends Common.ObjectWrapper.eventMixin<EventTyp
|
|
|
167
167
|
this.dialog.contentElement.style.setProperty('border-radius', '4px');
|
|
168
168
|
this.show(this.dialog.contentElement);
|
|
169
169
|
UI.ARIAUtils.setExpanded(this.contentElement, true);
|
|
170
|
-
this.dialog.once(UI.Dialog.Events.Hidden).then(() => {
|
|
170
|
+
void this.dialog.once(UI.Dialog.Events.Hidden).then(() => {
|
|
171
171
|
this.dispatchEventToListeners(Events.Hidden);
|
|
172
172
|
});
|
|
173
173
|
// @ts-ignore
|
|
@@ -309,7 +309,7 @@ export class FilteredListWidget extends Common.ObjectWrapper.eventMixin<EventTyp
|
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
|
|
312
|
-
private
|
|
312
|
+
private onMouseMove(event: Event): void {
|
|
313
313
|
const item = this.list.itemForNode((event.target as Node | null));
|
|
314
314
|
if (item === null) {
|
|
315
315
|
return;
|
|
@@ -321,7 +321,7 @@ export class FilteredListWidget extends Common.ObjectWrapper.eventMixin<EventTyp
|
|
|
321
321
|
this.query = query;
|
|
322
322
|
this.inputBoxElement.focus();
|
|
323
323
|
this.inputBoxElement.setText(query);
|
|
324
|
-
this.queryChanged();
|
|
324
|
+
void this.queryChanged();
|
|
325
325
|
this.scheduleFilter();
|
|
326
326
|
}
|
|
327
327
|
|
|
@@ -486,7 +486,7 @@ export class FilteredListWidget extends Common.ObjectWrapper.eventMixin<EventTyp
|
|
|
486
486
|
|
|
487
487
|
private onInput(event: TextPrompt.TextPrompt.PromptInputEvent): void {
|
|
488
488
|
this.query = event.data;
|
|
489
|
-
this.queryChanged();
|
|
489
|
+
void this.queryChanged();
|
|
490
490
|
this.scheduleFilter();
|
|
491
491
|
}
|
|
492
492
|
|
|
@@ -61,7 +61,6 @@ export class FontView extends UI.View.SimpleView {
|
|
|
61
61
|
private inResize!: boolean|null;
|
|
62
62
|
constructor(mimeType: string, contentProvider: TextUtils.ContentProvider.ContentProvider) {
|
|
63
63
|
super(i18nString(UIStrings.font));
|
|
64
|
-
// eslint-disable-next-line no-restricted-syntax -- Should import styles https://crbug.com/1106746
|
|
65
64
|
this.registerRequiredCSS(fontViewStyles);
|
|
66
65
|
this.element.classList.add('font-view');
|
|
67
66
|
this.url = contentProvider.contentURL();
|
|
@@ -94,7 +93,7 @@ export class FontView extends UI.View.SimpleView {
|
|
|
94
93
|
|
|
95
94
|
const uniqueFontName = 'WebInspectorFontPreview' + (++_fontId);
|
|
96
95
|
this.fontStyleElement = document.createElement('style');
|
|
97
|
-
this.contentProvider.requestContent().then(deferredContent => {
|
|
96
|
+
void this.contentProvider.requestContent().then(deferredContent => {
|
|
98
97
|
this.onFontContentLoaded(uniqueFontName, deferredContent);
|
|
99
98
|
});
|
|
100
99
|
this.element.appendChild(this.fontStyleElement);
|