Skip to content

Commit db5023d

Browse files
copybara-service[bot]Perfetto Team
andauthored
Copybara import from Chromium: proto and stdlib changes (#5808)
Copybara import from Chromium: proto and stdlib changes - 595f764e4b5cd0a73f1b69fcd0b99672bf0f3e2a Sync feature protos. by Googler <noreply@google.com> COPYBARA_IMPORT=Project import generated by Copybara. GitOrigin-RevId: 595f764e4b5cd0a73f1b69fcd0b99672bf0f3e2a Co-authored-by: Perfetto Team <copybara-servicebot@google.com>
1 parent a4eb1e8 commit db5023d

1 file changed

Lines changed: 22 additions & 2 deletions

File tree

protos/third_party/chromium/optimization_guide/common_quality_data.proto

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ message ContentAttributes {
376376
}
377377

378378
// The geometry of the content, in the page coordinate system.
379-
// Next ID: 8
379+
// Next ID: 9
380380
// NOTE: If `visual_bounding_box` is empty, i.e., the content is offscreen and
381381
// it's in an iframe, the `outer_bounding_box` may be incorrect. See crbug.com/384996050
382382
// for details.
@@ -425,6 +425,9 @@ message Geometry {
425425
features = { field_presence: EXPLICIT }
426426
];
427427

428+
// The computed CSS position property.
429+
CssPosition css_position = 8 [features = { field_presence: EXPLICIT }];
430+
428431
reserved 4, 5;
429432
}
430433

@@ -782,7 +785,7 @@ message IframeData {
782785

783786
// The data for a frame in the web page. This is the common data structure for
784787
// both the root frame and embedded iframes.
785-
// Next ID: 12
788+
// Next ID: 13
786789
message FrameData {
787790
// The security origin of the frame.
788791
SecurityOrigin security_origin = 1 [features = { field_presence: EXPLICIT }];
@@ -817,6 +820,10 @@ message FrameData {
817820
// the field in ActionsResult.
818821
repeated ScriptToolResult script_tool_results = 11;
819822

823+
// Positive used line height in CSS px. Needed for scaling-proof
824+
// geometry rules (e.g. menu popup heuristics expecting a minimum size).
825+
int32 default_line_height_px = 12 [features = { field_presence: EXPLICIT }];
826+
820827
reserved 7, 10;
821828
}
822829

@@ -2313,6 +2320,19 @@ enum ContentAttributeType {
23132320
reserved 12, 13, 14, 15, 16, 17, 18, 19;
23142321
}
23152322

2323+
// CSS position property values.
2324+
enum CssPosition {
2325+
CSS_POSITION_STATIC_DEFAULT = 0;
2326+
2327+
CSS_POSITION_RELATIVE = 1;
2328+
2329+
CSS_POSITION_ABSOLUTE = 2;
2330+
2331+
CSS_POSITION_FIXED = 3;
2332+
2333+
CSS_POSITION_STICKY = 4;
2334+
}
2335+
23162336
// The reason why a node is clickable.
23172337
// Next ID: 17
23182338
enum ClickabilityReason {

0 commit comments

Comments
 (0)