diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-12 14:27:29 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-13 09:35:20 +0000 |
commit | c30a6232df03e1efbd9f3b226777b07e087a1122 (patch) | |
tree | e992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/ppapi/cpp/private/pdf.h | |
parent | 7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff) | |
download | qtwebengine-chromium-85-based.tar.gz |
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/ppapi/cpp/private/pdf.h')
-rw-r--r-- | chromium/ppapi/cpp/private/pdf.h | 70 |
1 files changed, 69 insertions, 1 deletions
diff --git a/chromium/ppapi/cpp/private/pdf.h b/chromium/ppapi/cpp/private/pdf.h index 03881cea825..0853430d828 100644 --- a/chromium/ppapi/cpp/private/pdf.h +++ b/chromium/ppapi/cpp/private/pdf.h @@ -98,13 +98,81 @@ class PDF { FloatRect bounds; }; + // C++ version of PP_PrivateAccessibilityChoiceFieldOptionInfo. + // Needs to stay in sync with the C version. + struct PrivateAccessibilityChoiceFieldOptionInfo { + std::string name; + bool is_selected; + FloatRect bounds; + }; + + // C++ version of PP_PrivateAccessibilityChoiceFieldInfo. + // Needs to stay in sync with the C version. + struct PrivateAccessibilityChoiceFieldInfo { + std::string name; + std::vector<PrivateAccessibilityChoiceFieldOptionInfo> options; + PP_PrivateChoiceFieldType type; + // Represents if the choice field is non-editable. + bool is_read_only; + // Represents if the choice field is multi-selectable. + bool is_multi_select; + // Represents if the choice field includes an editable text box. + bool has_editable_text_box; + // Index of this choice field in the collection of choice fields in the + // page. + uint32_t index_in_page; + // We anchor the choice field to a text run index, this denotes the text run + // before which the choice field should be inserted in the accessibility + // tree. + uint32_t text_run_index; + FloatRect bounds; + }; + + // C++ version of PP_PrivateAccessibilityButtonInfo. + // Needs to stay in sync with the C version. + struct PrivateAccessibilityButtonInfo { + std::string name; + std::string value; + // Represents the button type. + PP_PrivateButtonType type; + // Represents if the button is non-editable. + bool is_read_only; + // Represents if the radio button or check box is checked or not. + bool is_checked; + // Represents count of controls in the control group. A group of interactive + // form annotations is collectively called a form control group. Here, an + // interactive form annotation, should be either a radio button or a + // checkbox. Value of |control_count| is >= 1. + uint32_t control_count; + // Represents index of the control in the control group. A group of + // interactive form annotations is collectively called a form control group. + // Here, an interactive form annotation, should be either a radio button or + // a checkbox. Value of |control_index| should always be less than + // |control_count|. + uint32_t control_index; + // Index of this button in the collection of buttons in the page. + uint32_t index_in_page; + // We anchor the button to a text run index, this denotes the text run + // before which the button should be inserted in the accessibility tree. + uint32_t text_run_index; + FloatRect bounds; + }; + + // C++ version of PP_PrivateAccessibilityFormFieldInfo. + // Needs to stay in sync with the C version. + struct PrivateAccessibilityFormFieldInfo { + std::vector<PrivateAccessibilityTextFieldInfo> text_fields; + std::vector<PrivateAccessibilityChoiceFieldInfo> choice_fields; + std::vector<PrivateAccessibilityButtonInfo> buttons; + }; + // C++ version of PP_PrivateAccessibilityPageObjects. // Needs to stay in sync with the C version. struct PrivateAccessibilityPageObjects { std::vector<PrivateAccessibilityLinkInfo> links; std::vector<PrivateAccessibilityImageInfo> images; std::vector<PrivateAccessibilityHighlightInfo> highlights; - std::vector<PrivateAccessibilityTextFieldInfo> text_fields; + PrivateAccessibilityFormFieldInfo form_fields; }; // Returns true if the required interface is available. |