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/pdf/accessibility.cc | |
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/pdf/accessibility.cc')
-rw-r--r-- | chromium/pdf/accessibility.cc | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/chromium/pdf/accessibility.cc b/chromium/pdf/accessibility.cc index 7cf9b5df260..ed259653f69 100644 --- a/chromium/pdf/accessibility.cc +++ b/chromium/pdf/accessibility.cc @@ -123,6 +123,7 @@ void GetAccessibilityHighlightInfo( highlight_info.index_in_page = i; highlight_info.bounds = std::move(cur_highlight_info.bounds); highlight_info.color = cur_highlight_info.color; + highlight_info.note_text = std::move(cur_highlight_info.note_text); if (!GetEnclosingTextRunRangeForCharRange( text_runs, cur_highlight_info.start_char_index, @@ -165,6 +166,15 @@ void GetAccessibilityTextFieldInfo( } } +void GetAccessibilityFormFieldInfo( + PDFEngine* engine, + int32_t page_index, + uint32_t text_run_count, + pp::PDF::PrivateAccessibilityFormFieldInfo* form_fields) { + GetAccessibilityTextFieldInfo(engine, page_index, text_run_count, + &form_fields->text_fields); +} + } // namespace bool GetAccessibilityInfo( @@ -253,8 +263,8 @@ bool GetAccessibilityInfo( &page_objects->images); GetAccessibilityHighlightInfo(engine, page_index, *text_runs, &page_objects->highlights); - GetAccessibilityTextFieldInfo(engine, page_index, page_info->text_run_count, - &page_objects->text_fields); + GetAccessibilityFormFieldInfo(engine, page_index, page_info->text_run_count, + &page_objects->form_fields); return true; } |