assistant: Handle scrolls in AssistantCardElementView
When AssistantCardElementView is focused, the true focused item is a node in the contained web contents. We override ScrollRectToVisible() to defer the scroll to FocusedNodeChanged() called by the contents. In addition, when View::HandleAccessibleAction(ax::mojom::Action::kScrollToMakeVisible) is called on AssistantCardElementView, it will scroll to currently focused node. Bug: b/143370952 Test: manual Change-Id: I315db0131e5517bf98d3e76f41203d00555237b3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1902709 Commit-Queue: Tao Wu <wutao@chromium.org> Reviewed-by:Peter Kasting <pkasting@chromium.org> Reviewed-by:
Xiaohui Chen <xiaohuic@chromium.org> Cr-Commit-Position: refs/heads/master@{#715093}
Showing
Please register or sign in to comment