devtools-protocol 0.0.1679354 → 0.0.1681094

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.
@@ -11863,6 +11863,26 @@
11863
11863
  }
11864
11864
  ]
11865
11865
  },
11866
+ {
11867
+ "name": "setCPUPerformanceOverride",
11868
+ "description": "Overrides the value of navigator.cpuPerformance",
11869
+ "experimental": true,
11870
+ "parameters": [
11871
+ {
11872
+ "name": "performanceTier",
11873
+ "description": "Override value. Omitting the parameter disables the override.",
11874
+ "optional": true,
11875
+ "type": "string",
11876
+ "enum": [
11877
+ "unknown",
11878
+ "low",
11879
+ "mid",
11880
+ "high",
11881
+ "ultra"
11882
+ ]
11883
+ }
11884
+ ]
11885
+ },
11866
11886
  {
11867
11887
  "name": "setUserAgentOverride",
11868
11888
  "description": "Allows overriding user agent with the given string.\n`userAgentMetadata` must be set for Client Hint headers to be sent.",
@@ -21772,7 +21792,6 @@
21772
21792
  "identity-credentials-get",
21773
21793
  "idle-detection",
21774
21794
  "interest-cohort",
21775
- "join-ad-interest-group",
21776
21795
  "keyboard-map",
21777
21796
  "language-detector",
21778
21797
  "language-model",
@@ -21793,9 +21812,7 @@
21793
21812
  "private-state-token-redemption",
21794
21813
  "publickey-credentials-create",
21795
21814
  "publickey-credentials-get",
21796
- "record-ad-auction-events",
21797
21815
  "rewriter",
21798
- "run-ad-auction",
21799
21816
  "screen-wake-lock",
21800
21817
  "serial",
21801
21818
  "shared-storage",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1679354",
3
+ "version": "0.0.1681094",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -570,6 +570,22 @@ domain Emulation
570
570
  # Hardware concurrency to report
571
571
  integer hardwareConcurrency
572
572
 
573
+ # Overrides the value of navigator.cpuPerformance
574
+ experimental command setCPUPerformanceOverride
575
+ parameters
576
+ # Override value. Omitting the parameter disables the override.
577
+ optional enum performanceTier
578
+ # Tier 0: Unknown
579
+ unknown
580
+ # Tier 1: Low
581
+ low
582
+ # Tier 2: Mid
583
+ mid
584
+ # Tier 3: High
585
+ high
586
+ # Tier 4: Ultra
587
+ ultra
588
+
573
589
  # Allows overriding user agent with the given string.
574
590
  # `userAgentMetadata` must be set for Client Hint headers to be sent.
575
591
  command setUserAgentOverride
@@ -131,7 +131,6 @@ domain Page
131
131
  identity-credentials-get
132
132
  idle-detection
133
133
  interest-cohort
134
- join-ad-interest-group
135
134
  keyboard-map
136
135
  language-detector
137
136
  language-model
@@ -152,9 +151,7 @@ domain Page
152
151
  private-state-token-redemption
153
152
  publickey-credentials-create
154
153
  publickey-credentials-get
155
- record-ad-auction-events
156
154
  rewriter
157
- run-ad-auction
158
155
  screen-wake-lock
159
156
  serial
160
157
  # Deprecated.
@@ -3550,6 +3550,14 @@ export namespace ProtocolMapping {
3550
3550
  paramsType: [Protocol.Emulation.SetHardwareConcurrencyOverrideRequest];
3551
3551
  returnType: void;
3552
3552
  };
3553
+ /**
3554
+ * Overrides the value of navigator.cpuPerformance
3555
+ * @experimental
3556
+ */
3557
+ 'Emulation.setCPUPerformanceOverride': {
3558
+ paramsType: [Protocol.Emulation.SetCPUPerformanceOverrideRequest?];
3559
+ returnType: void;
3560
+ };
3553
3561
  /**
3554
3562
  * Allows overriding user agent with the given string.
3555
3563
  * `userAgentMetadata` must be set for Client Hint headers to be sent.
@@ -2388,6 +2388,12 @@ export namespace ProtocolProxyApi {
2388
2388
  */
2389
2389
  setHardwareConcurrencyOverride(params: Protocol.Emulation.SetHardwareConcurrencyOverrideRequest): Promise<void>;
2390
2390
 
2391
+ /**
2392
+ * Overrides the value of navigator.cpuPerformance
2393
+ * @experimental
2394
+ */
2395
+ setCPUPerformanceOverride(params: Protocol.Emulation.SetCPUPerformanceOverrideRequest): Promise<void>;
2396
+
2391
2397
  /**
2392
2398
  * Allows overriding user agent with the given string.
2393
2399
  * `userAgentMetadata` must be set for Client Hint headers to be sent.
@@ -2526,6 +2526,12 @@ export namespace ProtocolTestsProxyApi {
2526
2526
  */
2527
2527
  setHardwareConcurrencyOverride(params: Protocol.Emulation.SetHardwareConcurrencyOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
2528
2528
 
2529
+ /**
2530
+ * Overrides the value of navigator.cpuPerformance
2531
+ * @experimental
2532
+ */
2533
+ setCPUPerformanceOverride(params: Protocol.Emulation.SetCPUPerformanceOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
2534
+
2529
2535
  /**
2530
2536
  * Allows overriding user agent with the given string.
2531
2537
  * `userAgentMetadata` must be set for Client Hint headers to be sent.
@@ -9987,6 +9987,21 @@ export namespace Protocol {
9987
9987
  hardwareConcurrency: integer;
9988
9988
  }
9989
9989
 
9990
+ export const enum SetCPUPerformanceOverrideRequestPerformanceTier {
9991
+ Unknown = 'unknown',
9992
+ Low = 'low',
9993
+ Mid = 'mid',
9994
+ High = 'high',
9995
+ Ultra = 'ultra',
9996
+ }
9997
+
9998
+ export interface SetCPUPerformanceOverrideRequest {
9999
+ /**
10000
+ * Override value. Omitting the parameter disables the override.
10001
+ */
10002
+ performanceTier?: ('unknown' | 'low' | 'mid' | 'high' | 'ultra');
10003
+ }
10004
+
9990
10005
  export interface SetUserAgentOverrideRequest {
9991
10006
  /**
9992
10007
  * User agent to use.
@@ -16626,7 +16641,7 @@ export namespace Protocol {
16626
16641
  * in services/network/public/cpp/permissions_policy/permissions_policy_features.json5.
16627
16642
  * @experimental
16628
16643
  */
16629
- export type PermissionsPolicyFeature = ('accelerometer' | 'all-screens-capture' | 'ambient-light-sensor' | 'aria-notify' | 'autofill' | 'autoplay' | 'bluetooth' | 'browsing-topics' | 'camera' | 'captured-surface-control' | 'ch-dpr' | 'ch-device-memory' | 'ch-downlink' | 'ch-ect' | 'ch-prefers-color-scheme' | 'ch-prefers-reduced-motion' | 'ch-prefers-reduced-transparency' | 'ch-rtt' | 'ch-save-data' | 'ch-ua' | 'ch-ua-arch' | 'ch-ua-bitness' | 'ch-ua-high-entropy-values' | 'ch-ua-platform' | 'ch-ua-model' | 'ch-ua-mobile' | 'ch-ua-form-factors' | 'ch-ua-full-version' | 'ch-ua-full-version-list' | 'ch-ua-platform-version' | 'ch-ua-wow64' | 'ch-viewport-height' | 'ch-viewport-width' | 'ch-width' | 'clipboard-read' | 'clipboard-write' | 'compute-pressure' | 'controlled-frame' | 'cross-origin-isolated' | 'deferred-fetch' | 'deferred-fetch-minimal' | 'device-attributes' | 'digital-credentials-create' | 'digital-credentials-get' | 'direct-sockets' | 'direct-sockets-multicast' | 'display-capture' | 'document-domain' | 'encrypted-media' | 'execution-while-out-of-viewport' | 'execution-while-not-rendered' | 'focus-without-user-activation' | 'fullscreen' | 'frobulate' | 'gamepad' | 'geolocation' | 'gyroscope' | 'hid' | 'identity-credentials-get' | 'idle-detection' | 'interest-cohort' | 'join-ad-interest-group' | 'keyboard-map' | 'language-detector' | 'language-model' | 'local-fonts' | 'local-network' | 'local-network-access' | 'loopback-network' | 'magnetometer' | 'manual-text' | 'media-playback-while-not-visible' | 'microphone' | 'midi' | 'on-device-speech-recognition' | 'otp-credentials' | 'payment' | 'picture-in-picture' | 'private-state-token-issuance' | 'private-state-token-redemption' | 'publickey-credentials-create' | 'publickey-credentials-get' | 'record-ad-auction-events' | 'rewriter' | 'run-ad-auction' | 'screen-wake-lock' | 'serial' | 'shared-storage' | 'shared-storage-select-url' | 'smart-card' | 'speaker-selection' | 'storage-access' | 'sub-apps' | 'summarizer' | 'sync-xhr' | 'tools' | 'translator' | 'unload' | 'usb' | 'usb-unrestricted' | 'vertical-scroll' | 'web-app-installation' | 'webnn' | 'web-printing' | 'web-share' | 'window-management' | 'writer' | 'xr-spatial-tracking');
16644
+ export type PermissionsPolicyFeature = ('accelerometer' | 'all-screens-capture' | 'ambient-light-sensor' | 'aria-notify' | 'autofill' | 'autoplay' | 'bluetooth' | 'browsing-topics' | 'camera' | 'captured-surface-control' | 'ch-dpr' | 'ch-device-memory' | 'ch-downlink' | 'ch-ect' | 'ch-prefers-color-scheme' | 'ch-prefers-reduced-motion' | 'ch-prefers-reduced-transparency' | 'ch-rtt' | 'ch-save-data' | 'ch-ua' | 'ch-ua-arch' | 'ch-ua-bitness' | 'ch-ua-high-entropy-values' | 'ch-ua-platform' | 'ch-ua-model' | 'ch-ua-mobile' | 'ch-ua-form-factors' | 'ch-ua-full-version' | 'ch-ua-full-version-list' | 'ch-ua-platform-version' | 'ch-ua-wow64' | 'ch-viewport-height' | 'ch-viewport-width' | 'ch-width' | 'clipboard-read' | 'clipboard-write' | 'compute-pressure' | 'controlled-frame' | 'cross-origin-isolated' | 'deferred-fetch' | 'deferred-fetch-minimal' | 'device-attributes' | 'digital-credentials-create' | 'digital-credentials-get' | 'direct-sockets' | 'direct-sockets-multicast' | 'display-capture' | 'document-domain' | 'encrypted-media' | 'execution-while-out-of-viewport' | 'execution-while-not-rendered' | 'focus-without-user-activation' | 'fullscreen' | 'frobulate' | 'gamepad' | 'geolocation' | 'gyroscope' | 'hid' | 'identity-credentials-get' | 'idle-detection' | 'interest-cohort' | 'keyboard-map' | 'language-detector' | 'language-model' | 'local-fonts' | 'local-network' | 'local-network-access' | 'loopback-network' | 'magnetometer' | 'manual-text' | 'media-playback-while-not-visible' | 'microphone' | 'midi' | 'on-device-speech-recognition' | 'otp-credentials' | 'payment' | 'picture-in-picture' | 'private-state-token-issuance' | 'private-state-token-redemption' | 'publickey-credentials-create' | 'publickey-credentials-get' | 'rewriter' | 'screen-wake-lock' | 'serial' | 'shared-storage' | 'shared-storage-select-url' | 'smart-card' | 'speaker-selection' | 'storage-access' | 'sub-apps' | 'summarizer' | 'sync-xhr' | 'tools' | 'translator' | 'unload' | 'usb' | 'usb-unrestricted' | 'vertical-scroll' | 'web-app-installation' | 'webnn' | 'web-printing' | 'web-share' | 'window-management' | 'writer' | 'xr-spatial-tracking');
16630
16645
 
16631
16646
  /**
16632
16647
  * Reason for a permissions policy feature to be disabled.