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

Issue 2122403002: Android: Extend ViewAndroid (Closed)

Created:
4 years, 5 months ago by no sievers
Modified:
4 years, 5 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, jam, nona+watch_chromium.org, darin-cc_chromium.org, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Android: Extend ViewAndroid This moves cc::Layer ownership from RenderWidgetHostViewAndroid and ContentViewCore to ViewAndroid. Also, ContentViewCore changes from 'is a' ViewAndroid to 'has a' ViewAndroid. RenderWidgetHostViewAndroid also gets its own ViewAndroid now. For getting to the WindowAndroid or ViewAndroidDelegate it will ask its parent. BUG=624666, 598880, 581521, 626765 TBR=dtrainor@chromium.org NOTRY=True Committed: https://crrev.com/e6343711183c73be584725b1b0b7f70a60dd2a5b Cr-Commit-Position: refs/heads/master@{#404740}

Patch Set 1 #

Patch Set 2 : Android: Extend ViewAndroid #

Total comments: 15

Patch Set 3 : comments #

Total comments: 2

Patch Set 4 : rename variable #

Patch Set 5 : rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -115 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelContent.java View 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/android/bottombar/overlay_panel_content.cc View 1 chunk +1 line, -12 lines 0 comments Download
M chrome/browser/android/compositor/layer/overlay_panel_layer.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/tab_android.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/android/content_view_core_impl.h View 1 2 3 4 chunks +14 lines, -20 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 11 chunks +36 lines, -31 lines 2 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 18 chunks +35 lines, -32 lines 0 comments Download
M content/browser/web_contents/web_contents_view_android.cc View 1 2 1 chunk +8 lines, -3 lines 0 comments Download
M content/public/browser/android/content_view_core.h View 3 chunks +7 lines, -3 lines 0 comments Download
M ui/android/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M ui/android/view_android.h View 1 2 1 chunk +45 lines, -7 lines 0 comments Download
A ui/android/view_android.cc View 1 2 1 chunk +86 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (15 generated)
no sievers
Yusuf, ptal!
4 years, 5 months ago (2016-07-07 00:13:52 UTC) #3
Yusuf
https://codereview.chromium.org/2122403002/diff/20001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/2122403002/diff/20001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode434 content/browser/renderer_host/render_widget_host_view_android.cc:434: gfx::Size bounds = view_.GetLayer()->bounds(); If I am getting this ...
4 years, 5 months ago (2016-07-08 16:35:06 UTC) #5
no sievers
https://codereview.chromium.org/2122403002/diff/20001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/2122403002/diff/20001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode434 content/browser/renderer_host/render_widget_host_view_android.cc:434: gfx::Size bounds = view_.GetLayer()->bounds(); On 2016/07/08 16:35:05, Yusuf wrote: ...
4 years, 5 months ago (2016-07-08 18:29:05 UTC) #6
no sievers
https://codereview.chromium.org/2122403002/diff/20001/ui/android/view_android.cc File ui/android/view_android.cc (right): https://codereview.chromium.org/2122403002/diff/20001/ui/android/view_android.cc#newcode18 ui/android/view_android.cc:18: ViewAndroid::ViewAndroid(const JavaRef<jobject>& delegate, On 2016/07/08 16:35:05, Yusuf wrote: > ...
4 years, 5 months ago (2016-07-08 19:22:10 UTC) #7
Yusuf
lgtm other than a naming nit. Thanks Daniel! https://codereview.chromium.org/2122403002/diff/20001/ui/android/view_android.cc File ui/android/view_android.cc (right): https://codereview.chromium.org/2122403002/diff/20001/ui/android/view_android.cc#newcode35 ui/android/view_android.cc:35: void ...
4 years, 5 months ago (2016-07-08 23:06:01 UTC) #9
no sievers
https://codereview.chromium.org/2122403002/diff/40001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/2122403002/diff/40001/content/browser/android/content_view_core_impl.cc#newcode875 content/browser/android/content_view_core_impl.cc:875: return view_android_.GetLayer(); On 2016/07/08 23:06:00, Yusuf wrote: > CVC ...
4 years, 5 months ago (2016-07-08 23:24:22 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2122403002/80001
4 years, 5 months ago (2016-07-08 23:25:12 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/214704)
4 years, 5 months ago (2016-07-08 23:34:11 UTC) #15
no sievers
+dtrainor for OWNERS stamp
4 years, 5 months ago (2016-07-08 23:41:50 UTC) #17
no sievers
On 2016/07/08 23:41:50, sievers wrote: > +dtrainor for OWNERS stamp TBR dtrainor@ per offline chat... ...
4 years, 5 months ago (2016-07-11 18:54:49 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2122403002/80001
4 years, 5 months ago (2016-07-11 18:55:16 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/190437)
4 years, 5 months ago (2016-07-11 22:26:07 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2122403002/80001
4 years, 5 months ago (2016-07-11 22:29:10 UTC) #26
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-07-11 22:35:48 UTC) #28
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-11 22:35:51 UTC) #29
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/e6343711183c73be584725b1b0b7f70a60dd2a5b Cr-Commit-Position: refs/heads/master@{#404740}
4 years, 5 months ago (2016-07-11 22:37:23 UTC) #31
Khushal
https://codereview.chromium.org/2122403002/diff/80001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/2122403002/diff/80001/content/browser/android/content_view_core_impl.cc#newcode841 content/browser/android/content_view_core_impl.cc:841: if (!view_.GetLayer()->children().empty()) Any reason for changing this here? The ...
4 years, 5 months ago (2016-07-12 00:34:02 UTC) #32
no sievers
4 years, 5 months ago (2016-07-12 00:35:27 UTC) #33
Message was sent while issue was closed.
https://codereview.chromium.org/2122403002/diff/80001/content/browser/android...
File content/browser/android/content_view_core_impl.cc (right):

https://codereview.chromium.org/2122403002/diff/80001/content/browser/android...
content/browser/android/content_view_core_impl.cc:841: if
(!view_.GetLayer()->children().empty())
On 2016/07/12 00:34:02, Khushal wrote:
> Any reason for changing this here? The root layer should still draw only when
we
> have no delegated layers right?

err very nice catch, thanks. I think I broke this during rebase.

Powered by Google App Engine
This is Rietveld 408576698