chrome-devtools-frontend 1.0.955092 → 1.0.956812
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 -2
- package/config/owner/COMMON_OWNERS +2 -2
- package/front_end/.eslintrc.js +1 -11
- package/front_end/Images/generate-css-vars.js +2 -2
- package/front_end/core/common/Console.ts +1 -1
- package/front_end/core/common/ParsedURL.ts +35 -2
- package/front_end/core/common/ResolverBase.ts +1 -1
- package/front_end/core/common/Settings.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 +3 -2
- 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 +2 -5
- 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/root/Runtime.ts +0 -72
- package/front_end/core/root/root-legacy.ts +0 -2
- 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/lighthouse_worker/LighthouseService.ts +4 -7
- package/front_end/entrypoints/main/MainImpl.ts +32 -24
- 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/protocol.d.ts +1 -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 +9 -30
- 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/ConsolePinPane.ts +4 -4
- package/front_end/panels/console/ConsolePrompt.ts +4 -4
- package/front_end/panels/console/ConsoleSidebar.ts +9 -9
- package/front_end/panels/console/ConsoleView.ts +6 -6
- package/front_end/panels/console/ConsoleViewMessage.ts +8 -7
- 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 +20 -20
- package/front_end/panels/elements/ElementsSidebarPane.ts +1 -1
- package/front_end/panels/elements/ElementsTreeElement.ts +14 -13
- 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/components/LayoutPane.ts +1 -1
- package/front_end/panels/elements/elementsPanel.css +1 -0
- 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 +4 -3
- 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/third_party/acorn/acorn.ts +1 -1
- 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/ResizerWidget.ts +4 -2
- package/front_end/ui/legacy/ShortcutRegistry.ts +1 -1
- package/front_end/ui/legacy/SoftDropDown.ts +2 -1
- package/front_end/ui/legacy/TabbedPane.ts +2 -2
- package/front_end/ui/legacy/TextPrompt.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 +15 -21
- package/front_end/ui/legacy/UIUtils.ts +17 -24
- package/front_end/ui/legacy/ViewManager.ts +10 -10
- package/front_end/ui/legacy/Widget.ts +3 -2
- 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 +3 -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/OverviewGrid.ts +2 -1
- package/front_end/ui/legacy/components/perf_ui/TimelineGrid.ts +3 -6
- 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/softContextMenu.css +4 -1
- 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 +24 -234
- package/front_end/ui/legacy/toolbar.css +1 -0
- package/front_end/ui/legacy/treeoutline.css +0 -4
- package/front_end/ui/legacy/utils/create-shadow-root-with-core-styles.ts +3 -2
- package/front_end/ui/legacy/utils/inject-core-styles.ts +3 -31
- package/front_end/ui/legacy/utils/utils.ts +1 -5
- package/front_end/ui/lit-html/lit-html.ts +1 -1
- package/package.json +1 -1
- package/scripts/build/generate_css_js_files.js +2 -2
- package/scripts/build/ninja/generate_css.gni +3 -0
- 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/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
- package/front_end/ui/legacy/utils/append-style.ts +0 -9
|
@@ -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('
|
|
142
|
+
element.addEventListener('pointerdown', onMouseDown, false);
|
|
145
143
|
if (startDelay) {
|
|
146
|
-
element.addEventListener('
|
|
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('
|
|
237
|
-
targetDocument.addEventListener('
|
|
234
|
+
targetDocument.addEventListener('pointermove', this.elementDragMove, true);
|
|
235
|
+
targetDocument.addEventListener('pointerup', this.elementDragEnd, true);
|
|
238
236
|
DragHandler.rootForMouseOut &&
|
|
239
|
-
DragHandler.rootForMouseOut.addEventListener('
|
|
237
|
+
DragHandler.rootForMouseOut.addEventListener('pointerout', this.mouseOutWhileDragging, {capture: true});
|
|
240
238
|
if (this.dragEventsTargetDocumentTop && targetDocument !== this.dragEventsTargetDocumentTop) {
|
|
241
|
-
this.dragEventsTargetDocumentTop.addEventListener('
|
|
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('
|
|
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('
|
|
275
|
-
this.dragEventsTargetDocument.removeEventListener('
|
|
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('
|
|
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('
|
|
997
|
-
this.element.addEventListener('
|
|
998
|
-
this.element.addEventListener('
|
|
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('
|
|
1037
|
-
this.element.removeEventListener('
|
|
1038
|
-
this.element.removeEventListener('
|
|
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
|
|
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
|
}
|
|
@@ -15,7 +15,7 @@ import type {ToolbarItem} from './Toolbar.js';
|
|
|
15
15
|
import {Toolbar, ToolbarMenuButton} from './Toolbar.js';
|
|
16
16
|
import {createTextChild} from './UIUtils.js';
|
|
17
17
|
import type {TabbedViewLocation, View, ViewLocation, ViewLocationResolver} from './View.js';
|
|
18
|
-
import {getRegisteredLocationResolvers, getRegisteredViewExtensions, maybeRemoveViewExtension, registerLocationResolver, registerViewExtension, ViewLocationCategoryValues, ViewLocationValues, ViewPersistence, ViewRegistration} from './ViewRegistration.js';
|
|
18
|
+
import {getRegisteredLocationResolvers, getRegisteredViewExtensions, maybeRemoveViewExtension, registerLocationResolver, registerViewExtension, ViewLocationCategoryValues, ViewLocationValues, ViewPersistence, type ViewRegistration} from './ViewRegistration.js';
|
|
19
19
|
import type {Widget, WidgetElement} from './Widget.js';
|
|
20
20
|
import {VBox} from './Widget.js';
|
|
21
21
|
import viewContainersStyles from './viewContainers.css.legacy.js';
|
|
@@ -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
|
|
|
@@ -32,6 +32,7 @@ import * as DOMExtension from '../../core/dom_extension/dom_extension.js';
|
|
|
32
32
|
import * as Helpers from '../components/helpers/helpers.js';
|
|
33
33
|
|
|
34
34
|
import {Constraints, Size} from './Geometry.js';
|
|
35
|
+
import * as ThemeSupport from './theme_support/theme_support.js';
|
|
35
36
|
import * as Utils from './utils/utils.js';
|
|
36
37
|
import {XWidget} from './XWidget.js';
|
|
37
38
|
|
|
@@ -460,9 +461,9 @@ export class Widget {
|
|
|
460
461
|
|
|
461
462
|
registerRequiredCSS(cssFile: {cssContent: string}): void {
|
|
462
463
|
if (this.isWebComponent) {
|
|
463
|
-
|
|
464
|
+
ThemeSupport.ThemeSupport.instance().appendStyle((this.shadowRoot as DocumentFragment), cssFile);
|
|
464
465
|
} else {
|
|
465
|
-
|
|
466
|
+
ThemeSupport.ThemeSupport.instance().appendStyle(this.element, cssFile);
|
|
466
467
|
}
|
|
467
468
|
}
|
|
468
469
|
|
|
@@ -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 {
|
|
@@ -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 {
|
|
@@ -1465,6 +1465,7 @@ export class DataGridImpl<T> extends Common.ObjectWrapper.ObjectWrapper<EventTyp
|
|
|
1465
1465
|
}
|
|
1466
1466
|
|
|
1467
1467
|
this.positionResizers();
|
|
1468
|
+
this.updateWidths();
|
|
1468
1469
|
event.preventDefault();
|
|
1469
1470
|
}
|
|
1470
1471
|
|
|
@@ -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> {
|