Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Issue 2688113002: Make ViewRoot the top of the ViewAndroid tree (Closed)

Created:
3 years, 10 months ago by Jinsuk Kim
Modified:
3 years, 10 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, dominickn+watch_chromium.org, yusukes+watch_chromium.org, nona+watch_chromium.org, Peter Beverloo, shuchen+watch_chromium.org, mdjones+watch_chromium.org, donnd+watch_chromium.org, jam, darin-cc_chromium.org, feature-vr-reviews_chromium.org, lizeb+watch-custom-tabs_chromium.org, pkotwicz+watch_chromium.org, halliwell+watch_chromium.org, agrieve+watch_chromium.org, alokp+watch_chromium.org, zpeng+watch_chromium.org, James Su, lcwu+watch_chromium.org, android-webview-reviews_chromium.org, jochen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make ViewRoot the top of the ViewAndroid tree ViewRoot takes over the role of WindowAndroid as the top of view android tree hierarchy. WindowAndroid acts as Android implementation of activity window only. Also added |GerNearestDisplayWindowAndroid| to get around the change that WindowAndroid is not inheriting ViewAndroid(gfx::NativeView) any more. BUG=671401

Patch Set 1 : - #

Total comments: 20

Patch Set 2 : rebased #

Patch Set 3 : comments #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+380 lines, -278 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 6 chunks +16 lines, -9 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java View 1 6 chunks +16 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java View 1 3 chunks +5 lines, -7 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorView.java View 3 chunks +7 lines, -6 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java View 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelContent.java View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java View 1 4 chunks +9 lines, -13 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java View 1 12 chunks +40 lines, -31 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tabmodel/ChromeTabCreator.java View 6 chunks +13 lines, -14 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java View 1 7 chunks +27 lines, -12 lines 2 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/webapps/FullScreenActivity.java View 1 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/input/SelectPopupOtherContentViewTest.java View 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/tab/TabUmaTest.java View 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 chunks +13 lines, -3 lines 1 comment Download
M chrome/android/javatests/src/org/chromium/chrome/browser/tabmodel/TabModelSelectorTabObserverTest.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/compositor/compositor_view.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/android/compositor/compositor_view.cc View 4 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_compositor.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_compositor.cc View 1 1 chunk +4 lines, -5 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.h View 1 3 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.cc View 1 4 chunks +12 lines, -12 lines 0 comments Download
M chromecast/browser/android/apk/src/org/chromium/chromecast/shell/CastWebContentsActivity.java View 1 2 5 chunks +8 lines, -2 lines 0 comments Download
M content/browser/android/content_view_core_impl.h View 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 6 chunks +21 lines, -19 lines 0 comments Download
M content/browser/android/content_view_render_view.h View 3 chunks +6 lines, -4 lines 0 comments Download
M content/browser/android/content_view_render_view.cc View 3 chunks +6 lines, -7 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.h View 4 chunks +8 lines, -3 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 9 chunks +20 lines, -18 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 7 chunks +20 lines, -13 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java View 3 chunks +6 lines, -6 lines 0 comments Download
M content/public/browser/android/compositor.h View 1 2 3 chunks +5 lines, -4 lines 0 comments Download
M content/shell/android/browsertests/src/org/chromium/content_shell/browsertests/ContentShellBrowserTestActivity.java View 2 chunks +2 lines, -1 line 0 comments Download
M content/shell/android/java/src/org/chromium/content_shell/Shell.java View 5 chunks +6 lines, -7 lines 0 comments Download
M content/shell/android/java/src/org/chromium/content_shell/ShellManager.java View 4 chunks +9 lines, -13 lines 0 comments Download
M content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestActivity.java View 1 2 4 chunks +11 lines, -1 line 0 comments Download
M content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java View 4 chunks +6 lines, -1 line 0 comments Download
M ui/android/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M ui/android/display_android_manager.h View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M ui/android/display_android_manager.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M ui/android/dummy_screen_android.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/base/ViewRoot.java View 1 chunk +10 lines, -16 lines 0 comments Download
M ui/android/window_android.h View 3 chunks +2 lines, -7 lines 0 comments Download
M ui/android/window_android.cc View 2 chunks +0 lines, -6 lines 0 comments Download
M ui/display/screen.h View 1 chunk +6 lines, -0 lines 0 comments Download
M ui/display/test/test_screen.h View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/display/test/test_screen.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M ui/snapshot/snapshot_android.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 30 (23 generated)
Jinsuk Kim
Note: Changes many files in chrome/ is for plumbing that passes ViewRoot instead of WindowAndroid ...
3 years, 10 months ago (2017-02-12 11:58:14 UTC) #21
boliu
overall pretty good +oshima for ui/display, I have a question on screen.h https://codereview.chromium.org/2688113002/diff/80001/chrome/android/javatests/src/org/chromium/chrome/browser/tabmodel/TabModelSelectorObserverTestBase.java File chrome/android/javatests/src/org/chromium/chrome/browser/tabmodel/TabModelSelectorObserverTestBase.java ...
3 years, 10 months ago (2017-02-13 22:58:09 UTC) #23
oshima
https://codereview.chromium.org/2688113002/diff/80001/ui/display/screen.h File ui/display/screen.h (right): https://codereview.chromium.org/2688113002/diff/80001/ui/display/screen.h#newcode65 ui/display/screen.h:65: virtual display::Display GetDisplayNearestWindowAndroid( On 2017/02/13 22:58:08, boliu wrote: > ...
3 years, 10 months ago (2017-02-14 00:26:44 UTC) #25
tapted
https://codereview.chromium.org/2688113002/diff/80001/ui/display/screen.h File ui/display/screen.h (right): https://codereview.chromium.org/2688113002/diff/80001/ui/display/screen.h#newcode65 ui/display/screen.h:65: virtual display::Display GetDisplayNearestWindowAndroid( On 2017/02/14 00:26:44, oshima wrote: > ...
3 years, 10 months ago (2017-02-14 00:58:00 UTC) #26
Jinsuk Kim
https://codereview.chromium.org/2688113002/diff/80001/chrome/android/javatests/src/org/chromium/chrome/browser/tabmodel/TabModelSelectorObserverTestBase.java File chrome/android/javatests/src/org/chromium/chrome/browser/tabmodel/TabModelSelectorObserverTestBase.java (right): https://codereview.chromium.org/2688113002/diff/80001/chrome/android/javatests/src/org/chromium/chrome/browser/tabmodel/TabModelSelectorObserverTestBase.java#newcode49 chrome/android/javatests/src/org/chromium/chrome/browser/tabmodel/TabModelSelectorObserverTestBase.java:49: mViewRoot = ViewRoot.create(windowAndroid); On 2017/02/13 22:58:08, boliu wrote: > ...
3 years, 10 months ago (2017-02-14 05:09:59 UTC) #27
boliu
I guess this needs to wait on that other CL now. also probably should add ...
3 years, 10 months ago (2017-02-14 16:44:14 UTC) #28
mthiesse
3 years, 10 months ago (2017-02-14 16:54:28 UTC) #30
vr_shell/ lgtm with some minor comments.

https://codereview.chromium.org/2688113002/diff/120001/chrome/android/java/sr...
File
chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java
(right):

https://codereview.chromium.org/2688113002/diff/120001/chrome/android/java/sr...
chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java:96:
private ContentViewCore mContentCVC;
Remove mContentCVC

https://codereview.chromium.org/2688113002/diff/120001/chrome/android/java/sr...
chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java:347:
mContentCVC.onAttachedToWindow();
mContentCVC is gone on ToT, we no longer rely on a CVC always existing.

Remove this line and the one below.

Powered by Google App Engine
This is Rietveld 408576698