chrome-devtools-frontend 1.0.1733843 → 1.0.1736236

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.
Files changed (184) hide show
  1. package/.agents/rules/tests/test-view-and-presenter-isolation.md +4 -4
  2. package/.agents/rules/ui-and-widgets/ui-declarative-tree-and-prompt-patterns.md +61 -0
  3. package/.agents/rules/ui-and-widgets/ui-lit-declarative-templates-and-directives.md +11 -7
  4. package/.agents/rules/ui-and-widgets/ui-modern-component-and-encapsulation-standards.md +13 -4
  5. package/.agents/rules/ui-and-widgets/ui-pure-view-and-presenter-separation.md +31 -2
  6. package/.agents/rules/ui-and-widgets/ui-reactive-widget-update-lifecycle.md +23 -4
  7. package/.agents/rules/ui-and-widgets/ui-widget-dom-and-listener-lifecycle.md +34 -3
  8. package/.agents/skills/code-review/SKILL.md +27 -0
  9. package/.agents/skills/devtools-uistrings/SKILL.md +147 -0
  10. package/.agents/skills/ui-eng-vision-local-lit-renderer/SKILL.md +27 -1
  11. package/.agents/skills/ui-eng-vision-orchestrator/SKILL.md +100 -0
  12. package/.agents/skills/ui-eng-vision-test-scaffolder/SKILL.md +16 -0
  13. package/.agents/skills/ui-eng-vision-widget-promoter/SKILL.md +13 -2
  14. package/.agents/skills/ui-widgets/SKILL.md +25 -25
  15. package/DIR_METADATA +8 -1
  16. package/docs/cookbook/localization.md +1 -1
  17. package/docs/ui_engineering.md +24 -0
  18. package/eslint.config.mjs +0 -1
  19. package/front_end/application_tokens.css +1 -1
  20. package/front_end/core/host/AidaClient.ts +147 -202
  21. package/front_end/core/host/AidaClientTypes.ts +9 -0
  22. package/front_end/core/host/AidaErrors.ts +416 -0
  23. package/front_end/core/host/AidaGcaTranslation.ts +11 -0
  24. package/front_end/core/host/InspectorFrontendHostAPI.ts +9 -2
  25. package/front_end/core/host/UserMetrics.ts +25 -0
  26. package/front_end/core/host/UserMetricsEnums.ts +25 -0
  27. package/front_end/core/host/host.ts +3 -1
  28. package/front_end/core/i18n/collect-ui-strings.js +20 -0
  29. package/front_end/core/root/Runtime.ts +12 -0
  30. package/front_end/core/sdk/CPUThrottlingManager.ts +3 -0
  31. package/front_end/core/sdk/EnhancedTracesParser.ts +8 -4
  32. package/front_end/core/sdk/NetworkManager.ts +0 -6
  33. package/front_end/core/sdk/OverlayModel.ts +0 -6
  34. package/front_end/core/sdk/PreloadingModel.ts +30 -13
  35. package/front_end/core/sdk/PrivateVerificationTokensModel.ts +0 -18
  36. package/front_end/core/sdk/RehydratingConnection.ts +5 -2
  37. package/front_end/core/sdk/ResourceTreeModel.ts +0 -42
  38. package/front_end/core/sdk/ScreenCaptureModel.ts +0 -84
  39. package/front_end/core/sdk/ServiceWorkerCacheModel.ts +0 -15
  40. package/front_end/core/sdk/StorageBucketsModel.ts +0 -15
  41. package/front_end/devtools_compatibility.js +57 -2
  42. package/front_end/entrypoints/formatter_worker/ScopeParser.ts +4 -2
  43. package/front_end/entrypoints/inspector_main/RenderingOptions.ts +203 -127
  44. package/front_end/entrypoints/inspector_main/renderingOptions.css +5 -0
  45. package/front_end/entrypoints/node_app/app/NodeMain.ts +0 -9
  46. package/front_end/entrypoints/node_app/app/nodeConnectionsPanel.css +0 -22
  47. package/front_end/generated/InspectorBackendCommands.ts +1 -1
  48. package/front_end/generated/SupportedCSSProperties.ts +0 -136
  49. package/front_end/generated/protocol-proxy-api.d.ts +231 -231
  50. package/front_end/generated/protocol.ts +1 -0
  51. package/front_end/models/ai_assistance/AiAgent2.ts +4 -1
  52. package/front_end/models/ai_assistance/ChangeManager.ts +3 -1
  53. package/front_end/models/ai_assistance/DOMHelpers.ts +118 -3
  54. package/front_end/models/ai_assistance/ExtensionScope.ts +31 -24
  55. package/front_end/models/ai_assistance/agents/AiAgent.ts +6 -0
  56. package/front_end/models/ai_assistance/agents/PerformanceAgent.snapshot.txt +13 -13
  57. package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +1 -1
  58. package/front_end/models/ai_assistance/ai_assistance.ts +2 -0
  59. package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.snapshot.txt +18 -8
  60. package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.ts +2 -2
  61. package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +103 -81
  62. package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.ts +15 -203
  63. package/front_end/models/ai_assistance/injected.ts +6 -1
  64. package/front_end/models/ai_assistance/skills/lighthouse.md +1 -1
  65. package/front_end/models/ai_assistance/skills/styling.md +8 -10
  66. package/front_end/models/ai_assistance/tools/GetTraceEventByKey.ts +1 -1
  67. package/front_end/models/ai_assistance/tools/SetElementStyles.ts +288 -0
  68. package/front_end/models/ai_assistance/tools/Tool.ts +1 -0
  69. package/front_end/models/ai_assistance/tools/ToolRegistry.ts +3 -0
  70. package/front_end/models/bindings/ResourceScriptMapping.ts +64 -16
  71. package/front_end/models/comment_manager/CD4ABridge.ts +12 -2
  72. package/front_end/models/comment_manager/CommentManager.ts +24 -4
  73. package/front_end/models/javascript_metadata/NativeFunctions.ts +41 -1
  74. package/front_end/models/project_settings/ProjectSettingsModel.ts +1 -1
  75. package/front_end/models/trace/handlers/FlowsHandler.ts +10 -0
  76. package/front_end/models/trace/handlers/SamplesHandler.ts +3 -2
  77. package/front_end/models/trace/handlers/ScriptsHandler.ts +25 -26
  78. package/front_end/models/trace/helpers/TreeHelpers.ts +4 -0
  79. package/front_end/models/trace/insights/DuplicatedJavaScript.ts +1 -2
  80. package/front_end/models/trace/types/TraceEvents.ts +21 -22
  81. package/front_end/panels/ai_assistance/components/ChatMessage.ts +9 -1
  82. package/front_end/panels/ai_assistance/components/chatInput.css +4 -4
  83. package/front_end/panels/animation/AnimationTimeline.ts +3 -3
  84. package/front_end/panels/animation/animationTimeline.css +6 -4
  85. package/front_end/panels/application/IndexedDBModel.ts +0 -15
  86. package/front_end/panels/application/appManifestView.css +2 -5
  87. package/front_end/panels/application/components/backForwardCacheView.css +1 -5
  88. package/front_end/panels/application/components/serviceWorkerRouterView.css +2 -2
  89. package/front_end/panels/application/preloading/components/PreloadingString.ts +7 -0
  90. package/front_end/panels/comments/CommentsPane.ts +12 -7
  91. package/front_end/panels/comments/commentsPane.css +16 -2
  92. package/front_end/panels/common/CommentsOverlayWidget.ts +16 -10
  93. package/front_end/panels/common/CommentsStatusBarPill.ts +12 -5
  94. package/front_end/panels/common/commentsOverlay.css +7 -1
  95. package/front_end/panels/common/commentsStatusBarPill.css +30 -0
  96. package/front_end/panels/console/consolePrompt.css +0 -12
  97. package/front_end/panels/console/consoleView.css +2 -2
  98. package/front_end/panels/developer_resources/developerResourcesView.css +4 -3
  99. package/front_end/panels/elements/DOMTreeWidget.ts +29 -9
  100. package/front_end/panels/elements/StylePropertyTreeElement.ts +2 -1
  101. package/front_end/panels/elements/components/CSSHintDetailsView.ts +12 -5
  102. package/front_end/panels/elements/components/cssVariableValueView.css +1 -1
  103. package/front_end/panels/elements/components/elementsBreadcrumbs.css +2 -2
  104. package/front_end/panels/elements/domTreeWidget.css +6 -1
  105. package/front_end/panels/elements/elementsPanel.css +0 -6
  106. package/front_end/panels/elements/layoutPane.css +1 -1
  107. package/front_end/panels/elements/metricsSidebarPane.css +1 -1
  108. package/front_end/panels/elements/platformFontsWidget.css +1 -1
  109. package/front_end/panels/elements/stylesSidebarPane.css +0 -10
  110. package/front_end/panels/emulation/deviceModeView.css +6 -7
  111. package/front_end/panels/explain/components/consoleInsight.css +4 -4
  112. package/front_end/panels/issues/issuesTree.css +1 -26
  113. package/front_end/panels/lighthouse/lighthouseStartView.css +2 -2
  114. package/front_end/panels/linear_memory_inspector/components/linearMemoryInspector.css +1 -1
  115. package/front_end/panels/media/TickingFlameChart.ts +20 -3
  116. package/front_end/panels/media/playerMessagesView.css +2 -2
  117. package/front_end/panels/mobile_throttling/ThrottlingSettingsTab.ts +24 -5
  118. package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +1 -6
  119. package/front_end/panels/network/networkLogView.css +2 -2
  120. package/front_end/panels/network/networkTimingTable.css +1 -1
  121. package/front_end/panels/performance_monitor/performanceMonitor.css +0 -4
  122. package/front_end/panels/protocol_monitor/JSONEditor.css +1 -1
  123. package/front_end/panels/protocol_monitor/JSONEditor.ts +4 -2
  124. package/front_end/panels/recorder/recorderPanel.css +3 -3
  125. package/front_end/panels/recorder/recordingListView.css +1 -1
  126. package/front_end/panels/screencast/screencastView.css +1 -1
  127. package/front_end/panels/search/searchResultsPane.css +1 -1
  128. package/front_end/panels/security/SecurityModel.ts +0 -6
  129. package/front_end/panels/security/SecurityPanel.ts +120 -108
  130. package/front_end/panels/security/originView.css +1 -1
  131. package/front_end/panels/sensors/locationsSettingsTab.css +3 -3
  132. package/front_end/panels/settings/EditFileSystemView.ts +159 -104
  133. package/front_end/panels/settings/editFileSystemView.css +30 -4
  134. package/front_end/panels/settings/emulation/devicesSettingsTab.css +0 -52
  135. package/front_end/panels/settings/settingsScreen.css +0 -7
  136. package/front_end/panels/sources/CallStackSidebarPane.ts +339 -221
  137. package/front_end/panels/sources/NavigatorView.ts +95 -8
  138. package/front_end/panels/sources/ThreadsSidebarPane.ts +8 -4
  139. package/front_end/panels/sources/breakpointsView.css +1 -3
  140. package/front_end/panels/sources/callStackSidebarPane.css +4 -0
  141. package/front_end/panels/sources/components/HeadersView.ts +15 -2
  142. package/front_end/panels/sources/watchExpressionsSidebarPane.css +0 -1
  143. package/front_end/panels/timeline/CountersGraph.ts +0 -4
  144. package/front_end/panels/timeline/TimelineLoader.ts +16 -6
  145. package/front_end/panels/timeline/TimelinePanel.ts +20 -12
  146. package/front_end/panels/timeline/TimelineUIUtils.ts +1 -1
  147. package/front_end/panels/timeline/components/DetailsView.ts +2 -1
  148. package/front_end/panels/timeline/components/cwvMetrics.css +1 -1
  149. package/front_end/panels/timeline/components/metricCard.css +1 -1
  150. package/front_end/panels/timeline/components/sidebarAnnotationsTab.css +4 -4
  151. package/front_end/panels/timeline/timelineFlameChartView.css +1 -1
  152. package/front_end/panels/webauthn/WebauthnPane.ts +13 -14
  153. package/front_end/panels/webauthn/webauthnPane.css +1 -1
  154. package/front_end/third_party/chromium/README.chromium +1 -1
  155. package/front_end/ui/comments/CommentOverlayManager.ts +34 -18
  156. package/front_end/ui/components/icon_button/FileSourceIcon.ts +6 -0
  157. package/front_end/ui/components/input/textInput.css +1 -1
  158. package/front_end/ui/components/panel_introduction_steps/panelIntroductionSteps.css +6 -4
  159. package/front_end/ui/components/suggestion_input/suggestionInput.css +2 -2
  160. package/front_end/ui/components/text_editor/AiCodeGenerationTeaser.ts +14 -2
  161. package/front_end/ui/legacy/DockController.ts +17 -4
  162. package/front_end/ui/legacy/Treeoutline.ts +2 -2
  163. package/front_end/ui/legacy/UIUtils.ts +148 -10
  164. package/front_end/ui/legacy/components/inline_editor/bezierEditor.css +3 -2
  165. package/front_end/ui/legacy/components/perf_ui/chartViewport.css +2 -2
  166. package/front_end/ui/legacy/components/perf_ui/filmStripView.css +2 -2
  167. package/front_end/ui/legacy/components/perf_ui/pieChart.css +1 -1
  168. package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +5 -4
  169. package/front_end/ui/legacy/components/source_frame/imageView.css +1 -1
  170. package/front_end/ui/legacy/components/utils/TargetDetachedDialog.ts +0 -3
  171. package/front_end/ui/legacy/components/utils/imagePreview.css +1 -1
  172. package/front_end/ui/legacy/inspectorCommon.css +1 -14
  173. package/front_end/ui/legacy/inspectorDrawerTabbedPane.css +3 -2
  174. package/front_end/ui/legacy/listWidget.css +0 -18
  175. package/front_end/ui/legacy/theme_support/ThemeSupport.ts +44 -9
  176. package/front_end/ui/lit/strip-whitespace.ts +1 -1
  177. package/front_end/ui/visual_logging/KnownContextValues.ts +1 -0
  178. package/package.json +3 -3
  179. package/front_end/generated/Deprecation.ts +0 -471
  180. package/front_end/panels/accessibility/axBreadcrumbs.css +0 -155
  181. package/front_end/panels/network/requestHeadersTree.css +0 -226
  182. package/front_end/panels/recorder/startView.css +0 -38
  183. package/front_end/panels/security/ipProtectionView.css +0 -141
  184. package/front_end/ui/legacy/components/inline_editor/animationNameSwatch.css +0 -27
@@ -2,8 +2,6 @@
2
2
  // Use of this source code is governed by a BSD-style license that can be
3
3
  // found in the LICENSE file.
4
4
 
5
- /* eslint-disable @devtools/no-imperative-dom-api */
6
-
7
5
  import * as Common from '../../core/common/common.js';
8
6
  import * as Host from '../../core/host/host.js';
9
7
  import * as i18n from '../../core/i18n/i18n.js';
@@ -11,10 +9,15 @@ import * as Root from '../../core/root/root.js';
11
9
  import * as SDK from '../../core/sdk/sdk.js';
12
10
  import * as SettingsUI from '../../ui/legacy/components/settings_ui/settings_ui.js';
13
11
  import * as UI from '../../ui/legacy/legacy.js';
12
+ import * as Lit from '../../ui/lit/lit.js';
14
13
  import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
15
14
 
16
15
  import renderingOptionsStyles from './renderingOptions.css.js';
17
16
 
17
+ const {html, nothing, render} = Lit;
18
+ const {bindToSetting} = UI.UIUtils;
19
+ const {renderControlForSetting} = SettingsUI.SettingsUI;
20
+
18
21
  const UIStrings = {
19
22
  /**
20
23
  * @description The name of a checkbox setting in the Rendering panel. This setting highlights areas
@@ -193,140 +196,213 @@ const supportsJpegXl = (): boolean => {
193
196
  return Boolean(Root.Runtime.hostConfig.devToolsJpegXlImageFormat?.enabled);
194
197
  };
195
198
 
196
- export class RenderingOptionsView extends UI.Widget.VBox {
197
- #jpegXlCheckboxAdded = false;
198
-
199
- constructor() {
200
- super({useShadowDom: true});
201
- this.registerRequiredCSS(renderingOptionsStyles);
202
-
203
- this.element.setAttribute('jslog', `${VisualLogging.panel('rendering').track({resize: true})}`);
204
-
205
- this.#appendCheckbox(i18nString(UIStrings.paintFlashing), i18nString(UIStrings.highlightsAreasOfThePageGreen),
206
- Common.Settings.Settings.instance().resolve(SDK.SDKSettings.showPaintRectsSettingDescriptor));
207
- this.#appendCheckbox(
208
- i18nString(UIStrings.layoutShiftRegions), i18nString(UIStrings.highlightsAreasOfThePageBlueThat),
209
- Common.Settings.Settings.instance().resolve(SDK.SDKSettings.showLayoutShiftRegionsSettingDescriptor));
210
- this.#appendCheckbox(
211
- i18nString(UIStrings.layerBorders), i18nString(UIStrings.showsLayerBordersOrangeoliveAnd),
212
- Common.Settings.Settings.instance().resolve(SDK.SDKSettings.showDebugBordersSettingDescriptor));
213
- this.#appendCheckbox(i18nString(UIStrings.frameRenderingStats), i18nString(UIStrings.plotsFrameThroughputDropped),
214
- Common.Settings.Settings.instance().resolve(SDK.SDKSettings.showFPSCounterSettingDescriptor));
215
- this.#appendCheckbox(
216
- i18nString(UIStrings.scrollingPerformanceIssues), i18nString(UIStrings.highlightsElementsTealThatCan),
217
- Common.Settings.Settings.instance().resolve(SDK.SDKSettings.showScrollBottleneckRectsSettingDescriptor));
218
-
219
- // The 'Highlight ads' setting now lives in the Ads panel under Application.
220
- // We display this legacy setting only when the Ads panel isn't enabled.
221
- if (!Root.Runtime.hostConfig.devToolsAdsPanel?.enabled) {
222
- this.#appendCheckbox(
223
- i18nString(UIStrings.highlightAds), i18nString(UIStrings.highlightsElementsRedDetectedToBe),
224
- Common.Settings.Settings.instance().resolve(SDK.SDKSettings.showAdHighlightsSettingDescriptor));
225
- }
226
-
227
- this.#appendCheckbox(
228
- i18nString(UIStrings.disableLocalFonts), i18nString(UIStrings.disablesLocalSourcesInFontface),
229
- Common.Settings.Settings.instance().resolve(SDK.SDKSettings.localFontsDisabledSettingDescriptor));
230
- this.#appendCheckbox(i18nString(UIStrings.emulateAFocusedPage), i18nString(UIStrings.emulatesAFocusedPage),
231
- Common.Settings.Settings.instance().resolve(SDK.SDKSettings.emulatePageFocusSettingDescriptor),
232
- {toggle: Host.UserMetrics.Action.ToggleEmulateFocusedPageFromRenderingTab});
233
- const autoDarkModeSetting =
234
- Common.Settings.Settings.instance().resolve(SDK.SDKSettings.emulateAutoDarkModeSettingDescriptor);
235
- this.#appendCheckbox(i18nString(UIStrings.emulateAutoDarkMode), i18nString(UIStrings.emulatesAutoDarkMode),
236
- autoDarkModeSetting);
237
-
238
- this.contentElement.createChild('div').classList.add('panel-section-separator');
239
-
240
- this.#appendSelect(i18nString(UIStrings.forcesCssPreferscolorschemeMedia),
241
- Common.Settings.Settings.instance().resolve(
242
- SDK.SDKSettings.emulatedCSSMediaFeaturePrefersColorSchemeSettingDescriptor),
243
- autoDarkModeSetting.get());
244
- this.#appendSelect(i18nString(UIStrings.forcesMediaTypeForTestingPrint),
245
- Common.Settings.Settings.instance().resolve(SDK.SDKSettings.emulatedCSSMediaSettingDescriptor));
246
- this.#appendSelect(i18nString(UIStrings.forcesCssForcedColors),
247
- Common.Settings.Settings.instance().resolve(
248
- SDK.SDKSettings.emulatedCSSMediaFeatureForcedColorsSettingDescriptor));
249
- if (supportsPrefersContrast()) {
250
- this.#appendSelect(i18nString(UIStrings.forcesCssPreferscontrastMedia),
251
- Common.Settings.Settings.instance().resolve(
252
- SDK.SDKSettings.emulatedCSSMediaFeaturePrefersContrastSettingDescriptor));
253
- }
254
- this.#appendSelect(i18nString(UIStrings.forcesCssPrefersreducedmotion),
255
- Common.Settings.Settings.instance().resolve(
256
- SDK.SDKSettings.emulatedCSSMediaFeaturePrefersReducedMotionSettingDescriptor));
257
- if (supportsPrefersReducedData()) {
258
- this.#appendSelect(i18nString(UIStrings.forcesCssPrefersreduceddataMedia),
259
- Common.Settings.Settings.instance().resolve(
260
- SDK.SDKSettings.emulatedCSSMediaFeaturePrefersReducedDataSettingDescriptor));
261
- }
262
- if (supportsPrefersReducedTransparency()) {
263
- this.#appendSelect(i18nString(UIStrings.forcesCssPrefersreducedtransparencyMedia),
264
- Common.Settings.Settings.instance().resolve(
265
- SDK.SDKSettings.emulatedCSSMediaFeaturePrefersReducedTransparencySettingDescriptor));
266
- }
267
- this.#appendSelect(i18nString(UIStrings.forcesCssColorgamutMediaFeature),
268
- Common.Settings.Settings.instance().resolve(
269
- SDK.SDKSettings.emulatedCSSMediaFeatureColorGamutSettingDescriptor));
270
- this.contentElement.createChild('div').classList.add('panel-section-separator');
271
-
272
- this.#appendSelect(
273
- i18nString(UIStrings.forcesVisionDeficiencyEmulation),
274
- Common.Settings.Settings.instance().resolve(SDK.SDKSettings.emulatedVisionDeficiencySettingDescriptor));
275
-
276
- this.contentElement.createChild('div').classList.add('panel-section-separator');
277
-
278
- this.#appendSelect(
279
- i18nString(UIStrings.forcesOsTextScaleEmulation),
280
- Common.Settings.Settings.instance().resolve(SDK.SDKSettings.emulatedOSTextScaleSettingDescriptor));
281
-
282
- this.contentElement.createChild('div').classList.add('panel-section-separator');
283
-
284
- const avifFormatDisabledSetting =
285
- Common.Settings.Settings.instance().resolve(SDK.SDKSettings.avifFormatDisabledSettingDescriptor);
286
- const jpegXlFormatDisabledSetting =
287
- Common.Settings.Settings.instance().resolve(SDK.SDKSettings.jpegXlFormatDisabledSettingDescriptor);
288
- const webpFormatDisabledSetting =
289
- Common.Settings.Settings.instance().resolve(SDK.SDKSettings.webpFormatDisabledSettingDescriptor);
290
-
291
- this.#appendCheckbox(
292
- i18nString(UIStrings.disableAvifImageFormat), i18nString(UIStrings.requiresAPageReloadToApplyAnd),
293
- avifFormatDisabledSetting);
199
+ export interface ViewInput {
200
+ showPaintRectsSetting: Common.Settings.Setting<boolean>;
201
+ showLayoutShiftRegionsSetting: Common.Settings.Setting<boolean>;
202
+ showDebugBordersSetting: Common.Settings.Setting<boolean>;
203
+ showFPSCounterSetting: Common.Settings.Setting<boolean>;
204
+ showScrollBottleneckRectsSetting: Common.Settings.Setting<boolean>;
205
+ showAdHighlightsSetting: Common.Settings.Setting<boolean>|null;
206
+ localFontsDisabledSetting: Common.Settings.Setting<boolean>;
207
+ emulatePageFocusSetting: Common.Settings.Setting<boolean>;
208
+ onEmulatePageFocusChange: () => void;
209
+ emulateAutoDarkModeSetting: Common.Settings.Setting<boolean>;
210
+ prefersColorSchemeSetting: Common.Settings.Setting<string>;
211
+ prefersColorSchemeDisabled: boolean;
212
+ emulatedCSSMediaSetting: Common.Settings.Setting<string>;
213
+ forcedColorsSetting: Common.Settings.Setting<string>;
214
+ prefersContrastSetting: Common.Settings.Setting<string>|null;
215
+ prefersReducedMotionSetting: Common.Settings.Setting<string>;
216
+ prefersReducedDataSetting: Common.Settings.Setting<string>|null;
217
+ prefersReducedTransparencySetting: Common.Settings.Setting<string>|null;
218
+ colorGamutSetting: Common.Settings.Setting<string>;
219
+ visionDeficiencySetting: Common.Settings.Setting<unknown>;
220
+ osTextScaleSetting: Common.Settings.Setting<string>;
221
+ avifFormatDisabledSetting: Common.Settings.Setting<boolean>;
222
+ jpegXlFormatDisabledSetting: Common.Settings.Setting<boolean>|null;
223
+ webpFormatDisabledSetting: Common.Settings.Setting<boolean>;
224
+ }
294
225
 
295
- const webpCheckbox = this.#appendCheckbox(
296
- i18nString(UIStrings.disableWebpImageFormat), i18nString(UIStrings.requiresAPageReloadToApplyAnd),
297
- webpFormatDisabledSetting);
226
+ export type ViewOutput = undefined;
227
+
228
+ export type View = (input: ViewInput, output: ViewOutput, target: HTMLElement) => void;
229
+
230
+ function renderCheckbox(label: Common.UIString.LocalizedString, subtitle: Common.UIString.LocalizedString,
231
+ setting: Common.Settings.Setting<boolean>, onChange?: () => void): Lit.TemplateResult {
232
+ // clang-format off
233
+ return html`
234
+ <devtools-checkbox
235
+ title=${label}
236
+ ${bindToSetting(setting)}
237
+ @change=${onChange ?? nothing}>
238
+ ${label}
239
+ <div class="devtools-checkbox-subtitle">${subtitle}</div>
240
+ </devtools-checkbox>
241
+ `;
242
+ // clang-format on
243
+ }
298
244
 
299
- this.#appendJpegXlCheckboxWhenSupported(webpCheckbox, jpegXlFormatDisabledSetting);
245
+ export const DEFAULT_VIEW: View = (input, _output, target) => {
246
+ // clang-format off
247
+ render(
248
+ html`
249
+ <style>${renderingOptionsStyles}</style>
250
+ ${renderCheckbox(
251
+ i18nString(UIStrings.paintFlashing),
252
+ i18nString(UIStrings.highlightsAreasOfThePageGreen),
253
+ input.showPaintRectsSetting)}
254
+ ${renderCheckbox(
255
+ i18nString(UIStrings.layoutShiftRegions),
256
+ i18nString(UIStrings.highlightsAreasOfThePageBlueThat),
257
+ input.showLayoutShiftRegionsSetting)}
258
+ ${renderCheckbox(
259
+ i18nString(UIStrings.layerBorders),
260
+ i18nString(UIStrings.showsLayerBordersOrangeoliveAnd),
261
+ input.showDebugBordersSetting)}
262
+ ${renderCheckbox(
263
+ i18nString(UIStrings.frameRenderingStats),
264
+ i18nString(UIStrings.plotsFrameThroughputDropped),
265
+ input.showFPSCounterSetting)}
266
+ ${renderCheckbox(
267
+ i18nString(UIStrings.scrollingPerformanceIssues),
268
+ i18nString(UIStrings.highlightsElementsTealThatCan),
269
+ input.showScrollBottleneckRectsSetting)}
270
+ ${input.showAdHighlightsSetting ? renderCheckbox(
271
+ i18nString(UIStrings.highlightAds),
272
+ i18nString(UIStrings.highlightsElementsRedDetectedToBe),
273
+ input.showAdHighlightsSetting) : nothing}
274
+ ${renderCheckbox(
275
+ i18nString(UIStrings.disableLocalFonts),
276
+ i18nString(UIStrings.disablesLocalSourcesInFontface),
277
+ input.localFontsDisabledSetting)}
278
+ ${renderCheckbox(
279
+ i18nString(UIStrings.emulateAFocusedPage),
280
+ i18nString(UIStrings.emulatesAFocusedPage),
281
+ input.emulatePageFocusSetting,
282
+ input.onEmulatePageFocusChange)}
283
+ ${renderCheckbox(
284
+ i18nString(UIStrings.emulateAutoDarkMode),
285
+ i18nString(UIStrings.emulatesAutoDarkMode),
286
+ input.emulateAutoDarkModeSetting)}
287
+ <div class="panel-section-separator"></div>
288
+ ${renderControlForSetting(
289
+ input.prefersColorSchemeSetting,
290
+ i18nString(UIStrings.forcesCssPreferscolorschemeMedia),
291
+ input.prefersColorSchemeDisabled)}
292
+ ${renderControlForSetting(
293
+ input.emulatedCSSMediaSetting,
294
+ i18nString(UIStrings.forcesMediaTypeForTestingPrint))}
295
+ ${renderControlForSetting(
296
+ input.forcedColorsSetting,
297
+ i18nString(UIStrings.forcesCssForcedColors))}
298
+ ${input.prefersContrastSetting ? renderControlForSetting(
299
+ input.prefersContrastSetting,
300
+ i18nString(UIStrings.forcesCssPreferscontrastMedia)) : nothing}
301
+ ${renderControlForSetting(
302
+ input.prefersReducedMotionSetting,
303
+ i18nString(UIStrings.forcesCssPrefersreducedmotion))}
304
+ ${input.prefersReducedDataSetting ? renderControlForSetting(
305
+ input.prefersReducedDataSetting,
306
+ i18nString(UIStrings.forcesCssPrefersreduceddataMedia)) : nothing}
307
+ ${input.prefersReducedTransparencySetting ? renderControlForSetting(
308
+ input.prefersReducedTransparencySetting,
309
+ i18nString(UIStrings.forcesCssPrefersreducedtransparencyMedia)) : nothing}
310
+ ${renderControlForSetting(
311
+ input.colorGamutSetting,
312
+ i18nString(UIStrings.forcesCssColorgamutMediaFeature))}
313
+ <div class="panel-section-separator"></div>
314
+ ${renderControlForSetting(
315
+ input.visionDeficiencySetting,
316
+ i18nString(UIStrings.forcesVisionDeficiencyEmulation))}
317
+ <div class="panel-section-separator"></div>
318
+ ${renderControlForSetting(
319
+ input.osTextScaleSetting,
320
+ i18nString(UIStrings.forcesOsTextScaleEmulation))}
321
+ <div class="panel-section-separator"></div>
322
+ ${renderCheckbox(
323
+ i18nString(UIStrings.disableAvifImageFormat),
324
+ i18nString(UIStrings.requiresAPageReloadToApplyAnd),
325
+ input.avifFormatDisabledSetting)}
326
+ ${input.jpegXlFormatDisabledSetting ? renderCheckbox(
327
+ i18nString(UIStrings.disableJpegXlImageFormat),
328
+ i18nString(UIStrings.requiresAPageReloadToApplyAnd),
329
+ input.jpegXlFormatDisabledSetting) : nothing}
330
+ ${renderCheckbox(
331
+ i18nString(UIStrings.disableWebpImageFormat),
332
+ i18nString(UIStrings.requiresAPageReloadToApplyAnd),
333
+ input.webpFormatDisabledSetting)}
334
+ <div class="panel-section-separator"></div>
335
+ `,
336
+ target, {container: {attributes: {jslog: `${VisualLogging.panel('rendering').track({resize: true})}`}}});
337
+ // clang-format on
338
+ };
300
339
 
301
- this.contentElement.createChild('div').classList.add('panel-section-separator');
340
+ export class RenderingOptionsView extends UI.Widget.VBox {
341
+ readonly #view: View;
342
+ readonly #autoDarkModeSetting =
343
+ Common.Settings.Settings.instance().resolve(SDK.SDKSettings.emulateAutoDarkModeSettingDescriptor);
344
+
345
+ constructor(element?: HTMLElement, view: View = DEFAULT_VIEW) {
346
+ super(element, {useShadowDom: true});
347
+ this.#view = view;
348
+ this.requestUpdate();
302
349
  }
303
350
 
304
- #appendCheckbox(
305
- label: Common.UIString.LocalizedString, subtitle: Common.UIString.LocalizedString,
306
- setting: Common.Settings.Setting<boolean>, metric?: UI.UIUtils.UserMetricOptions): UI.UIUtils.CheckboxLabel {
307
- const checkbox = UI.UIUtils.CheckboxLabel.create(label, false, subtitle, setting.name);
308
- UI.UIUtils.bindCheckbox(checkbox, setting, metric);
309
- this.contentElement.appendChild(checkbox);
310
- return checkbox;
351
+ override wasShown(): void {
352
+ super.wasShown();
353
+ this.#autoDarkModeSetting.addChangeListener(this.requestUpdate, this);
354
+ this.requestUpdate();
311
355
  }
312
356
 
313
- #appendJpegXlCheckboxWhenSupported(
314
- webpCheckbox: UI.UIUtils.CheckboxLabel, jpegXlFormatDisabledSetting: Common.Settings.Setting<boolean>): void {
315
- if (this.#jpegXlCheckboxAdded || !supportsJpegXl()) {
316
- return;
317
- }
318
-
319
- this.#jpegXlCheckboxAdded = true;
320
- webpCheckbox.before(this.#appendCheckbox(
321
- i18nString(UIStrings.disableJpegXlImageFormat), i18nString(UIStrings.requiresAPageReloadToApplyAnd),
322
- jpegXlFormatDisabledSetting));
357
+ override willHide(): void {
358
+ super.willHide();
359
+ this.#autoDarkModeSetting.removeChangeListener(this.requestUpdate, this);
323
360
  }
324
361
 
325
- #appendSelect(label: string, setting: Common.Settings.Setting<unknown>, disabled?: boolean): void {
326
- const control = SettingsUI.SettingsUI.createControlForSetting(setting, label, disabled);
327
- if (control) {
328
- this.contentElement.appendChild(control);
329
- }
362
+ override performUpdate(): void {
363
+ const settings = Common.Settings.Settings.instance();
364
+ const viewInput: ViewInput = {
365
+ showPaintRectsSetting: settings.resolve(SDK.SDKSettings.showPaintRectsSettingDescriptor),
366
+ showLayoutShiftRegionsSetting: settings.resolve(SDK.SDKSettings.showLayoutShiftRegionsSettingDescriptor),
367
+ showDebugBordersSetting: settings.resolve(SDK.SDKSettings.showDebugBordersSettingDescriptor),
368
+ showFPSCounterSetting: settings.resolve(SDK.SDKSettings.showFPSCounterSettingDescriptor),
369
+ showScrollBottleneckRectsSetting: settings.resolve(SDK.SDKSettings.showScrollBottleneckRectsSettingDescriptor),
370
+ // The 'Highlight ads' setting now lives in the Ads panel under Application.
371
+ // We display this legacy setting only when the Ads panel isn't enabled.
372
+ showAdHighlightsSetting: Root.Runtime.hostConfig.devToolsAdsPanel?.enabled ?
373
+ null :
374
+ settings.resolve(SDK.SDKSettings.showAdHighlightsSettingDescriptor),
375
+ localFontsDisabledSetting: settings.resolve(SDK.SDKSettings.localFontsDisabledSettingDescriptor),
376
+ emulatePageFocusSetting: settings.resolve(SDK.SDKSettings.emulatePageFocusSettingDescriptor),
377
+ onEmulatePageFocusChange: () => {
378
+ Host.userMetrics.actionTaken(Host.UserMetrics.Action.ToggleEmulateFocusedPageFromRenderingTab);
379
+ },
380
+ emulateAutoDarkModeSetting: this.#autoDarkModeSetting,
381
+ prefersColorSchemeSetting:
382
+ settings.resolve(SDK.SDKSettings.emulatedCSSMediaFeaturePrefersColorSchemeSettingDescriptor),
383
+ prefersColorSchemeDisabled: Boolean(this.#autoDarkModeSetting.get()),
384
+ emulatedCSSMediaSetting: settings.resolve(SDK.SDKSettings.emulatedCSSMediaSettingDescriptor),
385
+ forcedColorsSetting: settings.resolve(SDK.SDKSettings.emulatedCSSMediaFeatureForcedColorsSettingDescriptor),
386
+ prefersContrastSetting: supportsPrefersContrast() ?
387
+ settings.resolve(SDK.SDKSettings.emulatedCSSMediaFeaturePrefersContrastSettingDescriptor) :
388
+ null,
389
+ prefersReducedMotionSetting:
390
+ settings.resolve(SDK.SDKSettings.emulatedCSSMediaFeaturePrefersReducedMotionSettingDescriptor),
391
+ prefersReducedDataSetting: supportsPrefersReducedData() ?
392
+ settings.resolve(SDK.SDKSettings.emulatedCSSMediaFeaturePrefersReducedDataSettingDescriptor) :
393
+ null,
394
+ prefersReducedTransparencySetting: supportsPrefersReducedTransparency() ?
395
+ settings.resolve(SDK.SDKSettings.emulatedCSSMediaFeaturePrefersReducedTransparencySettingDescriptor) :
396
+ null,
397
+ colorGamutSetting: settings.resolve(SDK.SDKSettings.emulatedCSSMediaFeatureColorGamutSettingDescriptor),
398
+ visionDeficiencySetting: settings.resolve(SDK.SDKSettings.emulatedVisionDeficiencySettingDescriptor),
399
+ osTextScaleSetting: settings.resolve(SDK.SDKSettings.emulatedOSTextScaleSettingDescriptor),
400
+ avifFormatDisabledSetting: settings.resolve(SDK.SDKSettings.avifFormatDisabledSettingDescriptor),
401
+ jpegXlFormatDisabledSetting:
402
+ supportsJpegXl() ? settings.resolve(SDK.SDKSettings.jpegXlFormatDisabledSettingDescriptor) : null,
403
+ webpFormatDisabledSetting: settings.resolve(SDK.SDKSettings.webpFormatDisabledSettingDescriptor),
404
+ };
405
+ this.#view(viewInput, undefined, this.contentElement);
330
406
  }
331
407
  }
332
408
 
@@ -13,6 +13,11 @@ devtools-checkbox {
13
13
  flex: none;
14
14
  }
15
15
 
16
+ .devtools-checkbox-subtitle {
17
+ color: var(--sys-color-token-subtle);
18
+ white-space: break-spaces;
19
+ }
20
+
16
21
  .panel-section-separator {
17
22
  height: var(--sys-size-1);
18
23
  margin-bottom: 10px;
@@ -101,12 +101,6 @@ export class NodeChildTargetManager extends SDK.SDKModel.SDKModel<void> implemen
101
101
  }
102
102
  }
103
103
 
104
- targetInfoChanged(_event: Protocol.Target.TargetInfoChangedEvent): void {
105
- }
106
-
107
- targetDestroyed(_event: Protocol.Target.TargetDestroyedEvent): void {
108
- }
109
-
110
104
  async attachedToTarget({sessionId, targetInfo}: Protocol.Target.AttachedToTargetEvent): Promise<void> {
111
105
  let target: SDK.Target.Target;
112
106
  if (targetInfo.type === 'node_worker') {
@@ -160,9 +154,6 @@ export class NodeChildTargetManager extends SDK.SDKModel.SDKModel<void> implemen
160
154
  onMessage.call(null, message);
161
155
  }
162
156
  }
163
-
164
- targetCrashed(_event: Protocol.Target.TargetCrashedEvent): void {
165
- }
166
157
  }
167
158
 
168
159
  export class NodeConnection implements ProtocolClient.ConnectionTransport.ConnectionTransport {
@@ -45,19 +45,6 @@
45
45
  overflow: hidden;
46
46
  }
47
47
 
48
- .network-discovery-edit-row {
49
- flex: none;
50
- display: flex;
51
- flex-direction: row;
52
- margin: var(--sys-size-4) 5px;
53
- align-items: center;
54
- }
55
-
56
- .network-discovery-edit-row input {
57
- width: 100%;
58
- text-align: inherit;
59
- }
60
-
61
48
  .network-discovery-footer {
62
49
  margin: 0;
63
50
  overflow: hidden;
@@ -99,12 +86,3 @@
99
86
  width: 400px;
100
87
  margin-bottom: 50px;
101
88
  }
102
-
103
- :host-context(.node-frontend) .network-discovery-edit-row input {
104
- height: 30px;
105
- padding-left: 5px;
106
- }
107
-
108
- :host-context(.node-frontend) .network-discovery-edit-row {
109
- margin: var(--sys-size-4) 9px;
110
- }
@@ -1059,7 +1059,7 @@ inspectorBackend.registerEnum("Page.AdFrameExplanation", {ParentIsAd: "ParentIsA
1059
1059
  inspectorBackend.registerEnum("Page.SecureContextType", {Secure: "Secure", SecureLocalhost: "SecureLocalhost", InsecureScheme: "InsecureScheme", InsecureAncestor: "InsecureAncestor"});
1060
1060
  inspectorBackend.registerEnum("Page.CrossOriginIsolatedContextType", {Isolated: "Isolated", NotIsolated: "NotIsolated", NotIsolatedFeatureDisabled: "NotIsolatedFeatureDisabled"});
1061
1061
  inspectorBackend.registerEnum("Page.GatedAPIFeatures", {SharedArrayBuffers: "SharedArrayBuffers", SharedArrayBuffersTransferAllowed: "SharedArrayBuffersTransferAllowed", PerformanceMeasureMemory: "PerformanceMeasureMemory", PerformanceProfile: "PerformanceProfile"});
1062
- inspectorBackend.registerEnum("Page.PermissionsPolicyFeature", {Accelerometer: "accelerometer", AllScreensCapture: "all-screens-capture", AmbientLightSensor: "ambient-light-sensor", AriaNotify: "aria-notify", Autofill: "autofill", Autoplay: "autoplay", Bluetooth: "bluetooth", Camera: "camera", CapturedSurfaceControl: "captured-surface-control", ChDpr: "ch-dpr", ChDeviceMemory: "ch-device-memory", ChDownlink: "ch-downlink", ChEct: "ch-ect", ChPrefersColorScheme: "ch-prefers-color-scheme", ChPrefersReducedMotion: "ch-prefers-reduced-motion", ChPrefersReducedTransparency: "ch-prefers-reduced-transparency", ChRtt: "ch-rtt", ChSaveData: "ch-save-data", ChUa: "ch-ua", ChUaArch: "ch-ua-arch", ChUaBitness: "ch-ua-bitness", ChUaHighEntropyValues: "ch-ua-high-entropy-values", ChUaPlatform: "ch-ua-platform", ChUaModel: "ch-ua-model", ChUaMobile: "ch-ua-mobile", ChUaFormFactors: "ch-ua-form-factors", ChUaFullVersion: "ch-ua-full-version", ChUaFullVersionList: "ch-ua-full-version-list", ChUaPlatformVersion: "ch-ua-platform-version", ChUaWow64: "ch-ua-wow64", ChViewportHeight: "ch-viewport-height", ChViewportWidth: "ch-viewport-width", ChWidth: "ch-width", ClipboardRead: "clipboard-read", ClipboardWrite: "clipboard-write", ComputePressure: "compute-pressure", ControlledFrame: "controlled-frame", CrossOriginIsolated: "cross-origin-isolated", DeferredFetch: "deferred-fetch", DeferredFetchMinimal: "deferred-fetch-minimal", DeviceAttributes: "device-attributes", DigitalCredentialsCreate: "digital-credentials-create", DigitalCredentialsGet: "digital-credentials-get", DirectSockets: "direct-sockets", DirectSocketsMulticast: "direct-sockets-multicast", DisplayCapture: "display-capture", DocumentDomain: "document-domain", EncryptedMedia: "encrypted-media", ExecutionWhileOutOfViewport: "execution-while-out-of-viewport", ExecutionWhileNotRendered: "execution-while-not-rendered", FocusWithoutUserActivation: "focus-without-user-activation", Fullscreen: "fullscreen", Frobulate: "frobulate", Gamepad: "gamepad", Geolocation: "geolocation", Gyroscope: "gyroscope", Haptics: "haptics", Hid: "hid", IdentityCredentialsGet: "identity-credentials-get", IdleDetection: "idle-detection", KeyboardMap: "keyboard-map", LanguageDetector: "language-detector", LanguageModel: "language-model", LocalFonts: "local-fonts", LocalNetwork: "local-network", LocalNetworkAccess: "local-network-access", LoopbackNetwork: "loopback-network", Magnetometer: "magnetometer", ManualText: "manual-text", MediaPlaybackWhileNotVisible: "media-playback-while-not-visible", Microphone: "microphone", Midi: "midi", OnDeviceSpeechRecognition: "on-device-speech-recognition", OtpCredentials: "otp-credentials", Payment: "payment", PictureInPicture: "picture-in-picture", PrivateStateTokenIssuance: "private-state-token-issuance", PrivateStateTokenRedemption: "private-state-token-redemption", PublickeyCredentialsCreate: "publickey-credentials-create", PublickeyCredentialsGet: "publickey-credentials-get", PublickeyCredentialsRemoteClientDataJson: "publickey-credentials-remote-client-data-json", Rewriter: "rewriter", ScreenWakeLock: "screen-wake-lock", Serial: "serial", SmartCard: "smart-card", SpeakerSelection: "speaker-selection", StorageAccess: "storage-access", SubApps: "sub-apps", Summarizer: "summarizer", SyncXhr: "sync-xhr", Tools: "tools", Translator: "translator", UnboundedElement: "unbounded-element", Unload: "unload", Usb: "usb", UsbUnrestricted: "usb-unrestricted", VerticalScroll: "vertical-scroll", WebAppInstallation: "web-app-installation", Webnn: "webnn", WebPrinting: "web-printing", WebShare: "web-share", WindowManagement: "window-management", Writer: "writer", XrSpatialTracking: "xr-spatial-tracking"});
1062
+ inspectorBackend.registerEnum("Page.PermissionsPolicyFeature", {Accelerometer: "accelerometer", AllScreensCapture: "all-screens-capture", AmbientLightSensor: "ambient-light-sensor", AriaNotify: "aria-notify", Autofill: "autofill", Autoplay: "autoplay", Bluetooth: "bluetooth", Camera: "camera", CapturedSurfaceControl: "captured-surface-control", ChDpr: "ch-dpr", ChDeviceMemory: "ch-device-memory", ChDownlink: "ch-downlink", ChEct: "ch-ect", ChPrefersColorScheme: "ch-prefers-color-scheme", ChPrefersReducedMotion: "ch-prefers-reduced-motion", ChPrefersReducedTransparency: "ch-prefers-reduced-transparency", ChRtt: "ch-rtt", ChSaveData: "ch-save-data", ChUa: "ch-ua", ChUaArch: "ch-ua-arch", ChUaBitness: "ch-ua-bitness", ChUaHighEntropyValues: "ch-ua-high-entropy-values", ChUaPlatform: "ch-ua-platform", ChUaModel: "ch-ua-model", ChUaMobile: "ch-ua-mobile", ChUaFormFactors: "ch-ua-form-factors", ChUaFullVersion: "ch-ua-full-version", ChUaFullVersionList: "ch-ua-full-version-list", ChUaPlatformVersion: "ch-ua-platform-version", ChUaWow64: "ch-ua-wow64", ChViewportHeight: "ch-viewport-height", ChViewportWidth: "ch-viewport-width", ChWidth: "ch-width", ClipboardRead: "clipboard-read", ClipboardWrite: "clipboard-write", ComputePressure: "compute-pressure", ControlledFrame: "controlled-frame", CrossOriginIsolated: "cross-origin-isolated", DeferredFetch: "deferred-fetch", DeferredFetchMinimal: "deferred-fetch-minimal", DeviceAttributes: "device-attributes", DigitalCredentialsCreate: "digital-credentials-create", DigitalCredentialsGet: "digital-credentials-get", DirectSockets: "direct-sockets", DirectSocketsMulticast: "direct-sockets-multicast", DisplayCapture: "display-capture", DocumentDomain: "document-domain", EncryptedMedia: "encrypted-media", ExecutionWhileOutOfViewport: "execution-while-out-of-viewport", ExecutionWhileNotRendered: "execution-while-not-rendered", FocusWithoutUserActivation: "focus-without-user-activation", Fullscreen: "fullscreen", Frobulate: "frobulate", Gamepad: "gamepad", Geolocation: "geolocation", Gyroscope: "gyroscope", Haptics: "haptics", Hid: "hid", IdentityCredentialsGet: "identity-credentials-get", IdleDetection: "idle-detection", KeyboardMap: "keyboard-map", LanguageDetector: "language-detector", LanguageModel: "language-model", LocalFonts: "local-fonts", LocalNetwork: "local-network", LocalNetworkAccess: "local-network-access", LoopbackNetwork: "loopback-network", Magnetometer: "magnetometer", ManualText: "manual-text", MediaPlaybackWhileNotVisible: "media-playback-while-not-visible", Microphone: "microphone", Midi: "midi", OnDeviceSpeechRecognition: "on-device-speech-recognition", OtpCredentials: "otp-credentials", Payment: "payment", PictureInPicture: "picture-in-picture", PrivateStateTokenIssuance: "private-state-token-issuance", PrivateStateTokenRedemption: "private-state-token-redemption", PublickeyCredentialsCreate: "publickey-credentials-create", PublickeyCredentialsGet: "publickey-credentials-get", PublickeyCredentialsRemoteClientDataJson: "publickey-credentials-remote-client-data-json", Rewriter: "rewriter", ScreenWakeLock: "screen-wake-lock", SemanticEmbedder: "semantic-embedder", Serial: "serial", SmartCard: "smart-card", SpeakerSelection: "speaker-selection", StorageAccess: "storage-access", SubApps: "sub-apps", Summarizer: "summarizer", SyncXhr: "sync-xhr", Tools: "tools", Translator: "translator", UnboundedElement: "unbounded-element", Unload: "unload", Usb: "usb", UsbUnrestricted: "usb-unrestricted", VerticalScroll: "vertical-scroll", WebAppInstallation: "web-app-installation", Webnn: "webnn", WebPrinting: "web-printing", WebShare: "web-share", WindowManagement: "window-management", Writer: "writer", XrSpatialTracking: "xr-spatial-tracking"});
1063
1063
  inspectorBackend.registerEnum("Page.PermissionsPolicyBlockReason", {Header: "Header", IframeAttribute: "IframeAttribute", InFencedFrameTree: "InFencedFrameTree", InIsolatedApp: "InIsolatedApp"});
1064
1064
  inspectorBackend.registerEnum("Page.OriginTrialTokenStatus", {Success: "Success", NotSupported: "NotSupported", Insecure: "Insecure", Expired: "Expired", WrongOrigin: "WrongOrigin", InvalidSignature: "InvalidSignature", Malformed: "Malformed", WrongVersion: "WrongVersion", FeatureDisabled: "FeatureDisabled", TokenDisabled: "TokenDisabled", FeatureDisabledForUser: "FeatureDisabledForUser", UnknownTrial: "UnknownTrial"});
1065
1065
  inspectorBackend.registerEnum("Page.OriginTrialStatus", {Enabled: "Enabled", ValidTokenNotProvided: "ValidTokenNotProvided", OSNotSupported: "OSNotSupported", TrialNotAllowed: "TrialNotAllowed"});