chrome-devtools-frontend 1.0.1538523 → 1.0.1539972
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/eslint.config.mjs +1 -1
- package/front_end/core/common/Debouncer.ts +2 -2
- package/front_end/core/common/Gzip.ts +1 -1
- package/front_end/core/common/Throttler.ts +3 -3
- package/front_end/core/host/GdpClient.ts +4 -0
- package/front_end/core/protocol_client/CDPConnection.ts +12 -10
- package/front_end/core/protocol_client/DevToolsCDPConnection.ts +181 -0
- package/front_end/core/protocol_client/InspectorBackend.ts +55 -249
- package/front_end/core/protocol_client/protocol_client.ts +2 -2
- package/front_end/core/sdk/ChildTargetManager.ts +5 -41
- package/front_end/core/sdk/Connections.ts +9 -58
- package/front_end/core/sdk/DOMModel.ts +1 -0
- package/front_end/core/sdk/DebuggerModel.ts +3 -16
- package/front_end/core/sdk/RehydratingConnection.ts +1 -1
- package/front_end/core/sdk/RemoteObject.ts +4 -0
- package/front_end/core/sdk/Target.ts +3 -6
- package/front_end/core/sdk/TargetManager.ts +1 -2
- package/front_end/entrypoints/lighthouse_worker/LighthouseWorkerService.ts +13 -26
- package/front_end/entrypoints/node_app/{NodeConnectionsPanel.ts → app/NodeConnectionsPanel.ts} +8 -8
- package/front_end/entrypoints/node_app/{NodeMain.ts → app/NodeMain.ts} +12 -11
- package/front_end/entrypoints/node_app/app/app.ts +6 -0
- package/front_end/entrypoints/node_app/node_app.ts +4 -2
- package/front_end/generated/Deprecation.ts +8 -0
- package/front_end/generated/{InspectorBackendCommands.js → InspectorBackendCommands.ts} +18 -36
- package/front_end/generated/SupportedCSSProperties.js +50 -9
- package/front_end/generated/protocol.ts +2 -2
- package/front_end/models/ai_assistance/EvaluateAction.ts +88 -5
- package/front_end/models/ai_assistance/injected.ts +15 -2
- package/front_end/models/live-metrics/web-vitals-injected/README.md +1 -1
- package/front_end/models/trace/Styles.ts +1 -1
- package/front_end/models/trace/handlers/NetworkRequestsHandler.ts +18 -3
- package/front_end/models/trace/types/TraceEvents.ts +19 -0
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +49 -26
- package/front_end/panels/ai_assistance/PatchWidget.ts +22 -12
- package/front_end/panels/ai_assistance/aiAssistancePanel.css +1 -1
- package/front_end/panels/ai_assistance/ai_assistance.ts +1 -0
- package/front_end/panels/ai_assistance/components/ChatView.ts +2 -135
- package/front_end/panels/ai_assistance/components/DisabledWidget.ts +170 -0
- package/front_end/panels/ai_assistance/components/ExploreWidget.ts +4 -4
- package/front_end/panels/ai_assistance/components/chatView.css +0 -31
- package/front_end/panels/ai_assistance/components/disabledWidget.css +45 -0
- package/front_end/panels/animation/AnimationTimeline.ts +1 -1
- package/front_end/panels/application/components/FrameDetailsView.ts +1 -1
- package/front_end/panels/common/AiCodeCompletionDisclaimer.ts +4 -4
- package/front_end/panels/common/AiCodeCompletionSummaryToolbar.ts +2 -2
- package/front_end/panels/console/ConsoleViewMessage.ts +1 -1
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +3 -3
- package/front_end/panels/elements/ElementsTreeElement.ts +123 -95
- package/front_end/panels/elements/ElementsTreeOutline.ts +2 -2
- package/front_end/panels/elements/NodeStackTraceWidget.ts +8 -2
- package/front_end/panels/elements/PropertiesWidget.ts +3 -2
- package/front_end/panels/event_listeners/EventListenersView.ts +9 -5
- package/front_end/panels/explain/components/ConsoleInsight.ts +2 -3
- package/front_end/panels/lighthouse/LighthouseProtocolService.ts +57 -33
- package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorController.ts +2 -2
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.ts +1 -1
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryNavigator.ts +12 -5
- package/front_end/panels/network/RequestInitiatorView.ts +1 -1
- package/front_end/panels/network/RequestPayloadView.ts +2 -1
- package/front_end/panels/network/RequestTimingView.ts +4 -2
- package/front_end/panels/network/components/EditableSpan.ts +1 -1
- package/front_end/panels/network/components/RequestHeadersView.ts +24 -17
- package/front_end/panels/protocol_monitor/JSONEditor.ts +2 -2
- package/front_end/panels/recorder/RecorderController.ts +6 -7
- package/front_end/panels/recorder/components/StepView.ts +1 -1
- package/front_end/panels/recorder/models/RecordingPlayer.ts +7 -6
- package/front_end/panels/settings/components/SyncSection.ts +1 -1
- package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +4 -4
- package/front_end/panels/sources/BreakpointsView.ts +3 -3
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +4 -3
- package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +3 -2
- package/front_end/panels/timeline/TimelineFlameChartView.ts +10 -10
- package/front_end/panels/timeline/TimelinePanel.ts +3 -3
- package/front_end/panels/timeline/TimelineUIUtils.ts +21 -24
- package/front_end/panels/timeline/components/FieldSettingsDialog.ts +9 -5
- package/front_end/panels/timeline/components/LiveMetricsView.ts +20 -9
- package/front_end/panels/timeline/components/MetricCard.ts +4 -2
- package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +3 -2
- package/front_end/panels/utils/utils.ts +4 -2
- package/front_end/services/puppeteer/PuppeteerConnection.ts +57 -53
- 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/cjs/puppeteer/api/Browser.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.js +4 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts +5 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BidiOverCdp.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BidiOverCdp.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BidiOverCdp.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.js +4 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Connection.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Connection.js +3 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js +29 -9
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js +11 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js +9 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.js +21 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.js +4 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CdpSession.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CdpSession.js +2 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CdpSession.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.d.ts +6 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.js +11 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExtensionTransport.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExtensionTransport.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExtensionTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js +6 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.js +29 -27
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.js +4 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConnectOptions.d.ts +7 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConnectOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js +10 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +14 -3
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +97 -43
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.js +4 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts +5 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BidiOverCdp.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BidiOverCdp.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BidiOverCdp.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserConnector.js +4 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Connection.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Connection.js +3 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js +29 -9
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.js +11 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js +9 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.js +21 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.js +4 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CdpSession.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CdpSession.js +2 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CdpSession.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.d.ts +6 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.js +11 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExtensionTransport.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExtensionTransport.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExtensionTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js +6 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.js +30 -28
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.js +4 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectOptions.d.ts +7 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js +10 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +14 -3
- package/front_end/third_party/puppeteer/package/package.json +3 -3
- package/front_end/third_party/puppeteer/package/src/api/Browser.ts +4 -2
- package/front_end/third_party/puppeteer/package/src/api/BrowserContext.ts +3 -1
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +6 -0
- package/front_end/third_party/puppeteer/package/src/bidi/BidiOverCdp.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/bidi/BrowserConnector.ts +8 -1
- package/front_end/third_party/puppeteer/package/src/bidi/BrowserContext.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/bidi/Connection.ts +4 -1
- package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +38 -10
- package/front_end/third_party/puppeteer/package/src/bidi/core/BrowsingContext.ts +13 -0
- package/front_end/third_party/puppeteer/package/src/cdp/Accessibility.ts +8 -2
- package/front_end/third_party/puppeteer/package/src/cdp/Browser.ts +32 -0
- package/front_end/third_party/puppeteer/package/src/cdp/BrowserConnector.ts +4 -0
- package/front_end/third_party/puppeteer/package/src/cdp/BrowserContext.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/cdp/CdpSession.ts +2 -1
- package/front_end/third_party/puppeteer/package/src/cdp/Connection.ts +15 -1
- package/front_end/third_party/puppeteer/package/src/cdp/ExtensionTransport.ts +5 -1
- package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +8 -0
- package/front_end/third_party/puppeteer/package/src/cdp/TargetManager.ts +36 -43
- package/front_end/third_party/puppeteer/package/src/common/CallbackRegistry.ts +7 -5
- package/front_end/third_party/puppeteer/package/src/common/ConnectOptions.ts +8 -0
- package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +22 -1
- package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
- package/front_end/ui/components/dialogs/ButtonDialog.ts +15 -5
- package/front_end/ui/components/expandable_list/ExpandableList.ts +1 -1
- package/front_end/ui/components/helpers/helpers.ts +0 -2
- package/front_end/ui/components/menus/Menu.ts +5 -3
- package/front_end/ui/components/panel_feedback/PreviewToggle.ts +1 -1
- package/front_end/ui/components/survey_link/SurveyLink.docs.ts +22 -0
- package/front_end/ui/components/switch/Switch.docs.ts +38 -0
- package/front_end/ui/components/tooltips/Tooltip.ts +69 -45
- package/front_end/ui/components/tree_outline/TreeOutline.ts +1 -2
- package/front_end/ui/legacy/SelectMenu.docs.ts +14 -0
- package/front_end/ui/legacy/Slider.docs.ts +49 -0
- package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +3 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +453 -347
- package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +77 -5
- package/front_end/ui/legacy/components/utils/Linkifier.ts +62 -3
- package/front_end/ui/visual_logging/KnownContextValues.ts +8 -0
- package/package.json +1 -1
- package/front_end/core/protocol_client/NodeURL.ts +0 -42
- package/front_end/third_party/puppeteer/package/src/templates/version.ts.tmpl +0 -4
- package/front_end/ui/components/docs/color_swatch/basic.html +0 -32
- package/front_end/ui/components/docs/color_swatch/basic.ts +0 -38
- package/front_end/ui/components/docs/color_swatch/change-color.html +0 -24
- package/front_end/ui/components/docs/color_swatch/change-color.ts +0 -28
- package/front_end/ui/components/docs/combo_box/basic.html +0 -20
- package/front_end/ui/components/docs/combo_box/basic.ts +0 -49
- package/front_end/ui/components/docs/computed_style_property/basic.html +0 -25
- package/front_end/ui/components/docs/computed_style_property/basic.ts +0 -19
- package/front_end/ui/components/docs/computed_style_property/traceable.html +0 -25
- package/front_end/ui/components/docs/computed_style_property/traceable.ts +0 -16
- package/front_end/ui/components/docs/computed_style_trace/basic.html +0 -25
- package/front_end/ui/components/docs/computed_style_trace/basic.ts +0 -24
- package/front_end/ui/components/docs/console_insight/basic.html +0 -28
- package/front_end/ui/components/docs/console_insight/basic.ts +0 -103
- package/front_end/ui/components/docs/console_insight/error.html +0 -28
- package/front_end/ui/components/docs/console_insight/error.ts +0 -33
- package/front_end/ui/components/docs/console_insight/loading.html +0 -28
- package/front_end/ui/components/docs/console_insight/loading.ts +0 -47
- package/front_end/ui/components/docs/elements_breadcrumbs/basic.html +0 -43
- package/front_end/ui/components/docs/elements_breadcrumbs/basic.ts +0 -54
- package/front_end/ui/components/docs/elements_breadcrumbs/helpers.ts +0 -29
- package/front_end/ui/components/docs/elements_breadcrumbs/scroll-to-active-element.html +0 -38
- package/front_end/ui/components/docs/elements_breadcrumbs/scroll-to-active-element.ts +0 -90
- package/front_end/ui/components/docs/elements_breadcrumbs/scroll.html +0 -29
- package/front_end/ui/components/docs/elements_breadcrumbs/scroll.ts +0 -62
- package/front_end/ui/components/docs/icon_button/basic.html +0 -34
- package/front_end/ui/components/docs/icon_button/basic.ts +0 -67
- package/front_end/ui/components/docs/issue_counter/basic.html +0 -35
- package/front_end/ui/components/docs/issue_counter/basic.ts +0 -34
- package/front_end/ui/components/docs/issue_link_icon/basic.html +0 -31
- package/front_end/ui/components/docs/issue_link_icon/basic.ts +0 -26
- package/front_end/ui/components/docs/legacy_color_invert/basic.html +0 -77
- package/front_end/ui/components/docs/legacy_color_invert/basic.ts +0 -98
- package/front_end/ui/components/docs/linear_memory_inspector/basic.html +0 -26
- package/front_end/ui/components/docs/linear_memory_inspector/basic.ts +0 -44
- package/front_end/ui/components/docs/menu/basic.html +0 -28
- package/front_end/ui/components/docs/menu/basic.ts +0 -66
- package/front_end/ui/components/docs/recorder_control_button/basic.html +0 -20
- package/front_end/ui/components/docs/recorder_control_button/basic.ts +0 -15
- package/front_end/ui/components/docs/recorder_recording_list_view/basic.html +0 -20
- package/front_end/ui/components/docs/recorder_recording_list_view/basic.ts +0 -26
- package/front_end/ui/components/docs/recorder_select_button/basic.html +0 -20
- package/front_end/ui/components/docs/recorder_select_button/basic.ts +0 -81
- package/front_end/ui/components/docs/recorder_split_view/basic.html +0 -17
- package/front_end/ui/components/docs/recorder_split_view/basic.ts +0 -22
- package/front_end/ui/components/docs/request_link_icon/basic.html +0 -31
- package/front_end/ui/components/docs/request_link_icon/basic.ts +0 -21
- package/front_end/ui/components/docs/slider/basic.ts +0 -62
- package/front_end/ui/components/docs/style_property_editor/flex.html +0 -21
- package/front_end/ui/components/docs/style_property_editor/flex.ts +0 -52
- package/front_end/ui/components/docs/style_property_editor/grid.html +0 -22
- package/front_end/ui/components/docs/style_property_editor/grid.ts +0 -50
- package/front_end/ui/components/docs/style_property_editor/masonry.html +0 -21
- package/front_end/ui/components/docs/style_property_editor/masonry.ts +0 -50
- package/front_end/ui/components/docs/survey_link/basic.html +0 -20
- package/front_end/ui/components/docs/survey_link/basic.ts +0 -28
- package/front_end/ui/components/docs/switch/basic.ts +0 -51
- package/front_end/ui/components/docs/tree_outline/basic.html +0 -33
- package/front_end/ui/components/docs/tree_outline/basic.ts +0 -38
- package/front_end/ui/components/docs/tree_outline/custom-renderers.html +0 -32
- package/front_end/ui/components/docs/tree_outline/custom-renderers.ts +0 -61
- package/front_end/ui/components/docs/tree_outline/lazy-children.html +0 -32
- package/front_end/ui/components/docs/tree_outline/lazy-children.ts +0 -91
- package/front_end/ui/components/docs/tree_outline/sample-data.ts +0 -67
- package/front_end/ui/components/helpers/directives.ts +0 -38
- /package/front_end/entrypoints/node_app/{nodeConnectionsPanel.css → app/nodeConnectionsPanel.css} +0 -0
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
// Copyright 2021 The Chromium Authors
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
|
|
5
|
-
import * as IconButton from '../../icon_button/icon_button.js';
|
|
6
|
-
|
|
7
|
-
function appendComponent(data: IconButton.IconButton.IconButtonData) {
|
|
8
|
-
const component = new IconButton.IconButton.IconButton();
|
|
9
|
-
component.data = data;
|
|
10
|
-
document.getElementById('container')?.appendChild(component);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
appendComponent({
|
|
14
|
-
clickHandler: () => {},
|
|
15
|
-
groups: [{iconName: 'review', iconColor: 'var(--icon-default)', text: '1 item'}],
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
appendComponent({
|
|
19
|
-
clickHandler: () => {},
|
|
20
|
-
groups: [
|
|
21
|
-
{iconName: 'review', iconColor: 'var(--icon-primary)', text: 'Test'},
|
|
22
|
-
{iconName: 'warning-filled', iconColor: '', text: '1'},
|
|
23
|
-
],
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
appendComponent({
|
|
27
|
-
clickHandler: () => {},
|
|
28
|
-
groups: [
|
|
29
|
-
{iconName: 'issue-exclamation-filled', iconColor: 'yellow', text: '23', iconHeight: '2ex', iconWidth: '2ex'},
|
|
30
|
-
{iconName: 'issue-text-filled', iconColor: 'blue', text: '1'},
|
|
31
|
-
],
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
appendComponent({
|
|
35
|
-
groups: [
|
|
36
|
-
{iconName: 'issue-exclamation-filled', iconColor: 'yellow', text: '23'},
|
|
37
|
-
{iconName: 'issue-text-filled', iconColor: 'blue', text: '1'},
|
|
38
|
-
],
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
appendComponent({
|
|
42
|
-
clickHandler: () => {},
|
|
43
|
-
groups: [
|
|
44
|
-
{iconName: 'issue-exclamation-filled', iconColor: 'yellow', text: '23'},
|
|
45
|
-
{iconName: 'issue-text-filled', iconColor: 'blue', text: '1'},
|
|
46
|
-
],
|
|
47
|
-
trailingText: 'Issues',
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
appendComponent({
|
|
51
|
-
clickHandler: () => {},
|
|
52
|
-
groups: [
|
|
53
|
-
{iconName: 'issue-exclamation-filled', iconColor: 'yellow', text: '23'},
|
|
54
|
-
{iconName: 'issue-text-filled', iconColor: 'blue', text: '1'},
|
|
55
|
-
],
|
|
56
|
-
leadingText: 'Issues:',
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
appendComponent({
|
|
60
|
-
clickHandler: () => {},
|
|
61
|
-
groups: [
|
|
62
|
-
{iconName: 'issue-exclamation-filled', iconColor: 'yellow', text: '23'},
|
|
63
|
-
{iconName: 'issue-text-filled', iconColor: 'blue', text: '1'},
|
|
64
|
-
],
|
|
65
|
-
leadingText: 'Issues:',
|
|
66
|
-
compact: true,
|
|
67
|
-
});
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Copyright 2021 The Chromium Authors
|
|
3
|
-
Use of this source code is governed by a BSD-style license that can be
|
|
4
|
-
found in the LICENSE file.
|
|
5
|
-
-->
|
|
6
|
-
<!DOCTYPE html>
|
|
7
|
-
<html>
|
|
8
|
-
|
|
9
|
-
<head>
|
|
10
|
-
<meta charset="UTF-8" />
|
|
11
|
-
<meta name="viewport" content="width=device-width" />
|
|
12
|
-
<title>Basic Issue Counter example</title>
|
|
13
|
-
<style>
|
|
14
|
-
#container {
|
|
15
|
-
width: 80%;
|
|
16
|
-
border: 1px solid black;
|
|
17
|
-
padding: 20px;
|
|
18
|
-
height: 300px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
#container > devtools-issue-counter {
|
|
22
|
-
vertical-align: middle;
|
|
23
|
-
}
|
|
24
|
-
</style>
|
|
25
|
-
</head>
|
|
26
|
-
|
|
27
|
-
<body>
|
|
28
|
-
<div id="container">
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
<ul id="events"></ul>
|
|
32
|
-
<script type="module" src="./basic.js"></script>
|
|
33
|
-
</body>
|
|
34
|
-
|
|
35
|
-
</html>
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
// Copyright 2021 The Chromium Authors
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
|
|
5
|
-
import type * as IssuesManager from '../../../../models/issues_manager/issues_manager.js';
|
|
6
|
-
import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
|
|
7
|
-
import type * as IssueCounterModule from '../../../../ui/components/issue_counter/issue_counter.js';
|
|
8
|
-
import * as ComponentHelpers from '../../helpers/helpers.js';
|
|
9
|
-
|
|
10
|
-
await ComponentHelpers.ComponentServerSetup.setup();
|
|
11
|
-
await FrontendHelpers.initializeGlobalVars();
|
|
12
|
-
|
|
13
|
-
const IssueCounter: typeof IssueCounterModule =
|
|
14
|
-
await import('../../../../ui/components/issue_counter/issue_counter.js');
|
|
15
|
-
|
|
16
|
-
function appendComponent(data: IssueCounterModule.IssueCounter.IssueCounterData) {
|
|
17
|
-
const component = new IssueCounter.IssueCounter.IssueCounter();
|
|
18
|
-
component.data = data;
|
|
19
|
-
document.getElementById('container')?.appendChild(component);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const mockIssueManager = {
|
|
23
|
-
addEventListener(): void{},
|
|
24
|
-
removeEventListener(): void{},
|
|
25
|
-
numberOfIssues(): number {
|
|
26
|
-
return 1;
|
|
27
|
-
},
|
|
28
|
-
} as unknown as IssuesManager.IssuesManager.IssuesManager;
|
|
29
|
-
|
|
30
|
-
appendComponent({issuesManager: mockIssueManager});
|
|
31
|
-
|
|
32
|
-
appendComponent({issuesManager: mockIssueManager, clickHandler: () => {}});
|
|
33
|
-
|
|
34
|
-
appendComponent({issuesManager: mockIssueManager, clickHandler: () => {}, compact: true});
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Copyright 2021 The Chromium Authors
|
|
3
|
-
Use of this source code is governed by a BSD-style license that can be
|
|
4
|
-
found in the LICENSE file.
|
|
5
|
-
-->
|
|
6
|
-
<!DOCTYPE html>
|
|
7
|
-
<html>
|
|
8
|
-
|
|
9
|
-
<head>
|
|
10
|
-
<meta charset="UTF-8" />
|
|
11
|
-
<meta name="viewport" content="width=device-width" />
|
|
12
|
-
<title>Basic Request Link Icon example</title>
|
|
13
|
-
<style>
|
|
14
|
-
#container {
|
|
15
|
-
width: 80%;
|
|
16
|
-
border: 1px solid black;
|
|
17
|
-
padding: 20px;
|
|
18
|
-
height: 300px;
|
|
19
|
-
}
|
|
20
|
-
</style>
|
|
21
|
-
</head>
|
|
22
|
-
|
|
23
|
-
<body>
|
|
24
|
-
<div id="container">
|
|
25
|
-
</div>
|
|
26
|
-
|
|
27
|
-
<ul id="events"></ul>
|
|
28
|
-
<script type="module" src="./basic.js"></script>
|
|
29
|
-
</body>
|
|
30
|
-
|
|
31
|
-
</html>
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// Copyright 2021 The Chromium Authors
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
|
|
5
|
-
import type * as Protocol from '../../../../generated/protocol.js';
|
|
6
|
-
import type * as IssuesManager from '../../../../models/issues_manager/issues_manager.js';
|
|
7
|
-
import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
|
|
8
|
-
import type * as IssueCounterModule from '../../../../ui/components/issue_counter/issue_counter.js';
|
|
9
|
-
import * as ComponentHelpers from '../../helpers/helpers.js';
|
|
10
|
-
|
|
11
|
-
await ComponentHelpers.ComponentServerSetup.setup();
|
|
12
|
-
await FrontendHelpers.initializeGlobalVars();
|
|
13
|
-
|
|
14
|
-
const IssueLinkIcon: typeof IssueCounterModule =
|
|
15
|
-
await import('../../../../ui/components/issue_counter/issue_counter.js');
|
|
16
|
-
|
|
17
|
-
function appendComponent(data: IssueCounterModule.IssueLinkIcon.IssueLinkIconData) {
|
|
18
|
-
const component = new IssueLinkIcon.IssueLinkIcon.IssueLinkIcon();
|
|
19
|
-
component.data = data;
|
|
20
|
-
document.getElementById('container')?.appendChild(component);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
appendComponent({
|
|
24
|
-
issueId: 'fakeid' as Protocol.Audits.IssueId,
|
|
25
|
-
issueResolver: {waitFor: () => new Promise(() => {})} as unknown as IssuesManager.IssueResolver.IssueResolver,
|
|
26
|
-
});
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Copyright 2020 The Chromium Authors
|
|
3
|
-
Use of this source code is governed by a BSD-style license that can be
|
|
4
|
-
found in the LICENSE file.
|
|
5
|
-
-->
|
|
6
|
-
<!DOCTYPE html>
|
|
7
|
-
<html>
|
|
8
|
-
<head>
|
|
9
|
-
<meta charset="UTF-8" />
|
|
10
|
-
<meta name="viewport" content="width=device-width" />
|
|
11
|
-
<title>Legacy color input</title>
|
|
12
|
-
<style>
|
|
13
|
-
#container {
|
|
14
|
-
margin: 20px;
|
|
15
|
-
padding: 0;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
form {
|
|
19
|
-
display: flex;
|
|
20
|
-
align-items: flex-end;
|
|
21
|
-
margin-bottom: 20px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
form input[type="submit"] {
|
|
25
|
-
margin-left: 20px;
|
|
26
|
-
padding: 10px;
|
|
27
|
-
font-size: 20px;
|
|
28
|
-
background: var(--sys-color-primary);
|
|
29
|
-
color: #fff;
|
|
30
|
-
border: 1px solid var(--sys-color-divider);
|
|
31
|
-
cursor: pointer;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
form input[type="submit"]:hover {
|
|
35
|
-
background: var(--color-primary-variant);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.text-input, span, pre {
|
|
39
|
-
display: block;
|
|
40
|
-
font-size: 16px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.text-input input {
|
|
44
|
-
display: block;
|
|
45
|
-
margin: 10px 0 0 0;
|
|
46
|
-
padding: 10px;
|
|
47
|
-
border: 1px solid #ccc;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
pre {
|
|
51
|
-
margin: 10px 0;
|
|
52
|
-
padding: 10px;
|
|
53
|
-
border: 1px solid #ccc;
|
|
54
|
-
user-select: all !important;
|
|
55
|
-
}
|
|
56
|
-
</style>
|
|
57
|
-
</head>
|
|
58
|
-
<body>
|
|
59
|
-
<script type="module" src="./basic.js"></script>
|
|
60
|
-
<div id="container">
|
|
61
|
-
<form>
|
|
62
|
-
<label class="text-input">
|
|
63
|
-
CSS property:
|
|
64
|
-
<input type="text" id="css-property" placeholder="background-color"/>
|
|
65
|
-
</label>
|
|
66
|
-
<label class="text-input">
|
|
67
|
-
CSS value:
|
|
68
|
-
<input type="text" id="css-value" placeholder="rgb(10 10 10)"/>
|
|
69
|
-
</label>
|
|
70
|
-
<input type="submit" value="Go!" />
|
|
71
|
-
</form>
|
|
72
|
-
|
|
73
|
-
<span>Dark mode legacy value:</span>
|
|
74
|
-
<pre><code id="output"></code></pre>
|
|
75
|
-
</div>
|
|
76
|
-
</body>
|
|
77
|
-
</html>
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
// Copyright 2020 The Chromium Authors
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
|
|
5
|
-
import * as Common from '../../../../core/common/common.js';
|
|
6
|
-
import * as Platform from '../../../../core/platform/platform.js';
|
|
7
|
-
import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
|
|
8
|
-
import * as ComponentHelpers from '../../helpers/helpers.js';
|
|
9
|
-
|
|
10
|
-
await ComponentHelpers.ComponentServerSetup.setup();
|
|
11
|
-
await FrontendHelpers.initializeGlobalVars();
|
|
12
|
-
|
|
13
|
-
const form = document.querySelector<HTMLFormElement>('form');
|
|
14
|
-
if (!form) {
|
|
15
|
-
throw new Error('could not find form');
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
form.addEventListener('submit', event => {
|
|
19
|
-
event.preventDefault();
|
|
20
|
-
const property = form.querySelector<HTMLInputElement>('#css-property')?.value;
|
|
21
|
-
const value = form.querySelector<HTMLInputElement>('#css-value')?.value;
|
|
22
|
-
if (!property || !value) {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
const output = legacyInvertVariableForDarkMode(property, value);
|
|
26
|
-
const outputElem = document.querySelector<HTMLElement>('#output');
|
|
27
|
-
if (outputElem) {
|
|
28
|
-
outputElem.innerText = output;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* This code is largely copy and pasted from the legacy ThemeSupport
|
|
34
|
-
* around color patching. This is because we are working towards removing the
|
|
35
|
-
* legacy color patching, but still may need to be able to generate legacy dark
|
|
36
|
-
* mode values for light colors during the migration. This doc exists for that
|
|
37
|
-
* reason.
|
|
38
|
-
*/
|
|
39
|
-
|
|
40
|
-
type ColorUsage = 'unknown'|'foreground'|'background';
|
|
41
|
-
|
|
42
|
-
function patchHSLA(hsla: number[], colorUsage: ColorUsage): void {
|
|
43
|
-
const hue = hsla[0];
|
|
44
|
-
const sat = hsla[1];
|
|
45
|
-
let lit: number = hsla[2];
|
|
46
|
-
const alpha = hsla[3];
|
|
47
|
-
|
|
48
|
-
const minCap = colorUsage === 'background' ? 0.14 : 0;
|
|
49
|
-
const maxCap = colorUsage === 'foreground' ? 0.9 : 1;
|
|
50
|
-
lit = 1 - lit;
|
|
51
|
-
if (lit < minCap * 2) {
|
|
52
|
-
lit = minCap + lit / 2;
|
|
53
|
-
} else if (lit > 2 * maxCap - 1) {
|
|
54
|
-
lit = maxCap - 1 / 2 + lit / 2;
|
|
55
|
-
}
|
|
56
|
-
hsla[0] = Platform.NumberUtilities.clamp(hue, 0, 1);
|
|
57
|
-
hsla[1] = Platform.NumberUtilities.clamp(sat, 0, 1);
|
|
58
|
-
hsla[2] = Platform.NumberUtilities.clamp(lit, 0, 1);
|
|
59
|
-
hsla[3] = Platform.NumberUtilities.clamp(alpha, 0, 1);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
function patchColor(colorAsText: string, colorUsage: ColorUsage): string {
|
|
63
|
-
const color = Common.Color.parse(colorAsText)?.as(Common.Color.Format.HSL);
|
|
64
|
-
if (!color) {
|
|
65
|
-
return colorAsText;
|
|
66
|
-
}
|
|
67
|
-
const hsla: Common.ColorUtils.Color4D = [color.h, color.s, color.l, color.alpha ?? 1];
|
|
68
|
-
patchHSLA(hsla, colorUsage);
|
|
69
|
-
|
|
70
|
-
const rgba = Common.Color.hsl2rgb(hsla);
|
|
71
|
-
const outColor = new Common.Color.Legacy(rgba, Common.Color.Format.RGBA);
|
|
72
|
-
let outText = outColor.asString();
|
|
73
|
-
if (!outText) {
|
|
74
|
-
outText = outColor.asString(outColor.hasAlpha() ? Common.Color.Format.RGBA : Common.Color.Format.RGB);
|
|
75
|
-
}
|
|
76
|
-
return outText || colorAsText;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
function legacyInvertVariableForDarkMode(cssProperty: string, cssValue: string): string {
|
|
80
|
-
let colorUsage: ColorUsage = 'unknown';
|
|
81
|
-
if (cssProperty.indexOf('background') === 0 || cssProperty.indexOf('border') === 0) {
|
|
82
|
-
colorUsage = 'background';
|
|
83
|
-
}
|
|
84
|
-
if (cssProperty.indexOf('background') === -1) {
|
|
85
|
-
colorUsage = 'foreground';
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
const items = cssValue.replace(Common.Color.Regex, '\0$1\0').split('\0');
|
|
89
|
-
const output = [];
|
|
90
|
-
for (const item of items) {
|
|
91
|
-
if (!item) {
|
|
92
|
-
continue;
|
|
93
|
-
}
|
|
94
|
-
const newColor = patchColor(item, colorUsage);
|
|
95
|
-
output.push(newColor);
|
|
96
|
-
}
|
|
97
|
-
return output.join(' ');
|
|
98
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Copyright 2020 The Chromium Authors
|
|
3
|
-
Use of this source code is governed by a BSD-style license that can be
|
|
4
|
-
found in the LICENSE file.
|
|
5
|
-
-->
|
|
6
|
-
<!DOCTYPE html>
|
|
7
|
-
<html>
|
|
8
|
-
<head>
|
|
9
|
-
<meta charset="UTF-8" />
|
|
10
|
-
<meta name="viewport" content="width=device-width" />
|
|
11
|
-
<title>Linear memory inspector example</title>
|
|
12
|
-
<style>
|
|
13
|
-
#container {
|
|
14
|
-
width: 850px;
|
|
15
|
-
height: 400px;
|
|
16
|
-
border: 1px solid black;
|
|
17
|
-
display: flex;
|
|
18
|
-
}
|
|
19
|
-
</style>
|
|
20
|
-
</head>
|
|
21
|
-
<body>
|
|
22
|
-
<div id="container">
|
|
23
|
-
</div>
|
|
24
|
-
<script type="module" src="./basic.js"></script>
|
|
25
|
-
</body>
|
|
26
|
-
</html>
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
// Copyright 2020 The Chromium Authors
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
|
|
5
|
-
import * as LinearMemoryInspectorComponents from '../../../../panels/linear_memory_inspector/components/components.js';
|
|
6
|
-
import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
|
|
7
|
-
import * as UI from '../../../legacy/legacy.js';
|
|
8
|
-
import * as Lit from '../../../lit/lit.js';
|
|
9
|
-
import * as ComponentHelpers from '../../helpers/helpers.js';
|
|
10
|
-
|
|
11
|
-
await ComponentHelpers.ComponentServerSetup.setup();
|
|
12
|
-
await FrontendHelpers.initializeGlobalVars();
|
|
13
|
-
|
|
14
|
-
const {render, html} = Lit;
|
|
15
|
-
const {widgetConfig} = UI.Widget;
|
|
16
|
-
|
|
17
|
-
const array = [];
|
|
18
|
-
const string = 'Hello this is a string from the memory buffer!';
|
|
19
|
-
|
|
20
|
-
for (let i = 0; i < string.length; ++i) {
|
|
21
|
-
array.push(string.charCodeAt(i));
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
for (let i = -1000; i < 1000; ++i) {
|
|
25
|
-
array.push(i);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
const memory = new Uint8Array(array);
|
|
29
|
-
|
|
30
|
-
const container = document.getElementById('container');
|
|
31
|
-
if (container) {
|
|
32
|
-
render(
|
|
33
|
-
html`
|
|
34
|
-
<devtools-widget .widgetConfig=${
|
|
35
|
-
widgetConfig(LinearMemoryInspectorComponents.LinearMemoryInspector.LinearMemoryInspector, {
|
|
36
|
-
memory,
|
|
37
|
-
address: 0,
|
|
38
|
-
memoryOffset: 0,
|
|
39
|
-
outerMemoryLength: memory.length,
|
|
40
|
-
})}>
|
|
41
|
-
</devtools-widget>
|
|
42
|
-
`,
|
|
43
|
-
container);
|
|
44
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Copyright 2023 The Chromium Authors
|
|
3
|
-
Use of this source code is governed by a BSD-style license that can be
|
|
4
|
-
found in the LICENSE file.
|
|
5
|
-
-->
|
|
6
|
-
<!DOCTYPE html>
|
|
7
|
-
<html>
|
|
8
|
-
|
|
9
|
-
<head>
|
|
10
|
-
<meta charset="UTF-8" />
|
|
11
|
-
<meta name="viewport" content="width=device-width" />
|
|
12
|
-
<title>Menu example</title>
|
|
13
|
-
<style>
|
|
14
|
-
#root {
|
|
15
|
-
display: flex;
|
|
16
|
-
align-items: center;
|
|
17
|
-
justify-content: center;
|
|
18
|
-
height: 50%;
|
|
19
|
-
}
|
|
20
|
-
</style>
|
|
21
|
-
</head>
|
|
22
|
-
|
|
23
|
-
<body>
|
|
24
|
-
<div id="root"></div>
|
|
25
|
-
<script src="./basic.js" type="module"></script>
|
|
26
|
-
</body>
|
|
27
|
-
|
|
28
|
-
</html>
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
// Copyright 2023 The Chromium Authors
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
|
|
5
|
-
import * as Menus from '../../../../ui/components/menus/menus.js';
|
|
6
|
-
|
|
7
|
-
const menuItems = [
|
|
8
|
-
{
|
|
9
|
-
name: 'Opt 1',
|
|
10
|
-
value: '1',
|
|
11
|
-
selected: true,
|
|
12
|
-
group: '',
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
name: 'Opt 2',
|
|
16
|
-
value: '2',
|
|
17
|
-
group: '',
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
name: 'Opt 3',
|
|
21
|
-
value: '3',
|
|
22
|
-
group: '',
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
name: 'Opt 4',
|
|
26
|
-
value: '4',
|
|
27
|
-
group: '',
|
|
28
|
-
},
|
|
29
|
-
];
|
|
30
|
-
const root = document.getElementById('root');
|
|
31
|
-
const button = document.createElement('button');
|
|
32
|
-
button.innerText = 'Toggle menu';
|
|
33
|
-
|
|
34
|
-
const menu = new Menus.Menu.Menu();
|
|
35
|
-
menu.origin = button;
|
|
36
|
-
menu.open = false;
|
|
37
|
-
menu.showDivider = true;
|
|
38
|
-
|
|
39
|
-
menuItems.forEach(item => {
|
|
40
|
-
const menuItem = new Menus.Menu.MenuItem();
|
|
41
|
-
menuItem.value = item.value;
|
|
42
|
-
menuItem.selected = Boolean(item.selected);
|
|
43
|
-
const itemContent = document.createElement('div');
|
|
44
|
-
itemContent.textContent = item.name;
|
|
45
|
-
menuItem.appendChild(itemContent);
|
|
46
|
-
menu.appendChild(menuItem);
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
menu.addEventListener('menuitemselected', evt => {
|
|
50
|
-
menu.querySelectorAll('devtools-menu-item').forEach(item => {
|
|
51
|
-
item.selected = item.value === evt.itemValue;
|
|
52
|
-
});
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
menu.addEventListener('menucloserequest', _evt => {
|
|
56
|
-
menu.open = false;
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
button.addEventListener('click', _menuEvent => {
|
|
60
|
-
menu.open = !menu.open;
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
if (root) {
|
|
64
|
-
root.appendChild(menu);
|
|
65
|
-
root.appendChild(button);
|
|
66
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Copyright 2023 The Chromium Authors
|
|
3
|
-
Use of this source code is governed by a BSD-style license that can be
|
|
4
|
-
found in the LICENSE file.
|
|
5
|
-
-->
|
|
6
|
-
<!DOCTYPE html>
|
|
7
|
-
<html>
|
|
8
|
-
|
|
9
|
-
<head>
|
|
10
|
-
<meta charset="UTF-8" />
|
|
11
|
-
<meta name="viewport" content="width=device-width" />
|
|
12
|
-
<title>Recorder: ControlButton</title>
|
|
13
|
-
</head>
|
|
14
|
-
|
|
15
|
-
<body>
|
|
16
|
-
<div id="container"></div>
|
|
17
|
-
<script src="./basic.js" type="module"></script>
|
|
18
|
-
</body>
|
|
19
|
-
|
|
20
|
-
</html>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// Copyright 2023 The Chromium Authors
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
|
|
5
|
-
import * as ComponentHelpers from '../../../../../front_end/ui/components/helpers/helpers.js';
|
|
6
|
-
import * as RecorderComponents from '../../../../panels/recorder/components/components.js';
|
|
7
|
-
import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
|
|
8
|
-
|
|
9
|
-
await ComponentHelpers.ComponentServerSetup.setup();
|
|
10
|
-
await FrontendHelpers.initializeGlobalVars();
|
|
11
|
-
|
|
12
|
-
const component = new RecorderComponents.ControlButton.ControlButton();
|
|
13
|
-
component.shape = 'circle';
|
|
14
|
-
component.label = 'ControlButton';
|
|
15
|
-
document.getElementById('container')?.appendChild(component);
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Copyright 2023 The Chromium Authors
|
|
3
|
-
Use of this source code is governed by a BSD-style license that can be
|
|
4
|
-
found in the LICENSE file.
|
|
5
|
-
-->
|
|
6
|
-
<!DOCTYPE html>
|
|
7
|
-
<html>
|
|
8
|
-
|
|
9
|
-
<head>
|
|
10
|
-
<meta charset="UTF-8" />
|
|
11
|
-
<meta name="viewport" content="width=device-width" />
|
|
12
|
-
<title>Recorder: RecordingListView</title>
|
|
13
|
-
</head>
|
|
14
|
-
|
|
15
|
-
<body>
|
|
16
|
-
<div id="container"></div>
|
|
17
|
-
<script src="./basic.js" type="module"></script>
|
|
18
|
-
</body>
|
|
19
|
-
|
|
20
|
-
</html>
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// Copyright 2023 The Chromium Authors
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
|
|
5
|
-
import * as ComponentHelpers from '../../../../../front_end/ui/components/helpers/helpers.js';
|
|
6
|
-
import * as RecorderComponents from '../../../../panels/recorder/components/components.js';
|
|
7
|
-
import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
|
|
8
|
-
|
|
9
|
-
await ComponentHelpers.ComponentServerSetup.setup();
|
|
10
|
-
await FrontendHelpers.initializeGlobalVars();
|
|
11
|
-
|
|
12
|
-
const component = new RecorderComponents.RecordingListView.RecordingListView();
|
|
13
|
-
component.recordings = [
|
|
14
|
-
{
|
|
15
|
-
storageName: '1',
|
|
16
|
-
name: 'Title 1',
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
storageName: '2',
|
|
20
|
-
name: 'Title 2',
|
|
21
|
-
},
|
|
22
|
-
];
|
|
23
|
-
const container = document.getElementById('container');
|
|
24
|
-
if (container) {
|
|
25
|
-
component.show(container);
|
|
26
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Copyright 2023 The Chromium Authors
|
|
3
|
-
Use of this source code is governed by a BSD-style license that can be
|
|
4
|
-
found in the LICENSE file.
|
|
5
|
-
-->
|
|
6
|
-
<!DOCTYPE html>
|
|
7
|
-
<html>
|
|
8
|
-
|
|
9
|
-
<head>
|
|
10
|
-
<meta charset="UTF-8" />
|
|
11
|
-
<meta name="viewport" content="width=device-width" />
|
|
12
|
-
<title>Recorder: select button</title>
|
|
13
|
-
</head>
|
|
14
|
-
|
|
15
|
-
<body>
|
|
16
|
-
<div id="container"></div>
|
|
17
|
-
<script src="./basic.js" type="module"></script>
|
|
18
|
-
</body>
|
|
19
|
-
|
|
20
|
-
</html>
|