chrome-devtools-frontend 1.0.954777 → 1.0.955630
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/config/owner/COMMON_OWNERS +2 -2
- 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 -0
- package/front_end/core/i18n/locales/en-XL.json +3 -0
- 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/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 +11 -11
- 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 +12 -0
- 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/SourceFormatter.ts +2 -2
- package/front_end/models/issues_manager/ContrastCheckTrigger.ts +1 -1
- 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 +21 -21
- 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/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 +27 -24
- 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 +3 -5
- package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +4 -7
- 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/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 +20 -13
- 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 +2 -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/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/quick_open/FilteredListWidget.ts +5 -5
- package/front_end/ui/legacy/components/source_frame/FontView.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/ImageView.ts +3 -3
- package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +5 -5
- 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/toolbar.css +1 -0
- package/front_end/ui/legacy/treeoutline.css +4 -0
- package/package.json +1 -1
- package/scripts/eslint_rules/tests/check_license_header_test.js +10 -8
|
@@ -432,6 +432,7 @@ export class TreeElement {
|
|
|
432
432
|
private readonly boundOnFocus: () => void;
|
|
433
433
|
private readonly boundOnBlur: () => void;
|
|
434
434
|
readonly listItemNode: HTMLLIElement;
|
|
435
|
+
readonly contentNode: HTMLElement;
|
|
435
436
|
titleElement: Node;
|
|
436
437
|
titleInternal: string|Node;
|
|
437
438
|
private childrenInternal: TreeElement[]|null;
|
|
@@ -458,8 +459,10 @@ export class TreeElement {
|
|
|
458
459
|
this.boundOnFocus = this.onFocus.bind(this);
|
|
459
460
|
this.boundOnBlur = this.onBlur.bind(this);
|
|
460
461
|
this.listItemNode = document.createElement('li');
|
|
462
|
+
this.contentNode = this.listItemElement.createChild('div');
|
|
463
|
+
this.contentNode.classList.add('tree-element-content');
|
|
461
464
|
|
|
462
|
-
this.titleElement = this.
|
|
465
|
+
this.titleElement = this.contentNode.createChild('span', 'tree-element-title');
|
|
463
466
|
treeElementBylistItemNode.set(this.listItemNode, this);
|
|
464
467
|
this.titleInternal = '';
|
|
465
468
|
if (title) {
|
|
@@ -729,6 +732,10 @@ export class TreeElement {
|
|
|
729
732
|
return this.listItemNode;
|
|
730
733
|
}
|
|
731
734
|
|
|
735
|
+
get contentElement(): HTMLElement {
|
|
736
|
+
return this.contentNode;
|
|
737
|
+
}
|
|
738
|
+
|
|
732
739
|
get childrenListElement(): HTMLOListElement {
|
|
733
740
|
return this.childrenListNode;
|
|
734
741
|
}
|
|
@@ -751,13 +758,13 @@ export class TreeElement {
|
|
|
751
758
|
this.tooltip = '';
|
|
752
759
|
}
|
|
753
760
|
|
|
754
|
-
this.
|
|
761
|
+
this.contentNode.removeChildren();
|
|
755
762
|
if (this.leadingIconsElement) {
|
|
756
|
-
this.
|
|
763
|
+
this.contentNode.appendChild(this.leadingIconsElement);
|
|
757
764
|
}
|
|
758
|
-
this.
|
|
765
|
+
this.contentNode.appendChild(this.titleElement);
|
|
759
766
|
if (this.trailingIconsElement) {
|
|
760
|
-
this.
|
|
767
|
+
this.contentNode.appendChild(this.trailingIconsElement);
|
|
761
768
|
}
|
|
762
769
|
this.ensureSelection();
|
|
763
770
|
}
|
|
@@ -787,7 +794,7 @@ export class TreeElement {
|
|
|
787
794
|
this.leadingIconsElement = document.createElement('div');
|
|
788
795
|
this.leadingIconsElement.classList.add('leading-icons');
|
|
789
796
|
this.leadingIconsElement.classList.add('icons-container');
|
|
790
|
-
this.
|
|
797
|
+
this.contentNode.insertBefore(this.leadingIconsElement, this.titleElement);
|
|
791
798
|
this.ensureSelection();
|
|
792
799
|
}
|
|
793
800
|
this.leadingIconsElement.removeChildren();
|
|
@@ -804,7 +811,7 @@ export class TreeElement {
|
|
|
804
811
|
this.trailingIconsElement = document.createElement('div');
|
|
805
812
|
this.trailingIconsElement.classList.add('trailing-icons');
|
|
806
813
|
this.trailingIconsElement.classList.add('icons-container');
|
|
807
|
-
this.
|
|
814
|
+
this.contentNode.appendChild(this.trailingIconsElement);
|
|
808
815
|
this.ensureSelection();
|
|
809
816
|
}
|
|
810
817
|
this.trailingIconsElement.removeChildren();
|
|
@@ -924,7 +931,7 @@ export class TreeElement {
|
|
|
924
931
|
}
|
|
925
932
|
} else {
|
|
926
933
|
if (event.altKey) {
|
|
927
|
-
this.expandRecursively();
|
|
934
|
+
void this.expandRecursively();
|
|
928
935
|
} else {
|
|
929
936
|
this.expand();
|
|
930
937
|
}
|
|
@@ -1020,7 +1027,7 @@ export class TreeElement {
|
|
|
1020
1027
|
|
|
1021
1028
|
this.expanded = true;
|
|
1022
1029
|
|
|
1023
|
-
this.populateIfNeeded();
|
|
1030
|
+
void this.populateIfNeeded();
|
|
1024
1031
|
this.listItemNode.classList.add('expanded');
|
|
1025
1032
|
this.childrenListNode.classList.add('expanded');
|
|
1026
1033
|
ARIAUtils.setExpanded(this.listItemNode, true);
|
|
@@ -1093,7 +1100,7 @@ export class TreeElement {
|
|
|
1093
1100
|
|
|
1094
1101
|
if (!this.expanded) {
|
|
1095
1102
|
if (altKey) {
|
|
1096
|
-
this.expandRecursively();
|
|
1103
|
+
void this.expandRecursively();
|
|
1097
1104
|
} else {
|
|
1098
1105
|
this.expand();
|
|
1099
1106
|
}
|
|
@@ -1292,7 +1299,7 @@ export class TreeElement {
|
|
|
1292
1299
|
depthChange: number,
|
|
1293
1300
|
}): TreeElement|null {
|
|
1294
1301
|
if (!dontPopulate) {
|
|
1295
|
-
this.populateIfNeeded();
|
|
1302
|
+
void this.populateIfNeeded();
|
|
1296
1303
|
}
|
|
1297
1304
|
|
|
1298
1305
|
if (info) {
|
|
@@ -1338,14 +1345,14 @@ export class TreeElement {
|
|
|
1338
1345
|
let element: (TreeElement|null) =
|
|
1339
1346
|
skipUnrevealed ? (this.revealed() ? this.previousSibling : null) : this.previousSibling;
|
|
1340
1347
|
if (!dontPopulate && element) {
|
|
1341
|
-
element.populateIfNeeded();
|
|
1348
|
+
void element.populateIfNeeded();
|
|
1342
1349
|
}
|
|
1343
1350
|
|
|
1344
1351
|
while (element &&
|
|
1345
1352
|
(skipUnrevealed ? (element.revealed() && element.expanded ? element.lastChild() : null) :
|
|
1346
1353
|
element.lastChild())) {
|
|
1347
1354
|
if (!dontPopulate) {
|
|
1348
|
-
element.populateIfNeeded();
|
|
1355
|
+
void element.populateIfNeeded();
|
|
1349
1356
|
}
|
|
1350
1357
|
element =
|
|
1351
1358
|
(skipUnrevealed ? (element.revealed() && element.expanded ? element.lastChild() : null) :
|
|
@@ -239,7 +239,7 @@ export class ViewManager {
|
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
// Find new location and show view there
|
|
242
|
-
this.resolveLocation(locationName).then(location => {
|
|
242
|
+
void this.resolveLocation(locationName).then(location => {
|
|
243
243
|
if (!location) {
|
|
244
244
|
throw new Error('Move view: Could not resolve location for view: ' + viewId);
|
|
245
245
|
}
|
|
@@ -393,7 +393,7 @@ export class ContainerWidget extends VBox {
|
|
|
393
393
|
}
|
|
394
394
|
|
|
395
395
|
wasShown(): void {
|
|
396
|
-
this.materialize().then(() => {
|
|
396
|
+
void this.materialize().then(() => {
|
|
397
397
|
const widget = widgetForView.get(this.view);
|
|
398
398
|
if (widget) {
|
|
399
399
|
widget.show(this.element);
|
|
@@ -442,7 +442,7 @@ export class _ExpandableContainerWidget extends VBox {
|
|
|
442
442
|
|
|
443
443
|
wasShown(): void {
|
|
444
444
|
if (this.widget && this.materializePromise) {
|
|
445
|
-
this.materializePromise.then(() => {
|
|
445
|
+
void this.materializePromise.then(() => {
|
|
446
446
|
if (this.titleElement.classList.contains('expanded') && this.widget) {
|
|
447
447
|
this.widget.show(this.element);
|
|
448
448
|
}
|
|
@@ -496,7 +496,7 @@ export class _ExpandableContainerWidget extends VBox {
|
|
|
496
496
|
this.titleElement.classList.remove('expanded');
|
|
497
497
|
ARIAUtils.setExpanded(this.titleElement, false);
|
|
498
498
|
this.titleExpandIcon.setIconType('smallicon-triangle-right');
|
|
499
|
-
this.materialize().then(() => {
|
|
499
|
+
void this.materialize().then(() => {
|
|
500
500
|
if (this.widget) {
|
|
501
501
|
this.widget.detach();
|
|
502
502
|
}
|
|
@@ -510,7 +510,7 @@ export class _ExpandableContainerWidget extends VBox {
|
|
|
510
510
|
if (this.titleElement.classList.contains('expanded')) {
|
|
511
511
|
this.collapse();
|
|
512
512
|
} else {
|
|
513
|
-
this.expand();
|
|
513
|
+
void this.expand();
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
|
|
@@ -523,7 +523,7 @@ export class _ExpandableContainerWidget extends VBox {
|
|
|
523
523
|
this.collapse();
|
|
524
524
|
} else if (keyEvent.key === 'ArrowRight') {
|
|
525
525
|
if (!this.titleElement.classList.contains('expanded')) {
|
|
526
|
-
this.expand();
|
|
526
|
+
void this.expand();
|
|
527
527
|
} else if (this.widget) {
|
|
528
528
|
this.widget.focus();
|
|
529
529
|
}
|
|
@@ -685,7 +685,7 @@ export class _TabbedLocation extends Location implements TabbedViewLocation {
|
|
|
685
685
|
const view = Array.from(this.views.values()).find(view => view.viewId() === this.defaultTab);
|
|
686
686
|
if (view) {
|
|
687
687
|
// defaultTab is indeed part of the views for this tabbed location
|
|
688
|
-
this.showView(view);
|
|
688
|
+
void this.showView(view);
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
691
|
} else if (this.lastSelectedTabSetting && this.tabbedPaneInternal.hasTab(this.lastSelectedTabSetting.get())) {
|
|
@@ -702,7 +702,7 @@ export class _TabbedLocation extends Location implements TabbedViewLocation {
|
|
|
702
702
|
if (view.viewId() === 'issues-pane') {
|
|
703
703
|
contextMenu.defaultSection().appendItem(title, () => {
|
|
704
704
|
Host.userMetrics.issuesPanelOpenedFrom(Host.UserMetrics.IssueOpener.HamburgerMenu);
|
|
705
|
-
this.showView(view, undefined, true);
|
|
705
|
+
void this.showView(view, undefined, true);
|
|
706
706
|
});
|
|
707
707
|
continue;
|
|
708
708
|
}
|
|
@@ -801,7 +801,7 @@ export class _TabbedLocation extends Location implements TabbedViewLocation {
|
|
|
801
801
|
}
|
|
802
802
|
const view = this.views.get(tabId);
|
|
803
803
|
if (view) {
|
|
804
|
-
view.disposeView();
|
|
804
|
+
void view.disposeView();
|
|
805
805
|
}
|
|
806
806
|
}
|
|
807
807
|
|
|
@@ -57,7 +57,7 @@ export class ContrastOverlay {
|
|
|
57
57
|
if (!this.contrastInfo.contrastRatio()) {
|
|
58
58
|
return;
|
|
59
59
|
}
|
|
60
|
-
this.contrastRatioLinesThrottler.schedule(this.drawContrastRatioLinesBound);
|
|
60
|
+
void this.contrastRatioLinesThrottler.schedule(this.drawContrastRatioLinesBound);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
setDimensions(width: number, height: number): void {
|
|
@@ -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
|
})
|
|
@@ -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> {
|
|
@@ -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
|
}
|
|
@@ -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
|
|
|
@@ -94,7 +94,7 @@ export class FontView extends UI.View.SimpleView {
|
|
|
94
94
|
|
|
95
95
|
const uniqueFontName = 'WebInspectorFontPreview' + (++_fontId);
|
|
96
96
|
this.fontStyleElement = document.createElement('style');
|
|
97
|
-
this.contentProvider.requestContent().then(deferredContent => {
|
|
97
|
+
void this.contentProvider.requestContent().then(deferredContent => {
|
|
98
98
|
this.onFontContentLoaded(uniqueFontName, deferredContent);
|
|
99
99
|
});
|
|
100
100
|
this.element.appendChild(this.fontStyleElement);
|