[a11y] Add scrolling action to PP_PDF_SET_SELECTION
This CL adds scrolling when PDFiumEngine::HandleAccessibilityAction is called with PP_PDF_SET_SELECTION and the selection is not visible since Blink triggers also scrolling with setting selection. So, this change makes PDF document scroll the page when a selection is set. AX-Relnotes: When SetSelection action is handled on pdf, it also triggers scrolling if the selection is not in the visible area. For instance, atk_text_set_caret_offset() on pdf scrolls the page if the text is not in the view port. Bug: 993456 Change-Id: I8323eff293b3216e2b862f8df3e896380b1c9945 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2573975Reviewed-by:Dominic Mazzoni <dmazzoni@chromium.org> Reviewed-by:
K. Moon <kmoon@chromium.org> Reviewed-by:
Martin Robinson <mrobinson@igalia.com> Commit-Queue: Julie Kim <jkim@igalia.com> Cr-Commit-Position: refs/heads/master@{#835994}
Showing
Please register or sign in to comment