Skip to content

Commit 648bfb7

Browse files
devtools-ci-autoroll-builderDevtools-frontend LUCI CQ
authored andcommitted
Roll browser-protocol
This roll requires a manual review. See http://go/reviewed-rolls for guidance. In case of failures or errors, reach out to someone from config/owner/COMMON_OWNERS. Roll created at https://cr-buildbucket.appspot.com/build/8706595612251843409 [email protected] Bug: none Change-Id: I62a1c633ee80513f447a6d8943a318d3a279ac6d Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6847962 Reviewed-by: Alex Rudenko <[email protected]> Commit-Queue: Alex Rudenko <[email protected]> Bot-Commit: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
1 parent 367cb5c commit 648bfb7

File tree

9 files changed

+495
-3
lines changed

9 files changed

+495
-3
lines changed

DEPS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ vars = {
2424
'inspector_protocol_revision': 'bdc11c1d3130b92e0986f38f2e58f93cc5a674a8',
2525

2626
# Keeping track of the last time we rolled the browser protocol files.
27-
'chromium_browser_protocol_revision' : 'b01006b800dc998ce0ce6e0ceee1dcef6bae1de3',
27+
'chromium_browser_protocol_revision' : 'a793fb8a0e2d0e9948c8e02bb5aff6b57123f438',
2828

2929
'clang_format_url': 'https://chromium.googlesource.com/external/github.com/llvm/llvm-project/clang/tools/clang-format.git',
3030
'clang_format_revision': '37f6e68a107df43b7d7e044fd36a13cbae3413f2',

front_end/generated/InspectorBackendCommands.js

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front_end/generated/protocol-mapping.d.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2626,6 +2626,27 @@ export namespace ProtocolMapping {
26262626
paramsType: [Protocol.Emulation.SetSmallViewportHeightDifferenceOverrideRequest];
26272627
returnType: void;
26282628
};
2629+
/**
2630+
* Returns device's screen configuration.
2631+
*/
2632+
'Emulation.getScreenInfos': {
2633+
paramsType: [];
2634+
returnType: Protocol.Emulation.GetScreenInfosResponse;
2635+
};
2636+
/**
2637+
* Add a new screen to the device. Only supported in headless mode.
2638+
*/
2639+
'Emulation.addScreen': {
2640+
paramsType: [Protocol.Emulation.AddScreenRequest];
2641+
returnType: Protocol.Emulation.AddScreenResponse;
2642+
};
2643+
/**
2644+
* Remove screen from the device. Only supported in headless mode.
2645+
*/
2646+
'Emulation.removeScreen': {
2647+
paramsType: [Protocol.Emulation.RemoveScreenRequest];
2648+
returnType: void;
2649+
};
26292650
/**
26302651
* Sets breakpoint on particular native event.
26312652
*/

front_end/generated/protocol-proxy-api.d.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1806,6 +1806,21 @@ declare namespace ProtocolProxyApi {
18061806
*/
18071807
invoke_setSmallViewportHeightDifferenceOverride(params: Protocol.Emulation.SetSmallViewportHeightDifferenceOverrideRequest): Promise<Protocol.ProtocolResponseWithError>;
18081808

1809+
/**
1810+
* Returns device's screen configuration.
1811+
*/
1812+
invoke_getScreenInfos(): Promise<Protocol.Emulation.GetScreenInfosResponse>;
1813+
1814+
/**
1815+
* Add a new screen to the device. Only supported in headless mode.
1816+
*/
1817+
invoke_addScreen(params: Protocol.Emulation.AddScreenRequest): Promise<Protocol.Emulation.AddScreenResponse>;
1818+
1819+
/**
1820+
* Remove screen from the device. Only supported in headless mode.
1821+
*/
1822+
invoke_removeScreen(params: Protocol.Emulation.RemoveScreenRequest): Promise<Protocol.ProtocolResponseWithError>;
1823+
18091824
}
18101825
export interface EmulationDispatcher {
18111826
/**

front_end/generated/protocol.ts

Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6707,6 +6707,98 @@ export namespace Emulation {
67076707
available?: boolean;
67086708
}
67096709

6710+
export interface WorkAreaInsets {
6711+
/**
6712+
* Work area top inset in pixels. Default is 0;
6713+
*/
6714+
top?: integer;
6715+
/**
6716+
* Work area left inset in pixels. Default is 0;
6717+
*/
6718+
left?: integer;
6719+
/**
6720+
* Work area bottom inset in pixels. Default is 0;
6721+
*/
6722+
bottom?: integer;
6723+
/**
6724+
* Work area right inset in pixels. Default is 0;
6725+
*/
6726+
right?: integer;
6727+
}
6728+
6729+
export type ScreenId = OpaqueIdentifier<string, 'Protocol.Emulation.ScreenId'>;
6730+
6731+
/**
6732+
* Screen information similar to the one returned by window.getScreenDetails() method,
6733+
* see https://w3c.github.io/window-management/#screendetailed.
6734+
*/
6735+
export interface ScreenInfo {
6736+
/**
6737+
* Offset of the left edge of the screen.
6738+
*/
6739+
left: integer;
6740+
/**
6741+
* Offset of the top edge of the screen.
6742+
*/
6743+
top: integer;
6744+
/**
6745+
* Width of the screen.
6746+
*/
6747+
width: integer;
6748+
/**
6749+
* Height of the screen.
6750+
*/
6751+
height: integer;
6752+
/**
6753+
* Offset of the left edge of the available screen area.
6754+
*/
6755+
availLeft: integer;
6756+
/**
6757+
* Offset of the top edge of the available screen area.
6758+
*/
6759+
availTop: integer;
6760+
/**
6761+
* Width of the available screen area.
6762+
*/
6763+
availWidth: integer;
6764+
/**
6765+
* Height of the available screen area.
6766+
*/
6767+
availHeight: integer;
6768+
/**
6769+
* Specifies the screen's device pixel ratio.
6770+
*/
6771+
devicePixelRatio: number;
6772+
/**
6773+
* Specifies the screen's orientation.
6774+
*/
6775+
orientation: ScreenOrientation;
6776+
/**
6777+
* Specifies the screen's color depth in bits.
6778+
*/
6779+
colorDepth: integer;
6780+
/**
6781+
* Indicates whether the device has multiple screens.
6782+
*/
6783+
isExtended: boolean;
6784+
/**
6785+
* Indicates whether the screen is internal to the device or external, attached to the device.
6786+
*/
6787+
isInternal: boolean;
6788+
/**
6789+
* Indicates whether the screen is set as the the operating system primary screen.
6790+
*/
6791+
isPrimary: boolean;
6792+
/**
6793+
* Specifies the descriptive label for the screen.
6794+
*/
6795+
label: string;
6796+
/**
6797+
* Specifies the unique identifier of the screen.
6798+
*/
6799+
id: ScreenId;
6800+
}
6801+
67106802
/**
67116803
* Enum of image types that can be disabled.
67126804
*/
@@ -7109,6 +7201,61 @@ export namespace Emulation {
71097201
*/
71107202
difference: integer;
71117203
}
7204+
7205+
export interface GetScreenInfosResponse extends ProtocolResponseWithError {
7206+
screenInfos: ScreenInfo[];
7207+
}
7208+
7209+
export interface AddScreenRequest {
7210+
/**
7211+
* Offset of the left edge of the screen in pixels.
7212+
*/
7213+
left: integer;
7214+
/**
7215+
* Offset of the top edge of the screen in pixels.
7216+
*/
7217+
top: integer;
7218+
/**
7219+
* The width of the screen in pixels.
7220+
*/
7221+
width: integer;
7222+
/**
7223+
* The height of the screen in pixels.
7224+
*/
7225+
height: integer;
7226+
/**
7227+
* Specifies the screen's work area. Default is entire screen.
7228+
*/
7229+
workAreaInsets?: WorkAreaInsets;
7230+
/**
7231+
* Specifies the screen's device pixel ratio. Default is 1.
7232+
*/
7233+
devicePixelRatio?: number;
7234+
/**
7235+
* Specifies the screen's rotation angle. Available values are 0, 90, 180 and 270. Default is 0.
7236+
*/
7237+
rotation?: integer;
7238+
/**
7239+
* Specifies the screen's color depth in bits. Default is 24.
7240+
*/
7241+
colorDepth?: integer;
7242+
/**
7243+
* Specifies the descriptive label for the screen. Default is none.
7244+
*/
7245+
label?: string;
7246+
/**
7247+
* Indicates whether the screen is internal to the device or external, attached to the device. Default is false.
7248+
*/
7249+
isInternal?: boolean;
7250+
}
7251+
7252+
export interface AddScreenResponse extends ProtocolResponseWithError {
7253+
screenInfo: ScreenInfo;
7254+
}
7255+
7256+
export interface RemoveScreenRequest {
7257+
screenId: ScreenId;
7258+
}
71127259
}
71137260

71147261
/**

front_end/third_party/chromium/README.chromium

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Name: Dependencies sourced from the upstream `chromium` repository
22
URL: https://source.chromium.org/chromium/chromium/src/+/main:components/variations/proto/devtools/
33
Version: N/A
4-
Revision: b01006b800dc998ce0ce6e0ceee1dcef6bae1de3
4+
Revision: a793fb8a0e2d0e9948c8e02bb5aff6b57123f438
55
Update Mechanism: Manual (https://crbug.com/428069060)
66
License: BSD-3-Clause
77
License File: LICENSE

0 commit comments

Comments
 (0)