0
Go to file
wutao 4a6dca0f1e assistant: Scroll container when focus changes
Currently UiElementContainerView does not auto scroll when the focus in the
AssistantCardElementView changes, e.g. during Tab traversing.
This patch surfaces the OnFocusChangedInPage event from WebContentsImpl
to NavigableContentsObserver, so that the UiElementContainerView can do
scroll accordinglly.
In this patch, if the bounds of the focused node is clipped by the
container, it will scroll the node to the center of the container.

Bug: 966806
Test: manual
Change-Id: I974db35731b85fdcb957d9898ae921a12dbd7607
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1885253
Commit-Queue: Tao Wu <wutao@chromium.org>
Reviewed-by: Camille Lamy <clamy@chromium.org>
Reviewed-by: Xiaohui Chen <xiaohuic@chromium.org>
Reviewed-by: Ken Rockot <rockot@google.com>
Reviewed-by: Sam McNally <sammc@chromium.org>
Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#713180}
2019-11-06 21:57:18 +00:00
2019-11-06 17:00:00 +00:00
2019-11-06 21:37:42 +00:00
2019-11-06 21:56:14 +00:00
2019-10-25 21:14:30 +00:00
2019-09-10 17:42:51 +00:00

Logo Chromium

Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.

The project's web site is https://www.chromium.org.

Documentation in the source is rooted in docs/README.md.

Learn how to Get Around the Chromium Source Code Directory Structure .

Description
Chromium是一个开源浏览器项目,提供了一种安全、快速、稳定的方法来体验Web。该浏览器可以在多个平台上下载,包括Mac、Windows、Linux和ChromiumOS。项目原始地址: https://chromium.googlesource.com/chromium/src.git
https://www.mobibrw.com/gitea-mirrors/chromium/src.git
Readme BSD-3-Clause 89 GiB
Languages
C++ 74.4%
Java 8.2%
Objective-C++ 4.6%
TypeScript 4%
Python 2.5%
Other 6.1%