From 26b9efb3afd13c65f0d97a89e827f3582a90dece Mon Sep 17 00:00:00 2001 From: Perfetto Team Date: Fri, 9 Oct 2026 09:48:46 -0700 Subject: [PATCH] Copybara import from Chromium: proto and stdlib changes - 7bd1ddb0ba77cdc07d07e9fd72c9525e048aef1d Sync feature protos. by Googler COPYBARA_IMPORT=Project import generated by Copybara. GitOrigin-RevId: 7bd1ddb0ba77cdc07d07e9fd72c9525e048aef1d --- .../optimization_guide/actions_data.proto | 6 ++++- .../common_quality_data.proto | 27 +++++++++++++++++-- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/protos/third_party/chromium/optimization_guide/actions_data.proto b/protos/third_party/chromium/optimization_guide/actions_data.proto index c3fcfa24d01..a6a7d6fb0fc 100644 --- a/protos/third_party/chromium/optimization_guide/actions_data.proto +++ b/protos/third_party/chromium/optimization_guide/actions_data.proto @@ -354,11 +354,15 @@ message FormFillingRequest { // This AttemptFormFillingAction in development and future changes are possible // once the model constraings/performance are understood. // -// Next ID: 3 +// Next ID: 4 message AttemptFormFillingAction { int32 tab_id = 1 [features = { field_presence: EXPLICIT }]; repeated FormFillingRequest form_filling_requests = 2; + + // Opaque token representing an authorized token for credit card fetching for + // autofill without additional user prompting in Chrome. + string credit_card_opaque_token = 3 [features = { field_presence: EXPLICIT }]; } // Attempts to fill One-Time Password (OTP) /verification codes in the tab. This diff --git a/protos/third_party/chromium/optimization_guide/common_quality_data.proto b/protos/third_party/chromium/optimization_guide/common_quality_data.proto index fd5d66c9563..8624e487207 100644 --- a/protos/third_party/chromium/optimization_guide/common_quality_data.proto +++ b/protos/third_party/chromium/optimization_guide/common_quality_data.proto @@ -279,7 +279,7 @@ message ContentNode { ContentAttributes content_attributes = 2 [features = { field_presence: EXPLICIT }]; } -// Next ID: 30 +// Next ID: 31 message ContentAttributes { oneof content_data { // Only set if attribute_type is CONTENT_ATTRIBUTE_TEXT. @@ -314,6 +314,9 @@ message ContentAttributes { // Only set if attribute_type is CONTENT_ATTRIBUTE_TABLE_ROW. TableRowData table_row_data = 13; + + // Only set if attribute_type is CONTENT_ATTRIBUTE_MATH. + MathData math_data = 30; } // A unique identifier for the DOM node which generated this ContentNode. @@ -987,6 +990,23 @@ message TableRowData { TableRowType type = 1 [features = { field_presence: EXPLICIT }]; } +message MathData { + // The subtree, re-serialized with only known MathML tags (unknown + // MathML tags become ; non-MathML tags are unwrapped) and the alttext, + // mathvariant, rowspan and columnspan attributes, minus annotations. `&`, + // `<`, `>` and `$` are XML-escaped. Unset if the markup would exceed 65536 + // bytes or 128 levels of nesting. + // + // For backward compatibility, the node's descendants also carry the formula + // as rendered text. + string stripped_mathml = 1 [features = { field_presence: EXPLICIT }]; + + // Whether the formula is laid out as a block rather than inline (from + // computed style, so CSS `display: block math` without a `display="block"` + // attribute is also covered). + bool is_block = 2 [features = { field_presence: EXPLICIT }]; +} + // Represents the interaction information for the page. This is for top-level // interactions, such as the mouse position and focused element, for which // there can only be one unique value. @@ -2467,7 +2487,7 @@ enum AnnotatedPageContentMode { // When adding new types, please also update AIPageContentAttributeType in // third_party/blink/public/mojom/content_extraction/ai_page_content.mojom. // See crrev.com/c/6072788 for an example. -// Next ID: 30 +// Next ID: 31 enum ContentAttributeType { // Unknown is not a valid attribute type and should never be used by the // client. You can consider discarding ContentNodes with this attribute type. @@ -2520,6 +2540,9 @@ enum ContentAttributeType { CONTENT_ATTRIBUTE_DIALOG_MODELESS = 29; + // MathML formulas. + CONTENT_ATTRIBUTE_MATH = 30; + reserved 12, 13, 14, 15, 16, 17, 18, 19; }