devtools-protocol 0.0.1483532 → 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.",
|
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
|
@@ -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
|
*/
|
@@ -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
|
*/
|
@@ -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
|
*/
|
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
|
/**
|