devtools-protocol 0.0.1061415 → 0.0.1061995
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.
@@ -8523,7 +8523,8 @@
|
|
8523
8523
|
"type": "string",
|
8524
8524
|
"enum": [
|
8525
8525
|
"jpeg",
|
8526
|
-
"png"
|
8526
|
+
"png",
|
8527
|
+
"webp"
|
8527
8528
|
]
|
8528
8529
|
},
|
8529
8530
|
{
|
@@ -8531,6 +8532,12 @@
|
|
8531
8532
|
"description": "Compression quality from range [0..100] (jpeg only).",
|
8532
8533
|
"optional": true,
|
8533
8534
|
"type": "integer"
|
8535
|
+
},
|
8536
|
+
{
|
8537
|
+
"name": "optimizeForSpeed",
|
8538
|
+
"description": "Optimize image encoding for speed, not for resulting size (defaults to false)",
|
8539
|
+
"optional": true,
|
8540
|
+
"type": "boolean"
|
8534
8541
|
}
|
8535
8542
|
]
|
8536
8543
|
}
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -3908,8 +3908,11 @@ experimental domain HeadlessExperimental
|
|
3908
3908
|
optional enum format
|
3909
3909
|
jpeg
|
3910
3910
|
png
|
3911
|
+
webp
|
3911
3912
|
# Compression quality from range [0..100] (jpeg only).
|
3912
3913
|
optional integer quality
|
3914
|
+
# Optimize image encoding for speed, not for resulting size (defaults to false)
|
3915
|
+
optional boolean optimizeForSpeed
|
3913
3916
|
|
3914
3917
|
# Sends a BeginFrame to the target and returns when the frame was completed. Optionally captures a
|
3915
3918
|
# screenshot from the resulting frame. Requires that the target was created with enabled
|
@@ -8388,7 +8391,7 @@ domain Page
|
|
8388
8391
|
InjectedStyleSheet
|
8389
8392
|
KeepaliveRequest
|
8390
8393
|
Dummy
|
8391
|
-
# Disabled for
|
8394
|
+
# Disabled for RenderFrameHost reasons
|
8392
8395
|
# See content/browser/renderer_host/back_forward_cache_disable.h for explanations.
|
8393
8396
|
ContentSecurityHandler
|
8394
8397
|
ContentWebAuthenticationAPI
|
package/types/protocol.d.ts
CHANGED
@@ -7787,6 +7787,7 @@ export namespace Protocol {
|
|
7787
7787
|
export const enum ScreenshotParamsFormat {
|
7788
7788
|
Jpeg = 'jpeg',
|
7789
7789
|
Png = 'png',
|
7790
|
+
Webp = 'webp',
|
7790
7791
|
}
|
7791
7792
|
|
7792
7793
|
/**
|
@@ -7796,11 +7797,15 @@ export namespace Protocol {
|
|
7796
7797
|
/**
|
7797
7798
|
* Image compression format (defaults to png). (ScreenshotParamsFormat enum)
|
7798
7799
|
*/
|
7799
|
-
format?: ('jpeg' | 'png');
|
7800
|
+
format?: ('jpeg' | 'png' | 'webp');
|
7800
7801
|
/**
|
7801
7802
|
* Compression quality from range [0..100] (jpeg only).
|
7802
7803
|
*/
|
7803
7804
|
quality?: integer;
|
7805
|
+
/**
|
7806
|
+
* Optimize image encoding for speed, not for resulting size (defaults to false)
|
7807
|
+
*/
|
7808
|
+
optimizeForSpeed?: boolean;
|
7804
7809
|
}
|
7805
7810
|
|
7806
7811
|
export interface BeginFrameRequest {
|