|
|
Introduce ViewRoot forwarding input/view events to native
This CL introduces a new interface ViewRoot to forward Java
view/input events down to native with a view to replacing
the flow through ContentViewCore eventually.
In native side ViewRoot is a subclass of ViewAndroid. It acts
as the root of a ViewAndroid tree, and receives touch/view events
from embedders. It has a reference to WindowAndroid, and paritially
takes over the role it played as the tree root. Therefore WindowAndroid
no longer inherits from ViewAndroid. It effectively reverts
https://crrev.com/2136373002.
ViewRoot is mapped 1:1 to WindowAndroid and shared across all the contents.
WebView is an exception where all activities share the WA instance.
ViewRoot, ViewAndroid, and ViewClient are put together to adopt
the pattern "chain of responsibility" dispatching the events to
the classes implementing |ViewClient| along the view hierarchy, and
conditionally stopping the processing when required.
BUG= 671401
Total comments: 35
Total comments: 30
Total comments: 27
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1124 lines, -230 lines) |
Patch |
 |
M |
android_webview/java/src/org/chromium/android_webview/AwContents.java
|
View
|
1
2
3
4
5
6
|
6 chunks |
+13 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java
|
View
|
1
2
3
4
5
6
|
6 chunks |
+16 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java
|
View
|
1
2
3
4
5
6
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorView.java
|
View
|
1
2
3
4
|
3 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java
|
View
|
1
2
3
4
5
6
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanel.java
|
View
|
1
2
3
4
5
6
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelContent.java
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java
|
View
|
1
2
3
4
5
6
|
4 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java
|
View
|
1
2
3
4
5
6
|
12 chunks |
+32 lines, -20 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/tabmodel/ChromeTabCreator.java
|
View
|
1
2
3
4
|
7 chunks |
+9 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java
|
View
|
1
2
3
4
5
6
|
7 chunks |
+21 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/webapps/FullScreenActivity.java
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/android/javatests/src/org/chromium/chrome/browser/input/SelectPopupOtherContentViewTest.java
|
View
|
1
2
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/android/javatests/src/org/chromium/chrome/browser/tab/TabUmaTest.java
|
View
|
1
2
3
4
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/android/javatests/src/org/chromium/chrome/browser/tabmodel/TabModelSelectorObserverTestBase.java
|
View
|
1
2
3
4
|
3 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/android/javatests/src/org/chromium/chrome/browser/tabmodel/TabModelSelectorTabObserverTest.java
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/android/compositor/compositor_view.h
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/compositor/compositor_view.cc
|
View
|
1
2
3
4
|
4 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/vr_shell/vr_compositor.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/vr_shell/vr_compositor.cc
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/vr_shell/vr_shell.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/vr_shell/vr_shell.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chromecast/browser/android/apk/src/org/chromium/chromecast/shell/CastWebContentsActivity.java
|
View
|
1
2
3
4
|
4 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/android/content_view_core_impl.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+14 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/android/content_view_core_impl.cc
|
View
|
1
2
3
4
5
6
|
7 chunks |
+42 lines, -19 lines |
0 comments
|
Download
|
 |
M |
content/browser/android/content_view_render_view.h
|
View
|
1
2
3
4
|
3 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/android/content_view_render_view.cc
|
View
|
1
2
3
4
|
3 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/compositor_impl_android.h
|
View
|
1
2
3
4
|
4 chunks |
+8 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/compositor_impl_android.cc
|
View
|
1
2
3
4
5
6
|
9 chunks |
+20 lines, -18 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_android.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_android.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/web_contents/web_contents_view_android.h
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/web_contents/web_contents_view_android.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
View
|
1
2
3
4
5
6
|
11 chunks |
+35 lines, -13 lines |
0 comments
|
Download
|
 |
M |
content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java
|
View
|
1
2
3
4
|
4 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/public/android/java/src/org/chromium/content/common/ContentSwitches.java
|
View
|
1
2
3
4
5
6
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/android/compositor.h
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/public/common/content_switches.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/shell/android/browsertests/src/org/chromium/content_shell/browsertests/ContentShellBrowserTestActivity.java
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/shell/android/java/src/org/chromium/content_shell/Shell.java
|
View
|
1
2
3
4
|
5 chunks |
+6 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/shell/android/java/src/org/chromium/content_shell/ShellManager.java
|
View
|
1
2
3
4
|
4 chunks |
+9 lines, -13 lines |
0 comments
|
Download
|
 |
M |
content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java
|
View
|
1
2
3
4
|
4 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/android/BUILD.gn
|
View
|
1
2
3
4
5
6
|
6 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/android/DEPS
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ui/android/display_android_manager.h
|
View
|
1
2
3
4
|
1 chunk |
+8 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/android/display_android_manager.cc
|
View
|
1
2
3
4
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/android/dummy_screen_android.cc
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/android/java/src/org/chromium/ui/base/ViewRoot.java
|
View
|
1
2
3
4
|
1 chunk |
+104 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/android/ui_android_jni_registrar.cc
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/android/view_android.h
|
View
|
1
2
3
4
5
6
|
6 chunks |
+46 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ui/android/view_android.cc
|
View
|
1
2
3
4
5
6
|
7 chunks |
+61 lines, -10 lines |
0 comments
|
Download
|
 |
A |
ui/android/view_android_unittest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+278 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/android/view_client.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/android/view_client.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/android/view_root.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+73 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/android/view_root.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+143 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/android/window_android.h
|
View
|
1
2
3
4
|
3 chunks |
+2 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ui/android/window_android.cc
|
View
|
1
2
3
4
|
2 chunks |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ui/display/screen.h
|
View
|
1
2
3
4
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/snapshot/snapshot_android.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 68 (43 generated)
|