devtools-protocol 0.0.1481382 → 0.0.1484773
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.
@@ -3423,6 +3423,30 @@
|
|
3423
3423
|
}
|
3424
3424
|
]
|
3425
3425
|
},
|
3426
|
+
{
|
3427
|
+
"name": "setContentsSize",
|
3428
|
+
"description": "Set size of the browser contents resizing browser window as necessary.",
|
3429
|
+
"experimental": true,
|
3430
|
+
"parameters": [
|
3431
|
+
{
|
3432
|
+
"name": "windowId",
|
3433
|
+
"description": "Browser window id.",
|
3434
|
+
"$ref": "WindowID"
|
3435
|
+
},
|
3436
|
+
{
|
3437
|
+
"name": "width",
|
3438
|
+
"description": "The window contents width in DIP. Assumes current width if omitted.\nMust be specified if 'height' is omitted.",
|
3439
|
+
"optional": true,
|
3440
|
+
"type": "integer"
|
3441
|
+
},
|
3442
|
+
{
|
3443
|
+
"name": "height",
|
3444
|
+
"description": "The window contents height in DIP. Assumes current height if omitted.\nMust be specified if 'width' is omitted.",
|
3445
|
+
"optional": true,
|
3446
|
+
"type": "integer"
|
3447
|
+
}
|
3448
|
+
]
|
3449
|
+
},
|
3426
3450
|
{
|
3427
3451
|
"name": "setDockTile",
|
3428
3452
|
"description": "Set dock tile details, platform-specific.",
|
@@ -7153,6 +7177,13 @@
|
|
7153
7177
|
"description": "JavaScript object id of the node wrapper.",
|
7154
7178
|
"optional": true,
|
7155
7179
|
"$ref": "Runtime.RemoteObjectId"
|
7180
|
+
},
|
7181
|
+
{
|
7182
|
+
"name": "includeShadowDOM",
|
7183
|
+
"description": "Include all shadow roots. Equals to false if not specified.",
|
7184
|
+
"experimental": true,
|
7185
|
+
"optional": true,
|
7186
|
+
"type": "boolean"
|
7156
7187
|
}
|
7157
7188
|
],
|
7158
7189
|
"returns": [
|
@@ -10491,6 +10522,19 @@
|
|
10491
10522
|
}
|
10492
10523
|
]
|
10493
10524
|
},
|
10525
|
+
{
|
10526
|
+
"name": "setDataSaverOverride",
|
10527
|
+
"description": "Override the value of navigator.connection.saveData",
|
10528
|
+
"experimental": true,
|
10529
|
+
"parameters": [
|
10530
|
+
{
|
10531
|
+
"name": "dataSaverEnabled",
|
10532
|
+
"description": "Override value. Omitting the parameter disables the override.",
|
10533
|
+
"optional": true,
|
10534
|
+
"type": "boolean"
|
10535
|
+
}
|
10536
|
+
]
|
10537
|
+
},
|
10494
10538
|
{
|
10495
10539
|
"name": "setHardwareConcurrencyOverride",
|
10496
10540
|
"experimental": true,
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -1748,6 +1748,18 @@ domain Browser
|
|
1748
1748
|
# with 'left', 'top', 'width' or 'height'. Leaves unspecified fields unchanged.
|
1749
1749
|
Bounds bounds
|
1750
1750
|
|
1751
|
+
# Set size of the browser contents resizing browser window as necessary.
|
1752
|
+
experimental command setContentsSize
|
1753
|
+
parameters
|
1754
|
+
# Browser window id.
|
1755
|
+
WindowID windowId
|
1756
|
+
# The window contents width in DIP. Assumes current width if omitted.
|
1757
|
+
# Must be specified if 'height' is omitted.
|
1758
|
+
optional integer width
|
1759
|
+
# The window contents height in DIP. Assumes current height if omitted.
|
1760
|
+
# Must be specified if 'width' is omitted.
|
1761
|
+
optional integer height
|
1762
|
+
|
1751
1763
|
# Set dock tile details, platform-specific.
|
1752
1764
|
experimental command setDockTile
|
1753
1765
|
parameters
|
@@ -3386,6 +3398,8 @@ domain DOM
|
|
3386
3398
|
optional BackendNodeId backendNodeId
|
3387
3399
|
# JavaScript object id of the node wrapper.
|
3388
3400
|
optional Runtime.RemoteObjectId objectId
|
3401
|
+
# Include all shadow roots. Equals to false if not specified.
|
3402
|
+
experimental optional boolean includeShadowDOM
|
3389
3403
|
returns
|
3390
3404
|
# Outer HTML markup.
|
3391
3405
|
string outerHTML
|
@@ -4874,6 +4888,13 @@ domain Emulation
|
|
4874
4888
|
# Image types to disable.
|
4875
4889
|
array of DisabledImageType imageTypes
|
4876
4890
|
|
4891
|
+
|
4892
|
+
# Override the value of navigator.connection.saveData
|
4893
|
+
experimental command setDataSaverOverride
|
4894
|
+
parameters
|
4895
|
+
# Override value. Omitting the parameter disables the override.
|
4896
|
+
optional boolean dataSaverEnabled
|
4897
|
+
|
4877
4898
|
experimental command setHardwareConcurrencyOverride
|
4878
4899
|
parameters
|
4879
4900
|
# Hardware concurrency to report
|
@@ -1831,6 +1831,13 @@ export namespace ProtocolMapping {
|
|
1831
1831
|
paramsType: [Protocol.Browser.SetWindowBoundsRequest];
|
1832
1832
|
returnType: void;
|
1833
1833
|
};
|
1834
|
+
/**
|
1835
|
+
* Set size of the browser contents resizing browser window as necessary.
|
1836
|
+
*/
|
1837
|
+
'Browser.setContentsSize': {
|
1838
|
+
paramsType: [Protocol.Browser.SetContentsSizeRequest];
|
1839
|
+
returnType: void;
|
1840
|
+
};
|
1834
1841
|
/**
|
1835
1842
|
* Set dock tile details, platform-specific.
|
1836
1843
|
*/
|
@@ -3062,6 +3069,13 @@ export namespace ProtocolMapping {
|
|
3062
3069
|
paramsType: [Protocol.Emulation.SetDisabledImageTypesRequest];
|
3063
3070
|
returnType: void;
|
3064
3071
|
};
|
3072
|
+
/**
|
3073
|
+
* Override the value of navigator.connection.saveData
|
3074
|
+
*/
|
3075
|
+
'Emulation.setDataSaverOverride': {
|
3076
|
+
paramsType: [Protocol.Emulation.SetDataSaverOverrideRequest?];
|
3077
|
+
returnType: void;
|
3078
|
+
};
|
3065
3079
|
'Emulation.setHardwareConcurrencyOverride': {
|
3066
3080
|
paramsType: [Protocol.Emulation.SetHardwareConcurrencyOverrideRequest];
|
3067
3081
|
returnType: void;
|
@@ -998,6 +998,11 @@ export namespace ProtocolProxyApi {
|
|
998
998
|
*/
|
999
999
|
setWindowBounds(params: Protocol.Browser.SetWindowBoundsRequest): Promise<void>;
|
1000
1000
|
|
1001
|
+
/**
|
1002
|
+
* Set size of the browser contents resizing browser window as necessary.
|
1003
|
+
*/
|
1004
|
+
setContentsSize(params: Protocol.Browser.SetContentsSizeRequest): Promise<void>;
|
1005
|
+
|
1001
1006
|
/**
|
1002
1007
|
* Set dock tile details, platform-specific.
|
1003
1008
|
*/
|
@@ -2067,6 +2072,11 @@ export namespace ProtocolProxyApi {
|
|
2067
2072
|
|
2068
2073
|
setDisabledImageTypes(params: Protocol.Emulation.SetDisabledImageTypesRequest): Promise<void>;
|
2069
2074
|
|
2075
|
+
/**
|
2076
|
+
* Override the value of navigator.connection.saveData
|
2077
|
+
*/
|
2078
|
+
setDataSaverOverride(params: Protocol.Emulation.SetDataSaverOverrideRequest): Promise<void>;
|
2079
|
+
|
2070
2080
|
setHardwareConcurrencyOverride(params: Protocol.Emulation.SetHardwareConcurrencyOverrideRequest): Promise<void>;
|
2071
2081
|
|
2072
2082
|
/**
|
@@ -1062,6 +1062,11 @@ export namespace ProtocolTestsProxyApi {
|
|
1062
1062
|
*/
|
1063
1063
|
setWindowBounds(params: Protocol.Browser.SetWindowBoundsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1064
1064
|
|
1065
|
+
/**
|
1066
|
+
* Set size of the browser contents resizing browser window as necessary.
|
1067
|
+
*/
|
1068
|
+
setContentsSize(params: Protocol.Browser.SetContentsSizeRequest): Promise<{id: number, result: void, sessionId: string}>;
|
1069
|
+
|
1065
1070
|
/**
|
1066
1071
|
* Set dock tile details, platform-specific.
|
1067
1072
|
*/
|
@@ -2191,6 +2196,11 @@ export namespace ProtocolTestsProxyApi {
|
|
2191
2196
|
|
2192
2197
|
setDisabledImageTypes(params: Protocol.Emulation.SetDisabledImageTypesRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2193
2198
|
|
2199
|
+
/**
|
2200
|
+
* Override the value of navigator.connection.saveData
|
2201
|
+
*/
|
2202
|
+
setDataSaverOverride(params: Protocol.Emulation.SetDataSaverOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2203
|
+
|
2194
2204
|
setHardwareConcurrencyOverride(params: Protocol.Emulation.SetHardwareConcurrencyOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2195
2205
|
|
2196
2206
|
/**
|
package/types/protocol.d.ts
CHANGED
@@ -4521,6 +4521,23 @@ export namespace Protocol {
|
|
4521
4521
|
bounds: Bounds;
|
4522
4522
|
}
|
4523
4523
|
|
4524
|
+
export interface SetContentsSizeRequest {
|
4525
|
+
/**
|
4526
|
+
* Browser window id.
|
4527
|
+
*/
|
4528
|
+
windowId: WindowID;
|
4529
|
+
/**
|
4530
|
+
* The window contents width in DIP. Assumes current width if omitted.
|
4531
|
+
* Must be specified if 'height' is omitted.
|
4532
|
+
*/
|
4533
|
+
width?: integer;
|
4534
|
+
/**
|
4535
|
+
* The window contents height in DIP. Assumes current height if omitted.
|
4536
|
+
* Must be specified if 'width' is omitted.
|
4537
|
+
*/
|
4538
|
+
height?: integer;
|
4539
|
+
}
|
4540
|
+
|
4524
4541
|
export interface SetDockTileRequest {
|
4525
4542
|
badgeLabel?: string;
|
4526
4543
|
/**
|
@@ -6951,6 +6968,10 @@ export namespace Protocol {
|
|
6951
6968
|
* JavaScript object id of the node wrapper.
|
6952
6969
|
*/
|
6953
6970
|
objectId?: Runtime.RemoteObjectId;
|
6971
|
+
/**
|
6972
|
+
* Include all shadow roots. Equals to false if not specified.
|
6973
|
+
*/
|
6974
|
+
includeShadowDOM?: boolean;
|
6954
6975
|
}
|
6955
6976
|
|
6956
6977
|
export interface GetOuterHTMLResponse {
|
@@ -8967,6 +8988,13 @@ export namespace Protocol {
|
|
8967
8988
|
imageTypes: DisabledImageType[];
|
8968
8989
|
}
|
8969
8990
|
|
8991
|
+
export interface SetDataSaverOverrideRequest {
|
8992
|
+
/**
|
8993
|
+
* Override value. Omitting the parameter disables the override.
|
8994
|
+
*/
|
8995
|
+
dataSaverEnabled?: boolean;
|
8996
|
+
}
|
8997
|
+
|
8970
8998
|
export interface SetHardwareConcurrencyOverrideRequest {
|
8971
8999
|
/**
|
8972
9000
|
* Hardware concurrency to report
|