chrome-devtools-frontend 1.0.1738725 → 1.0.1739869
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/.stylelintrc.json +3 -1
- package/eslint.config.mjs +127 -0
- package/front_end/application_tokens.css +0 -30
- package/front_end/core/sdk/SourceMap.ts +30 -3
- package/front_end/core/sdk/SourceMapRangeMappings.ts +57 -0
- package/front_end/entrypoints/formatter_worker/JavaScriptFormatter.ts +5 -9
- package/front_end/generated/SupportedCSSProperties.ts +16 -0
- package/front_end/models/trace/extras/TraceFilter.ts +16 -8
- package/front_end/models/trace/extras/TraceTree.ts +104 -67
- package/front_end/models/trace/handlers/ExtensionTraceDataHandler.ts +0 -5
- package/front_end/models/trace/handlers/RendererHandler.ts +7 -6
- package/front_end/models/trace/handlers/SamplesHandler.ts +1 -1
- package/front_end/models/trace/helpers/Extensions.ts +1 -3
- package/front_end/models/trace/helpers/SamplesIntegrator.ts +155 -87
- package/front_end/models/trace/helpers/Trace.ts +15 -12
- package/front_end/models/trace/helpers/TreeHelpers.ts +38 -10
- package/front_end/models/trace/insights/SlowCSSSelector.ts +3 -3
- package/front_end/models/trace/lantern/metrics/LargestContentfulPaint.ts +19 -4
- package/front_end/panels/ai_assistance/components/chatView.css +0 -180
- package/front_end/panels/application/ApplicationPanelTreeElement.ts +66 -3
- package/front_end/panels/application/components/backForwardCacheView.css +1 -1
- package/front_end/panels/application/resourcesPanel.css +0 -48
- package/front_end/panels/console/consoleView.css +1 -1
- package/front_end/panels/elements/StylePropertiesSection.ts +4 -9
- package/front_end/panels/elements/StylePropertyTreeElement.ts +52 -34
- package/front_end/panels/elements/classesPaneWidget.css +3 -7
- package/front_end/panels/elements/components/CSSQuery.ts +6 -5
- package/front_end/panels/elements/metricsSidebarPane.css +2 -2
- package/front_end/panels/elements/stylePropertiesTreeOutline.css +0 -6
- package/front_end/panels/elements/stylesSidebarPane.css +0 -1
- package/front_end/panels/explain/components/consoleInsight.css +1 -6
- package/front_end/panels/issues/AffectedBlockedByResponseView.ts +88 -46
- package/front_end/panels/issues/AffectedHeavyAdView.ts +72 -43
- package/front_end/panels/issues/AffectedResourcesView.ts +81 -13
- package/front_end/panels/issues/GenericIssueDetailsView.ts +112 -32
- package/front_end/panels/issues/issues.ts +2 -0
- package/front_end/panels/issues/issuesTree.css +7 -0
- package/front_end/panels/layer_viewer/layerDetailsView.css +1 -1
- package/front_end/panels/lighthouse/lighthousePanel.css +0 -9
- package/front_end/panels/linear_memory_inspector/components/linearMemoryValueInterpreter.css +2 -2
- package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +2 -2
- package/front_end/panels/network/NetworkLogView.ts +9 -2
- package/front_end/panels/network/RequestTimingView.ts +16 -2
- package/front_end/panels/network/networkConfigView.css +2 -2
- package/front_end/panels/network/networkLogView.css +2 -15
- package/front_end/panels/network/networkPanel.css +0 -2
- package/front_end/panels/network/networkTimingTable.css +11 -26
- package/front_end/panels/profiler/profilesPanel.css +0 -11
- package/front_end/panels/recorder/ControlButton.ts +1 -1
- package/front_end/panels/recorder/RecordingView.ts +22 -1
- package/front_end/panels/recorder/StepView.ts +26 -1
- package/front_end/panels/recorder/TimelineSection.ts +22 -6
- package/front_end/panels/recorder/controlButton.css +2 -9
- package/front_end/panels/recorder/recorderPanel.css +0 -1
- package/front_end/panels/recorder/recordingView.css +32 -32
- package/front_end/panels/recorder/replaySection.css +2 -0
- package/front_end/panels/recorder/stepView.css +18 -14
- package/front_end/panels/recorder/timelineSection.css +60 -84
- package/front_end/panels/search/searchView.css +1 -1
- package/front_end/panels/sensors/SensorsView.ts +6 -21
- package/front_end/panels/sources/breakpointsView.css +3 -2
- package/front_end/panels/sources/sourcesView.css +2 -1
- package/front_end/panels/timeline/EventsTimelineTreeView.ts +18 -5
- package/front_end/panels/timeline/TimelineController.ts +30 -26
- package/front_end/panels/timeline/TimelineDetailsView.ts +10 -9
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +4 -16
- package/front_end/panels/timeline/TimelineMiniMap.ts +132 -54
- package/front_end/panels/timeline/TimelineTreeView.ts +25 -9
- package/front_end/panels/timeline/components/DetailsView.ts +7 -14
- package/front_end/panels/timeline/components/NetworkTrackWidget.ts +5 -1
- package/front_end/panels/timeline/components/interactionBreakdown.css +1 -0
- package/front_end/panels/timeline/components/networkRequestDetails.css +1 -0
- package/front_end/panels/timeline/components/networkTrackWidget.css +1 -1
- package/front_end/panels/timeline/components/sidebarInsightsTab.css +1 -0
- package/front_end/panels/timeline/docs/profile_calls.md +7 -9
- package/front_end/panels/timeline/timelineDetailsView.css +2 -2
- package/front_end/panels/webauthn/webauthnPane.css +1 -1
- package/front_end/third_party/axe-core/README.chromium +2 -3
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/puppeteer/README.chromium +2 -2
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +328 -11
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +907 -588
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.d.ts +119 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.d.ts +120 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.d.ts +16 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPResponse.d.ts +26 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts +23 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js +21 -14
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.d.ts +5 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.js +4 -4
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.d.ts +6 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.js +158 -67
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BrowserConnector.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Connection.js +3 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Frame.js +28 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.js +19 -11
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.js +17 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Input.js +62 -4
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.d.ts +29 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.js +60 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.d.ts +9 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.js +24 -9
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Realm.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Realm.js +16 -7
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Realm.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.d.ts +6 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.js +37 -20
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.js +10 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Navigation.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Navigation.js +18 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Navigation.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Request.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Request.js +24 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Request.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Binding.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Binding.js +6 -4
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Binding.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ExtensionTransport.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ExtensionTransport.js +30 -6
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ExtensionTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.d.ts +5 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.js +12 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.d.ts +3 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.js +40 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.d.ts +23 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.js +37 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.js +74 -16
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.d.ts +3 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.js +34 -23
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.d.ts +10 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.js +94 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.js +29 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/utils.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/utils.js +6 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/utils.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/ConsoleMessage.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/ConsoleMessage.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/ConsoleMessage.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.d.ts +4 -4
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.js +34 -15
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.d.ts +3 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.js +11 -7
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ChromeLauncher.js +10 -7
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ChromeLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/decorators.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +328 -11
- package/front_end/third_party/puppeteer/package/package.json +10 -8
- package/front_end/third_party/puppeteer/package/src/api/Browser.ts +118 -0
- package/front_end/third_party/puppeteer/package/src/api/BrowserContext.ts +119 -0
- package/front_end/third_party/puppeteer/package/src/api/HTTPRequest.ts +25 -2
- package/front_end/third_party/puppeteer/package/src/api/HTTPResponse.ts +28 -0
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +65 -38
- package/front_end/third_party/puppeteer/package/src/api/locators/locators.ts +27 -7
- package/front_end/third_party/puppeteer/package/src/bidi/Browser.ts +43 -7
- package/front_end/third_party/puppeteer/package/src/bidi/BrowserConnector.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/bidi/Connection.ts +5 -1
- package/front_end/third_party/puppeteer/package/src/bidi/Frame.ts +38 -8
- package/front_end/third_party/puppeteer/package/src/bidi/HTTPRequest.ts +27 -12
- package/front_end/third_party/puppeteer/package/src/bidi/HTTPResponse.ts +19 -6
- package/front_end/third_party/puppeteer/package/src/bidi/Input.ts +72 -5
- package/front_end/third_party/puppeteer/package/src/bidi/NetworkEvents.ts +82 -0
- package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +37 -13
- package/front_end/third_party/puppeteer/package/src/bidi/Realm.ts +26 -14
- package/front_end/third_party/puppeteer/package/src/bidi/core/Browser.ts +43 -22
- package/front_end/third_party/puppeteer/package/src/bidi/core/BrowsingContext.ts +13 -5
- package/front_end/third_party/puppeteer/package/src/bidi/core/Navigation.ts +21 -1
- package/front_end/third_party/puppeteer/package/src/bidi/core/Request.ts +27 -5
- package/front_end/third_party/puppeteer/package/src/cdp/Binding.ts +6 -4
- package/front_end/third_party/puppeteer/package/src/cdp/ExtensionTransport.ts +31 -6
- package/front_end/third_party/puppeteer/package/src/cdp/FrameManager.ts +5 -0
- package/front_end/third_party/puppeteer/package/src/cdp/HTTPRequest.ts +18 -1
- package/front_end/third_party/puppeteer/package/src/cdp/HTTPResponse.ts +48 -0
- package/front_end/third_party/puppeteer/package/src/cdp/NetworkEventManager.ts +58 -5
- package/front_end/third_party/puppeteer/package/src/cdp/NetworkManager.ts +94 -14
- package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +50 -28
- package/front_end/third_party/puppeteer/package/src/cdp/ResponseBodyStream.ts +106 -0
- package/front_end/third_party/puppeteer/package/src/cdp/Target.ts +38 -3
- package/front_end/third_party/puppeteer/package/src/cdp/cdp.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/cdp/utils.ts +6 -5
- package/front_end/third_party/puppeteer/package/src/common/ConsoleMessage.ts +5 -0
- package/front_end/third_party/puppeteer/package/src/common/EventEmitter.ts +17 -8
- package/front_end/third_party/puppeteer/package/src/common/util.ts +32 -15
- package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +21 -13
- package/front_end/third_party/puppeteer/package/src/node/ChromeLauncher.ts +10 -10
- package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/util/decorators.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
- package/front_end/third_party/puppeteer/puppeteer-tsconfig.json +2 -0
- package/front_end/ui/components/diff_view/diffView.css +0 -2
- package/front_end/ui/components/tooltips/Tooltip.ts +29 -0
- package/front_end/ui/components/tree_outline/treeOutline.css +1 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +34 -20
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +41 -14
- package/front_end/ui/legacy/components/source_frame/imageView.css +2 -2
- package/front_end/ui/legacy/filter.css +6 -2
- package/front_end/ui/legacy/inspectorCommon.css +1 -53
- package/front_end/ui/legacy/listWidget.css +1 -1
- package/front_end/ui/legacy/tabbedPane.css +0 -8
- package/front_end/ui/visual_logging/KnownContextValues.ts +1 -0
- package/inspector_overlay/tool_highlight.css +0 -7
- package/inspector_overlay/tool_highlight.ts +0 -1
- package/package.json +1 -1
|
@@ -176,6 +176,11 @@ export interface ViewInput {
|
|
|
176
176
|
sectionIndex: number;
|
|
177
177
|
isFirstSection: boolean;
|
|
178
178
|
isLastSection: boolean;
|
|
179
|
+
/**
|
|
180
|
+
* Whether the step or section rendered right before this one is in the
|
|
181
|
+
* error state.
|
|
182
|
+
*/
|
|
183
|
+
isAfterError: boolean;
|
|
179
184
|
isRecording: boolean;
|
|
180
185
|
isPlaying: boolean;
|
|
181
186
|
isVisible: boolean;
|
|
@@ -342,6 +347,7 @@ export const DEFAULT_VIEW = (input: ViewInput, _output: ViewOutput, target: HTML
|
|
|
342
347
|
isStartOfGroup: input.isStartOfGroup,
|
|
343
348
|
isEndOfGroup: input.isEndOfGroup,
|
|
344
349
|
isSelected: input.isSelected,
|
|
350
|
+
isAfterError: input.isAfterError,
|
|
345
351
|
})}
|
|
346
352
|
@contextmenu=${
|
|
347
353
|
(e: Event) => {
|
|
@@ -434,7 +440,6 @@ export const DEFAULT_VIEW = (input: ViewInput, _output: ViewOutput, target: HTML
|
|
|
434
440
|
onAttributeRequested: input.onAttributeRequested,
|
|
435
441
|
})}></devtools-widget>`
|
|
436
442
|
}
|
|
437
|
-
}
|
|
438
443
|
</div>
|
|
439
444
|
${
|
|
440
445
|
input.error &&
|
|
@@ -472,6 +477,7 @@ export class StepView extends UI.Widget.Widget<ShadowRoot> {
|
|
|
472
477
|
sectionIndex: 0,
|
|
473
478
|
isFirstSection: false,
|
|
474
479
|
isLastSection: false,
|
|
480
|
+
isAfterError: false,
|
|
475
481
|
isRecording: false,
|
|
476
482
|
isPlaying: false,
|
|
477
483
|
isVisible: false,
|
|
@@ -523,6 +529,14 @@ export class StepView extends UI.Widget.Widget<ShadowRoot> {
|
|
|
523
529
|
this.requestUpdate();
|
|
524
530
|
}
|
|
525
531
|
|
|
532
|
+
set showDetails(showDetails: boolean) {
|
|
533
|
+
if (this.#viewInput.showDetails === showDetails) {
|
|
534
|
+
return;
|
|
535
|
+
}
|
|
536
|
+
this.#viewInput.showDetails = showDetails;
|
|
537
|
+
this.requestUpdate();
|
|
538
|
+
}
|
|
539
|
+
|
|
526
540
|
set isEndOfGroup(isEndOfGroup: boolean) {
|
|
527
541
|
this.#viewInput.isEndOfGroup = isEndOfGroup;
|
|
528
542
|
this.requestUpdate();
|
|
@@ -549,10 +563,21 @@ export class StepView extends UI.Widget.Widget<ShadowRoot> {
|
|
|
549
563
|
}
|
|
550
564
|
|
|
551
565
|
set isLastSection(isLastSection: boolean) {
|
|
566
|
+
if (this.#viewInput.isLastSection === isLastSection) {
|
|
567
|
+
return;
|
|
568
|
+
}
|
|
552
569
|
this.#viewInput.isLastSection = isLastSection;
|
|
553
570
|
this.requestUpdate();
|
|
554
571
|
}
|
|
555
572
|
|
|
573
|
+
set isAfterError(isAfterError: boolean) {
|
|
574
|
+
if (this.#viewInput.isAfterError === isAfterError) {
|
|
575
|
+
return;
|
|
576
|
+
}
|
|
577
|
+
this.#viewInput.isAfterError = isAfterError;
|
|
578
|
+
this.requestUpdate();
|
|
579
|
+
}
|
|
580
|
+
|
|
556
581
|
set isRecording(isRecording: boolean) {
|
|
557
582
|
this.#viewInput.isRecording = isRecording;
|
|
558
583
|
this.requestUpdate();
|
|
@@ -15,6 +15,11 @@ export interface TimelineSectionData {
|
|
|
15
15
|
isStartOfGroup: boolean;
|
|
16
16
|
isEndOfGroup: boolean;
|
|
17
17
|
isSelected: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Whether the section right before this one is in the error state. The part
|
|
20
|
+
* of the timeline that connects the two sections is then drawn as an error.
|
|
21
|
+
*/
|
|
22
|
+
isAfterError: boolean;
|
|
18
23
|
}
|
|
19
24
|
|
|
20
25
|
export type ViewInput = TimelineSectionData;
|
|
@@ -28,6 +33,7 @@ export const DEFAULT_VIEW = (input: ViewInput, _output: ViewOutput, target: HTML
|
|
|
28
33
|
'is-first-section': input.isFirstSection,
|
|
29
34
|
'is-last-section': input.isLastSection,
|
|
30
35
|
'is-selected': input.isSelected,
|
|
36
|
+
'is-after-error': input.isAfterError,
|
|
31
37
|
};
|
|
32
38
|
|
|
33
39
|
// clang-format off
|
|
@@ -35,12 +41,12 @@ export const DEFAULT_VIEW = (input: ViewInput, _output: ViewOutput, target: HTML
|
|
|
35
41
|
html`
|
|
36
42
|
<style>${timelineSectionStyles}</style>
|
|
37
43
|
<div class=${Lit.Directives.classMap(classes)}>
|
|
38
|
-
<div class="
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
<
|
|
42
|
-
</
|
|
43
|
-
<slot></slot>
|
|
44
|
+
<div class="timeline">
|
|
45
|
+
<div class="line line-before"></div>
|
|
46
|
+
<div class="line line-after"></div>
|
|
47
|
+
<div class="icon"><slot name="icon"></slot></div>
|
|
48
|
+
</div>
|
|
49
|
+
<div class="content"><slot></slot></div>
|
|
44
50
|
</div>
|
|
45
51
|
`,
|
|
46
52
|
target,
|
|
@@ -54,6 +60,7 @@ export class TimelineSection extends UI.Widget.Widget {
|
|
|
54
60
|
#isFirstSection = false;
|
|
55
61
|
#isLastSection = false;
|
|
56
62
|
#isSelected = false;
|
|
63
|
+
#isAfterError = false;
|
|
57
64
|
#view: typeof DEFAULT_VIEW;
|
|
58
65
|
|
|
59
66
|
constructor(element?: HTMLElement,
|
|
@@ -87,6 +94,14 @@ export class TimelineSection extends UI.Widget.Widget {
|
|
|
87
94
|
this.requestUpdate();
|
|
88
95
|
}
|
|
89
96
|
|
|
97
|
+
set isAfterError(value: boolean) {
|
|
98
|
+
if (this.#isAfterError === value) {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
this.#isAfterError = value;
|
|
102
|
+
this.requestUpdate();
|
|
103
|
+
}
|
|
104
|
+
|
|
90
105
|
override performUpdate(): void {
|
|
91
106
|
this.#view(
|
|
92
107
|
{
|
|
@@ -95,6 +110,7 @@ export class TimelineSection extends UI.Widget.Widget {
|
|
|
95
110
|
isFirstSection: this.#isFirstSection,
|
|
96
111
|
isLastSection: this.#isLastSection,
|
|
97
112
|
isSelected: this.#isSelected,
|
|
113
|
+
isAfterError: this.#isAfterError,
|
|
98
114
|
},
|
|
99
115
|
undefined,
|
|
100
116
|
this.contentElement,
|
|
@@ -31,16 +31,14 @@
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.icon {
|
|
34
|
-
display:
|
|
34
|
+
display: grid;
|
|
35
|
+
place-items: center;
|
|
35
36
|
width: var(--sys-size-14);
|
|
36
37
|
height: var(--sys-size-14);
|
|
37
38
|
border-radius: var(--sys-shape-corner-full);
|
|
38
39
|
background: var(--sys-color-error-bright);
|
|
39
40
|
margin-bottom: var(--sys-size-5);
|
|
40
|
-
position: relative;
|
|
41
41
|
transition: background 200ms;
|
|
42
|
-
place-content: center center;
|
|
43
|
-
align-items: center;
|
|
44
42
|
}
|
|
45
43
|
|
|
46
44
|
.icon::before {
|
|
@@ -48,14 +46,9 @@
|
|
|
48
46
|
|
|
49
47
|
box-sizing: border-box;
|
|
50
48
|
content: "";
|
|
51
|
-
display: block;
|
|
52
49
|
width: var(--sys-size-7);
|
|
53
50
|
height: var(--sys-size-7);
|
|
54
51
|
border: var(--sys-size-1) solid var(--override-white);
|
|
55
|
-
position: absolute;
|
|
56
|
-
top: 50%;
|
|
57
|
-
left: 50%;
|
|
58
|
-
transform: translate(-50%, -50%);
|
|
59
52
|
background-color: var(--override-white);
|
|
60
53
|
}
|
|
61
54
|
|
|
@@ -28,40 +28,48 @@
|
|
|
28
28
|
.sections {
|
|
29
29
|
min-height: 0;
|
|
30
30
|
background-color: var(--sys-color-cdt-base-container);
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
/* Keeps the stacking of the screenshots local to the sections. */
|
|
32
|
+
isolation: isolate;
|
|
33
33
|
container: sections / inline-size;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.section {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
/*
|
|
38
|
+
* The steps span the full width of the section so that their highlight
|
|
39
|
+
* covers the whole row. Their content is inset to leave room for the
|
|
40
|
+
* screenshot, which is placed on top of the steps.
|
|
41
|
+
*/
|
|
42
|
+
--timeline-section-inset-inline-start: calc(var(--sys-size-8) + var(--sys-size-19) + var(--sys-size-5));
|
|
43
|
+
--timeline-section-inset-inline-end: var(--sys-size-8);
|
|
42
44
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
right: 0;
|
|
49
|
-
bottom: 0;
|
|
50
|
-
z-index: -1;
|
|
45
|
+
display: grid;
|
|
46
|
+
grid-template-areas: 'section';
|
|
47
|
+
grid-template-columns: minmax(0, 1fr);
|
|
48
|
+
/* Divider between the sections. */
|
|
49
|
+
box-shadow: inset 0 calc(-1 * var(--sys-size-1)) var(--sys-color-divider);
|
|
51
50
|
}
|
|
52
51
|
|
|
53
|
-
.section:last-child
|
|
54
|
-
|
|
52
|
+
.section:last-child {
|
|
53
|
+
box-shadow: none;
|
|
55
54
|
}
|
|
56
55
|
|
|
57
56
|
.screenshot-wrapper {
|
|
58
|
-
|
|
57
|
+
grid-area: section;
|
|
58
|
+
align-self: start;
|
|
59
|
+
width: var(--sys-size-19);
|
|
60
|
+
margin-inline-start: var(--sys-size-8);
|
|
59
61
|
padding-top: var(--sys-size-13);
|
|
60
|
-
/*
|
|
61
|
-
z-index:
|
|
62
|
+
/* Draw the screenshot on top of the step highlights. */
|
|
63
|
+
z-index: 1;
|
|
64
|
+
/* Only the screenshot itself should cover the steps below it. */
|
|
65
|
+
pointer-events: none;
|
|
62
66
|
}
|
|
63
67
|
|
|
64
68
|
@container sections (max-width: 400px) {
|
|
69
|
+
.section {
|
|
70
|
+
--timeline-section-inset-inline-start: var(--sys-size-8);
|
|
71
|
+
}
|
|
72
|
+
|
|
65
73
|
.screenshot-wrapper {
|
|
66
74
|
display: none;
|
|
67
75
|
}
|
|
@@ -75,24 +83,18 @@
|
|
|
75
83
|
height: auto;
|
|
76
84
|
border: var(--sys-size-1) solid var(--sys-color-divider);
|
|
77
85
|
border-radius: 1px;
|
|
86
|
+
pointer-events: auto;
|
|
78
87
|
}
|
|
79
88
|
|
|
80
89
|
.content {
|
|
81
|
-
|
|
90
|
+
grid-area: section;
|
|
91
|
+
align-self: start;
|
|
82
92
|
min-width: 0;
|
|
83
93
|
}
|
|
84
94
|
|
|
85
|
-
.steps {
|
|
86
|
-
flex: 1;
|
|
87
|
-
position: relative;
|
|
88
|
-
align-self: flex-start;
|
|
89
|
-
overflow: visible;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
95
|
.step {
|
|
93
|
-
position: relative;
|
|
94
|
-
padding-left: var(--sys-size-14);
|
|
95
96
|
margin: var(--sys-size-8) 0;
|
|
97
|
+
margin-inline-start: calc(var(--timeline-section-inset-inline-start) + var(--sys-size-14));
|
|
96
98
|
}
|
|
97
99
|
|
|
98
100
|
.step .action {
|
|
@@ -273,14 +275,12 @@
|
|
|
273
275
|
border-top: var(--sys-size-1) solid var(--sys-color-divider);
|
|
274
276
|
padding: var(--sys-size-6);
|
|
275
277
|
background: var(--sys-color-cdt-base-container);
|
|
276
|
-
z-index: 1;
|
|
277
278
|
}
|
|
278
279
|
|
|
279
280
|
.controls {
|
|
280
281
|
align-items: center;
|
|
281
282
|
display: flex;
|
|
282
283
|
justify-content: center;
|
|
283
|
-
position: relative;
|
|
284
284
|
width: 100%;
|
|
285
285
|
}
|
|
286
286
|
|
|
@@ -10,6 +10,11 @@
|
|
|
10
10
|
font-size: inherit;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
:host {
|
|
14
|
+
/* Space reserved in front of the title for the expand/collapse chevron. */
|
|
15
|
+
--chevron-column-width: calc(var(--sys-size-7) + var(--sys-size-2));
|
|
16
|
+
}
|
|
17
|
+
|
|
13
18
|
.title-container {
|
|
14
19
|
/* Vertically center items with min-width: 0; */
|
|
15
20
|
min-width: 0;
|
|
@@ -20,6 +25,12 @@
|
|
|
20
25
|
outline-offset: var(--sys-size-2);
|
|
21
26
|
flex-grow: 1;
|
|
22
27
|
align-items: center;
|
|
28
|
+
/* Keeps the title aligned with the title of expandable steps. */
|
|
29
|
+
padding-inline-start: var(--chevron-column-width);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.title-container.action {
|
|
33
|
+
padding-inline-start: 0;
|
|
23
34
|
}
|
|
24
35
|
|
|
25
36
|
.title-container:focus-visible {
|
|
@@ -76,11 +87,11 @@
|
|
|
76
87
|
}
|
|
77
88
|
|
|
78
89
|
.error {
|
|
79
|
-
margin: var(--sys-size-8)
|
|
90
|
+
margin-block-start: var(--sys-size-8);
|
|
91
|
+
margin-inline-start: var(--chevron-column-width);
|
|
80
92
|
padding: var(--sys-size-5);
|
|
81
93
|
background: var(--sys-color-error-container);
|
|
82
94
|
color: var(--sys-color-error);
|
|
83
|
-
position: relative;
|
|
84
95
|
}
|
|
85
96
|
|
|
86
97
|
@keyframes rotate {
|
|
@@ -136,12 +147,13 @@
|
|
|
136
147
|
}
|
|
137
148
|
|
|
138
149
|
.chevron {
|
|
150
|
+
flex-shrink: 0;
|
|
151
|
+
/* Aligns the chevron with the first line of the title. */
|
|
152
|
+
align-self: flex-start;
|
|
153
|
+
margin-block-start: var(--sys-size-4);
|
|
139
154
|
width: var(--sys-size-7);
|
|
140
155
|
height: var(--sys-size-7);
|
|
141
156
|
transition: 200ms;
|
|
142
|
-
position: absolute;
|
|
143
|
-
top: var(--sys-size-7);
|
|
144
|
-
left: var(--sys-size-11);
|
|
145
157
|
transform: rotate(-90deg);
|
|
146
158
|
color: var(--sys-color-on-surface);
|
|
147
159
|
}
|
|
@@ -153,17 +165,13 @@
|
|
|
153
165
|
.details {
|
|
154
166
|
display: none;
|
|
155
167
|
margin-top: var(--sys-size-5);
|
|
156
|
-
|
|
168
|
+
margin-inline-start: var(--chevron-column-width);
|
|
157
169
|
}
|
|
158
170
|
|
|
159
171
|
.expanded .details {
|
|
160
172
|
display: block;
|
|
161
173
|
}
|
|
162
174
|
|
|
163
|
-
.step-details {
|
|
164
|
-
overflow: auto;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
175
|
.summary {
|
|
168
176
|
display: flex;
|
|
169
177
|
flex-flow: row nowrap;
|
|
@@ -190,10 +198,6 @@
|
|
|
190
198
|
border-radius: 0;
|
|
191
199
|
flex-shrink: 0;
|
|
192
200
|
height: var(--sys-size-11);
|
|
193
|
-
|
|
194
|
-
--override-select-menu-show-button-border-radius: 0;
|
|
195
|
-
--override-select-menu-show-button-outline: none;
|
|
196
|
-
--override-select-menu-show-button-padding: 0;
|
|
197
201
|
}
|
|
198
202
|
|
|
199
203
|
.step.has-breakpoint .circle-icon {
|
|
@@ -11,129 +11,105 @@
|
|
|
11
11
|
font-size: inherit;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
/*
|
|
15
|
+
* A row of the timeline. The row, and with it the hover and selection
|
|
16
|
+
* highlight, spans the full width of its container. Embedders can inset the
|
|
17
|
+
* content of the row with the following custom properties:
|
|
18
|
+
* --timeline-section-inset-inline-start
|
|
19
|
+
* --timeline-section-inset-inline-end
|
|
20
|
+
*/
|
|
14
21
|
.timeline-section {
|
|
15
|
-
position: relative;
|
|
16
|
-
padding: var(--sys-size-5) 0 var(--sys-size-5) var(--sys-size-14);
|
|
17
|
-
margin-left: var(--sys-size-5);
|
|
18
|
-
|
|
19
22
|
--override-color-recording-successful-text: #36a854;
|
|
20
|
-
--
|
|
21
|
-
|
|
23
|
+
--timeline-section-padding-block-start: var(--sys-size-5);
|
|
24
|
+
--timeline-section-padding-block-end: var(--sys-size-5);
|
|
25
|
+
/*
|
|
26
|
+
* Offset from the top of the row to the center of the icon. The icon is
|
|
27
|
+
* drawn centered 8px below the top edge of the slotted icon element.
|
|
28
|
+
*/
|
|
29
|
+
--timeline-section-icon-center: calc(var(--timeline-section-padding-block-start) + var(--sys-size-5));
|
|
22
30
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
/* Offset of 32px for spacing and 80px for screenshot */
|
|
28
|
-
left: calc(-1 * var(--sys-size-13) - var(--sys-size-19));
|
|
29
|
-
top: 0;
|
|
30
|
-
z-index: -1;
|
|
31
|
-
pointer-events: none;
|
|
31
|
+
display: grid;
|
|
32
|
+
grid-template-columns: [timeline] var(--sys-size-8) [content] minmax(0, 1fr);
|
|
33
|
+
column-gap: var(--sys-size-8);
|
|
34
|
+
padding-inline: var(--timeline-section-inset-inline-start, 0) var(--timeline-section-inset-inline-end, 0);
|
|
32
35
|
}
|
|
33
36
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
/* Offset of 32px for spacing */
|
|
37
|
-
left: calc(-1 * var(--sys-size-13));
|
|
38
|
-
}
|
|
37
|
+
.timeline-section.is-end-of-group {
|
|
38
|
+
--timeline-section-padding-block-end: var(--sys-size-8);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
:hover
|
|
42
|
-
background: var(--sys-color-state-hover-on-subtle);
|
|
41
|
+
.timeline-section:hover {
|
|
42
|
+
background-color: var(--sys-color-state-hover-on-subtle);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
.is-selected
|
|
46
|
-
background: var(--sys-color-tonal-container);
|
|
45
|
+
.timeline-section.is-selected {
|
|
46
|
+
background-color: var(--sys-color-tonal-container);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
:host-context(.is-stopped) .
|
|
50
|
-
background: var(--sys-color-state-ripple-primary);
|
|
49
|
+
:host-context(.is-stopped) .timeline-section {
|
|
50
|
+
background-color: var(--sys-color-state-ripple-primary);
|
|
51
51
|
outline: var(--sys-size-1) solid var(--sys-color-state-focus-ring);
|
|
52
|
-
z-index: 4;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.is-start-of-group:not(:first-of-type) {
|
|
56
|
-
padding-top: var(--sys-size-8);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.is-end-of-group {
|
|
60
|
-
padding-bottom: var(--sys-size-8);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.icon {
|
|
64
|
-
position: absolute;
|
|
65
|
-
left: var(--sys-size-3);
|
|
66
|
-
transform: translateX(-50%);
|
|
67
|
-
z-index: 2;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.bar {
|
|
71
|
-
position: absolute;
|
|
72
|
-
left: var(--sys-size-3);
|
|
73
|
-
display: block;
|
|
74
|
-
transform: translateX(-50%);
|
|
75
|
-
top: var(--sys-size-8);
|
|
76
|
-
height: 100%;
|
|
77
|
-
z-index: 1; /* We want this to be below of `.overlay` for stopped case */
|
|
78
52
|
}
|
|
79
53
|
|
|
80
|
-
.
|
|
81
|
-
|
|
54
|
+
.timeline {
|
|
55
|
+
grid-column: timeline;
|
|
56
|
+
display: grid;
|
|
57
|
+
/* All parts of the timeline are stacked on top of each other. */
|
|
58
|
+
grid-template-areas: 'timeline';
|
|
82
59
|
}
|
|
83
60
|
|
|
84
|
-
.
|
|
85
|
-
|
|
61
|
+
.timeline > * {
|
|
62
|
+
grid-area: timeline;
|
|
86
63
|
}
|
|
87
64
|
|
|
88
|
-
.
|
|
89
|
-
|
|
90
|
-
|
|
65
|
+
.line {
|
|
66
|
+
justify-self: center;
|
|
67
|
+
width: var(--sys-size-2);
|
|
68
|
+
background-color: var(--sys-color-primary);
|
|
91
69
|
}
|
|
92
70
|
|
|
93
|
-
|
|
94
|
-
|
|
71
|
+
/* Connects the icon to the icon of the previous row. */
|
|
72
|
+
.line-before {
|
|
73
|
+
align-self: start;
|
|
74
|
+
height: var(--timeline-section-icon-center);
|
|
95
75
|
}
|
|
96
76
|
|
|
97
|
-
|
|
98
|
-
|
|
77
|
+
/* Connects the icon to the icon of the next row. */
|
|
78
|
+
.line-after {
|
|
79
|
+
margin-block-start: var(--timeline-section-icon-center);
|
|
99
80
|
}
|
|
100
81
|
|
|
101
|
-
.is-
|
|
102
|
-
|
|
82
|
+
.is-first-section .line-before,
|
|
83
|
+
.is-last-section .line-after {
|
|
84
|
+
visibility: hidden;
|
|
103
85
|
}
|
|
104
86
|
|
|
105
|
-
|
|
106
|
-
|
|
87
|
+
.icon {
|
|
88
|
+
display: flex;
|
|
89
|
+
place-self: start start;
|
|
90
|
+
margin-block-start: var(--timeline-section-padding-block-start);
|
|
107
91
|
}
|
|
108
92
|
|
|
109
|
-
|
|
110
|
-
|
|
93
|
+
.content {
|
|
94
|
+
grid-column: content;
|
|
95
|
+
padding-block: var(--timeline-section-padding-block-start) var(--timeline-section-padding-block-end);
|
|
111
96
|
}
|
|
112
97
|
|
|
113
|
-
:host-context(.
|
|
114
|
-
|
|
98
|
+
:host-context(.is-error) .line-after,
|
|
99
|
+
.is-after-error .line-before {
|
|
100
|
+
background-color: var(--sys-color-error);
|
|
115
101
|
}
|
|
116
102
|
|
|
117
|
-
:host-context(.was-successful) .
|
|
103
|
+
:host-context(.was-successful) .line {
|
|
118
104
|
animation: flash-line 2s;
|
|
119
105
|
}
|
|
120
106
|
|
|
121
|
-
@keyframes flash-background {
|
|
122
|
-
25% {
|
|
123
|
-
fill: var(--override-color-recording-successful-background);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
75% {
|
|
127
|
-
fill: var(--override-color-recording-successful-background);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
107
|
@keyframes flash-line {
|
|
132
108
|
25% {
|
|
133
|
-
|
|
109
|
+
background-color: var(--override-color-recording-successful-text);
|
|
134
110
|
}
|
|
135
111
|
|
|
136
112
|
75% {
|
|
137
|
-
|
|
113
|
+
background-color: var(--override-color-recording-successful-text);
|
|
138
114
|
}
|
|
139
115
|
}
|
|
@@ -187,6 +187,7 @@ const UIStrings = {
|
|
|
187
187
|
} as const;
|
|
188
188
|
const str_ = i18n.i18n.registerUIStrings('panels/sensors/SensorsView.ts', UIStrings);
|
|
189
189
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
190
|
+
const {live} = Directives;
|
|
190
191
|
|
|
191
192
|
export class SensorsView extends UI.Widget.VBox {
|
|
192
193
|
readonly #locationSetting: Common.Settings.Setting<string>;
|
|
@@ -313,19 +314,18 @@ export class SensorsView extends UI.Widget.VBox {
|
|
|
313
314
|
this.locationSelectElement = el as HTMLSelectElement;
|
|
314
315
|
}
|
|
315
316
|
})}
|
|
316
|
-
.selectedIndex=${selectedIndex}
|
|
317
317
|
@change=${this.#locationSelectChanged.bind(this)}
|
|
318
318
|
jslog=${VisualLogging.dropDown().track({change: true})}
|
|
319
319
|
>
|
|
320
|
-
<option value=${NonPresetOptions.NoOverride} jslog=${VisualLogging.item('no-override')}>${i18nString(UIStrings.noOverride)}</option>
|
|
320
|
+
<option value=${NonPresetOptions.NoOverride} .selected=${live(selectedIndex === 0)} jslog=${VisualLogging.item('no-override')}>${i18nString(UIStrings.noOverride)}</option>
|
|
321
321
|
<optgroup label=${i18nString(UIStrings.overrides)}>
|
|
322
|
-
${customLocations.map(customLocation => html`
|
|
323
|
-
<option value=${JSON.stringify(customLocation)} jslog=${VisualLogging.item('custom')}>${customLocation.title}</option>
|
|
322
|
+
${customLocations.map((customLocation, i) => html`
|
|
323
|
+
<option value=${JSON.stringify(customLocation)} .selected=${live(selectedIndex === i + 1)} jslog=${VisualLogging.item('custom')}>${customLocation.title}</option>
|
|
324
324
|
`)}
|
|
325
325
|
</optgroup>
|
|
326
|
-
<option value=${NonPresetOptions.Custom} jslog=${VisualLogging.item('other')}>${i18nString(UIStrings.other)}</option>
|
|
326
|
+
<option value=${NonPresetOptions.Custom} .selected=${live(selectedIndex === customLocations.length + 1)} jslog=${VisualLogging.item('other')}>${i18nString(UIStrings.other)}</option>
|
|
327
327
|
<optgroup label=${i18nString(UIStrings.error)}>
|
|
328
|
-
<option value=${NonPresetOptions.Unavailable} jslog=${VisualLogging.item('unavailable')}>${i18nString(UIStrings.locationUnavailable)}</option>
|
|
328
|
+
<option value=${NonPresetOptions.Unavailable} .selected=${live(selectedIndex === customLocations.length + 2)} jslog=${VisualLogging.item('unavailable')}>${i18nString(UIStrings.locationUnavailable)}</option>
|
|
329
329
|
</optgroup>
|
|
330
330
|
</select>
|
|
331
331
|
<devtools-button
|
|
@@ -1092,25 +1092,10 @@ export const enum DeviceOrientationModificationSource {
|
|
|
1092
1092
|
SELECT_PRESET = 'selectPreset',
|
|
1093
1093
|
}
|
|
1094
1094
|
|
|
1095
|
-
export const PressureOptions = {
|
|
1096
|
-
NoOverride: 'no-override',
|
|
1097
|
-
Nominal: 'nominal',
|
|
1098
|
-
Fair: 'fair',
|
|
1099
|
-
Serious: 'serious',
|
|
1100
|
-
Critical: 'critical',
|
|
1101
|
-
};
|
|
1102
|
-
|
|
1103
1095
|
export const NonPresetOptions = {
|
|
1104
1096
|
NoOverride: 'noOverride',
|
|
1105
1097
|
Custom: 'custom',
|
|
1106
1098
|
Unavailable: 'unavailable',
|
|
1107
1099
|
};
|
|
1108
1100
|
|
|
1109
|
-
export class ShowActionDelegate implements UI.ActionRegistration.ActionDelegate {
|
|
1110
|
-
handleAction(_context: UI.Context.Context, _actionId: string): boolean {
|
|
1111
|
-
void UI.ViewManager.ViewManager.instance().showView('sensors');
|
|
1112
|
-
return true;
|
|
1113
|
-
}
|
|
1114
|
-
}
|
|
1115
|
-
|
|
1116
1101
|
export const ShiftDragOrientationSpeed = 16;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* found in the LICENSE file.
|
|
5
5
|
*/
|
|
6
6
|
@scope to (devtools-widget > *) {
|
|
7
|
+
/* stylelint-disable-next-line plugin/check_scope_selectors */
|
|
7
8
|
:host {
|
|
8
9
|
flex: auto;
|
|
9
10
|
display: flex;
|
|
@@ -177,8 +178,8 @@
|
|
|
177
178
|
background-color: var(--sys-color-tonal-container);
|
|
178
179
|
}
|
|
179
180
|
|
|
180
|
-
.theme-with-dark-background .type-indicator,
|
|
181
|
-
:host-context(.theme-with-dark-background) .type-indicator {
|
|
181
|
+
.theme-with-dark-background .type-indicator, /* stylelint-disable-line plugin/check_scope_selectors */
|
|
182
|
+
:host-context(.theme-with-dark-background) .type-indicator { /* stylelint-disable-line plugin/check_scope_selectors */
|
|
182
183
|
--override-color-conditional-breakpoint: var(--ref-palette-yellow60);
|
|
183
184
|
--override-color-logpoint: var(--ref-palette-pink70);
|
|
184
185
|
}
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
.sources-toolbar {
|
|
14
14
|
display: flex;
|
|
15
15
|
flex: 0 0 auto;
|
|
16
|
-
|
|
16
|
+
/* 28px toolbar height (--sys-size-12) minus 1px top border (--sys-size-1), matching the 26px devtools-toolbar height plus 1px border-top when empty. */
|
|
17
|
+
min-height: calc(var(--sys-size-12) - var(--sys-size-1));
|
|
17
18
|
background-color: var(--sys-color-cdt-base-container);
|
|
18
19
|
border-top: var(--sys-size-1) solid var(--sys-color-divider);
|
|
19
20
|
overflow: hidden;
|