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

Issue 476113004: Replace overdraw_bottom_height with top_controls_layout_height. (Closed)

Created:
6 years, 4 months ago by aelias_OOO_until_Jul13
Modified:
6 years, 2 months ago
Reviewers:
palmer, bokan, Ted C, dgozman, piman
CC:
enne (OOO), aandrey+blink_chromium.org, cc-bugs_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, devtools-reviews_chromium.org, jam, kevers, nasko+codewatch_chromium.org, nona+watch_chromium.org, paulirish+reviews_chromium.org, penghuang+watch_chromium.org, pfeldman, piman+watch_chromium.org, James Su, vsevik, yukishiino+watch_chromium.org, yurys, yusukes+watch_chromium.org, danakj
Project:
chromium
Visibility:
Public.

Description

Replace overdraw_bottom_height with top_controls_layout_height. This changes CC to trust Blink's inner container layer size and apply Android top controls size as a delta on top of it. Prior to this patch, on Android we would clobber what Blink told CC with a from-scratch computation "physical device size - top controls impl size - keyboard overdraw size". This change makes it unnecessary for the renderer to be aware of keyboard overdraw size, but on the other hand CC now must know about how top controls size was applied to Blink layout size, to understand the size coming from Blink. So this patch replaces one float with the other. This simplifies the logic and is a step towards converging OSK codepaths between platforms (since ChromeOS didn't use overdraw_bottom_height, but used visible_viewport_size instead -- this patch unlocks the potential use of the latter on Android as well). NOTRY=true BUG=404315 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=291306

Patch Set 1 #

Total comments: 11

Patch Set 2 : tedchoc code review changes #

Patch Set 3 : Fix DOMUtils.java compile #

Patch Set 4 : Rebase #

Total comments: 3

Patch Set 5 : Rebase #

Patch Set 6 : Fix ScrollViewportRounding test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -300 lines) Patch
M cc/layers/layer_impl.h View 2 chunks +3 lines, -6 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 4 5 chunks +8 lines, -9 lines 0 comments Download
M cc/layers/layer_position_constraint_unittest.cc View 1 chunk +1 line, -4 lines 0 comments Download
M cc/output/compositor_frame_metadata.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/output/compositor_frame_metadata.cc View 1 chunk +1 line, -2 lines 0 comments Download
M cc/trees/layer_tree_host.h View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 3 chunks +6 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 chunks +6 lines, -14 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 6 chunks +12 lines, -42 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 4 chunks +4 lines, -58 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 2 chunks +5 lines, -14 lines 0 comments Download
M content/browser/android/content_view_core_impl.h View 1 2 3 4 3 chunks +3 lines, -5 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 5 chunks +8 lines, -23 lines 0 comments Download
M content/browser/devtools/renderer_overrides_handler.cc View 1 2 3 4 4 chunks +18 lines, -14 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 4 chunks +8 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 3 chunks +9 lines, -11 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.h View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/screen_orientation/screen_orientation_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/common/cc_messages.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/common/view_messages.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 6 chunks +17 lines, -40 lines 0 comments Download
M content/public/test/android/javatests/src/org/chromium/content/browser/test/util/DOMUtils.java View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M content/public/test/render_view_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/public/test/render_widget_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/gpu/render_widget_compositor.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/render_widget.h View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 11 chunks +27 lines, -17 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
aelias_OOO_until_Jul13
PTAL. Before I add all the rubberstamp reviewers for the field rename, first requesting review ...
6 years, 4 months ago (2014-08-18 22:49:41 UTC) #1
Ted C
On 2014/08/18 22:49:41, aelias wrote: > PTAL. Before I add all the rubberstamp reviewers for ...
6 years, 4 months ago (2014-08-18 23:35:41 UTC) #2
aelias_OOO_until_Jul13
On 2014/08/18 at 23:35:41, tedchoc wrote: > I'm a bit confused here. The overdraw height ...
6 years, 4 months ago (2014-08-18 23:45:25 UTC) #3
Ted C
lgtm - Per the offline discussion, this sounds fine to me. I think setViewportSizeOffset in ...
6 years, 4 months ago (2014-08-19 01:14:28 UTC) #4
bokan
Much easier to understand IMO, LGTM
6 years, 4 months ago (2014-08-19 12:55:23 UTC) #5
dgozman
https://codereview.chromium.org/476113004/diff/1/content/browser/devtools/renderer_overrides_handler.cc File content/browser/devtools/renderer_overrides_handler.cc (right): https://codereview.chromium.org/476113004/diff/1/content/browser/devtools/renderer_overrides_handler.cc#newcode578 content/browser/devtools/renderer_overrides_handler.cc:578: view->GetPhysicalBackingSize(), 1 / metadata.device_scale_factor); Does GetPhysicalBackingSize() change when top ...
6 years, 4 months ago (2014-08-19 13:05:47 UTC) #6
bokan
Much easier to understand IMO, LGTM
6 years, 4 months ago (2014-08-19 13:06:58 UTC) #7
aelias_OOO_until_Jul13
https://codereview.chromium.org/476113004/diff/1/content/browser/devtools/renderer_overrides_handler.cc File content/browser/devtools/renderer_overrides_handler.cc (right): https://codereview.chromium.org/476113004/diff/1/content/browser/devtools/renderer_overrides_handler.cc#newcode578 content/browser/devtools/renderer_overrides_handler.cc:578: view->GetPhysicalBackingSize(), 1 / metadata.device_scale_factor); On 2014/08/19 at 13:05:47, dgozman ...
6 years, 4 months ago (2014-08-19 21:28:39 UTC) #8
aelias_OOO_until_Jul13
Adding OWNERS reviewers for the rest (mostly trivial renaming): piman@ for content/ palmer@ for *_messages.h
6 years, 4 months ago (2014-08-19 23:18:09 UTC) #9
piman
lgtm https://codereview.chromium.org/476113004/diff/60001/content/browser/devtools/renderer_overrides_handler.cc File content/browser/devtools/renderer_overrides_handler.cc (right): https://codereview.chromium.org/476113004/diff/60001/content/browser/devtools/renderer_overrides_handler.cc#newcode621 content/browser/devtools/renderer_overrides_handler.cc:621: host_->GetView()); nit: is the cast safe in tests? ...
6 years, 4 months ago (2014-08-19 23:58:45 UTC) #10
aelias_OOO_until_Jul13
https://codereview.chromium.org/476113004/diff/60001/content/browser/devtools/renderer_overrides_handler.cc File content/browser/devtools/renderer_overrides_handler.cc (right): https://codereview.chromium.org/476113004/diff/60001/content/browser/devtools/renderer_overrides_handler.cc#newcode621 content/browser/devtools/renderer_overrides_handler.cc:621: host_->GetView()); On 2014/08/19 at 23:58:45, piman (OOO) wrote: > ...
6 years, 4 months ago (2014-08-20 03:09:46 UTC) #11
dgozman
devtools lgtm https://codereview.chromium.org/476113004/diff/1/content/browser/devtools/renderer_overrides_handler.cc File content/browser/devtools/renderer_overrides_handler.cc (right): https://codereview.chromium.org/476113004/diff/1/content/browser/devtools/renderer_overrides_handler.cc#newcode578 content/browser/devtools/renderer_overrides_handler.cc:578: view->GetPhysicalBackingSize(), 1 / metadata.device_scale_factor); On 2014/08/19 21:28:39, ...
6 years, 4 months ago (2014-08-20 04:47:01 UTC) #12
aelias_OOO_until_Jul13
OK, just need security review from palmer@ for the trivial _messages.h changes.
6 years, 4 months ago (2014-08-20 18:23:07 UTC) #13
palmer
lgtm
6 years, 4 months ago (2014-08-21 22:52:44 UTC) #14
aelias_OOO_until_Jul13
The CQ bit was checked by aelias@chromium.org
6 years, 4 months ago (2014-08-21 22:58:02 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aelias@chromium.org/476113004/100001
6 years, 4 months ago (2014-08-21 22:59:36 UTC) #16
commit-bot: I haz the power
6 years, 4 months ago (2014-08-22 01:40:16 UTC) #17
Message was sent while issue was closed.
Committed patchset #6 (100001) as 291306

Powered by Google App Engine
This is Rietveld 408576698