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

Issue 714003002: Allow changing top controls height (Closed)

Created:
6 years, 1 month ago by David Trainor- moved to gerrit
Modified:
6 years ago
CC:
cc-bugs_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, nasko+codewatch_chromium.org, nona+watch_chromium.org, penghuang+watch_chromium.org, piman+watch_chromium.org, James Su, yukishiino+watch_chromium.org, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Allow changing top controls height Allow changing of the top controls height after the renderer's LayerTreeHost is built. Currently it is built based on a command line flag, but this means different activities that have different top controls heights have trouble setting the proper command line if they're running in the same process. BUG=430635 Committed: https://crrev.com/cb7779b8cfcc25981ef727b20cbe82231776b577 Cr-Commit-Position: refs/heads/master@{#306737}

Patch Set 1 #

Patch Set 2 : Moved to boolean and float instead of two floats #

Patch Set 3 : Unit test WIP #

Patch Set 4 : More unit test work #

Patch Set 5 : Some more fixes #

Total comments: 5

Patch Set 6 : Fixed pending tree issue #

Patch Set 7 : Added more invalidates when setting the height #

Total comments: 5

Patch Set 8 : Fixed resizing top controls hiding the bar, got unit tests working finally #

Patch Set 9 : Rebased #

Total comments: 1

Patch Set 10 : Fixed wrong method called in unit test #

Patch Set 11 : Change 0 to false #

Patch Set 12 : Rebased #

Patch Set 13 : Fixed variable definition #

Patch Set 14 : Fixed other test build breaks #

Total comments: 2

Patch Set 15 : Switched method to DoTopControlsShrinkBlinkSize #

Patch Set 16 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+419 lines, -217 lines) Patch
M cc/base/switches.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M cc/base/switches.cc View 1 1 chunk +0 lines, -3 lines 0 comments Download
M cc/input/top_controls_manager.h View 1 3 chunks +7 lines, -9 lines 0 comments Download
M cc/input/top_controls_manager.cc View 1 2 3 3 chunks +22 lines, -10 lines 0 comments Download
M cc/input/top_controls_manager_unittest.cc View 1 2 3 12 chunks +89 lines, -13 lines 0 comments Download
M cc/trees/layer_tree_host.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 4 5 6 7 8 3 chunks +24 lines, -6 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +12 lines, -21 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 23 chunks +79 lines, -38 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +11 lines, -8 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +14 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_settings.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M cc/trees/layer_tree_settings.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ApplicationInitialization.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -6 lines 0 comments Download
M content/browser/android/content_view_core_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +14 lines, -5 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +7 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +12 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +6 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +5 lines, -1 line 0 comments Download
M content/browser/screen_orientation/screen_orientation_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M content/common/view_messages.h View 1 1 chunk +6 lines, -3 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +26 lines, -14 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/common/ContentSwitches.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -3 lines 0 comments Download
M content/public/test/android/javatests/src/org/chromium/content/browser/test/util/DOMUtils.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -1 line 0 comments Download
M content/public/test/render_view_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M content/public/test/render_widget_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/gpu/render_widget_compositor.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +6 lines, -18 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -2 lines 0 comments Download
M content/renderer/render_widget.h View 1 2 chunks +9 lines, -4 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 7 8 12 chunks +46 lines, -22 lines 0 comments Download

Messages

Total messages: 22 (3 generated)
David Trainor- moved to gerrit
Sending this out as a preliminary fyi (still need to add layer_tree_host_impl unit tests). David, ...
6 years, 1 month ago (2014-11-20 01:02:49 UTC) #2
bokan
This looks fine to me, anytime the LTHImpl is changing the top controls offset it ...
6 years, 1 month ago (2014-11-20 15:09:32 UTC) #3
David Trainor- moved to gerrit
On 2014/11/20 15:09:32, bokan wrote: > This looks fine to me, anytime the LTHImpl is ...
6 years, 1 month ago (2014-11-20 20:57:21 UTC) #4
David Trainor- moved to gerrit
https://chromiumcodereview.appspot.com/714003002/diff/80001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://chromiumcodereview.appspot.com/714003002/diff/80001/cc/trees/layer_tree_host_impl.cc#newcode269 cc/trees/layer_tree_host_impl.cc:269: SetControlsTopOffset(0.f); On 2014/11/20 15:09:32, bokan wrote: > This should ...
6 years, 1 month ago (2014-11-20 20:57:28 UTC) #5
bokan
https://codereview.chromium.org/714003002/diff/80001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/714003002/diff/80001/cc/trees/layer_tree_host_impl.cc#newcode269 cc/trees/layer_tree_host_impl.cc:269: SetControlsTopOffset(0.f); On 2014/11/20 20:57:27, David Trainor wrote: > On ...
6 years, 1 month ago (2014-11-20 21:31:39 UTC) #6
aelias_OOO_until_Jul13
https://codereview.chromium.org/714003002/diff/120001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/714003002/diff/120001/cc/trees/layer_tree_host_impl.cc#newcode1673 cc/trees/layer_tree_host_impl.cc:1673: void LayerTreeHostImpl::SetTopControlsShrinkBlinkSize(bool shrink) { I don't see any calls ...
6 years, 1 month ago (2014-11-21 04:19:21 UTC) #7
David Trainor- moved to gerrit
https://chromiumcodereview.appspot.com/714003002/diff/120001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://chromiumcodereview.appspot.com/714003002/diff/120001/cc/trees/layer_tree_host_impl.cc#newcode1673 cc/trees/layer_tree_host_impl.cc:1673: void LayerTreeHostImpl::SetTopControlsShrinkBlinkSize(bool shrink) { On 2014/11/21 04:19:21, aelias wrote: ...
6 years, 1 month ago (2014-11-22 00:35:30 UTC) #8
aelias_OOO_until_Jul13
lgtm
6 years, 1 month ago (2014-11-22 00:39:02 UTC) #9
Ted C
lgtm https://codereview.chromium.org/714003002/diff/160001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/714003002/diff/160001/content/browser/android/content_view_core_impl.cc#newcode762 content/browser/android/content_view_core_impl.cc:762: return 0; return false
6 years ago (2014-11-26 00:38:25 UTC) #10
David Trainor- moved to gerrit
owners ptal thanks! mlamouri: content/browser/screen_orientation palmer: content/common jcivelli: content/public/test sievers: content/renderer
6 years ago (2014-12-01 04:20:27 UTC) #12
mlamouri (slow - plz ping)
content/browser/screen_orientation/ lgtm
6 years ago (2014-12-01 10:56:16 UTC) #13
Jay Civelli
LGTM for content/public/test
6 years ago (2014-12-01 16:56:51 UTC) #14
palmer
LGTM mod naming nit. https://codereview.chromium.org/714003002/diff/260001/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/714003002/diff/260001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode672 content/browser/renderer_host/render_widget_host_view_android.cc:672: bool RenderWidgetHostViewAndroid::GetTopControlsShrinkBlinkSize() const { The ...
6 years ago (2014-12-01 19:57:54 UTC) #15
no sievers
On 2014/12/01 04:20:27, David Trainor wrote: > owners ptal thanks! > > mlamouri: content/browser/screen_orientation > ...
6 years ago (2014-12-01 21:10:24 UTC) #16
David Trainor- moved to gerrit
https://codereview.chromium.org/714003002/diff/260001/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/714003002/diff/260001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode672 content/browser/renderer_host/render_widget_host_view_android.cc:672: bool RenderWidgetHostViewAndroid::GetTopControlsShrinkBlinkSize() const { On 2014/12/01 19:57:54, Chromium Palmer ...
6 years ago (2014-12-02 05:53:25 UTC) #17
aelias_OOO_until_Jul13
On 2014/12/02 05:53:25, David Trainor wrote: > https://codereview.chromium.org/714003002/diff/260001/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/714003002/diff/260001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode672 ...
6 years ago (2014-12-02 07:11:04 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/714003002/300001
6 years ago (2014-12-04 01:07:07 UTC) #20
commit-bot: I haz the power
Committed patchset #16 (id:300001)
6 years ago (2014-12-04 01:08:11 UTC) #21
commit-bot: I haz the power
6 years ago (2014-12-04 01:09:09 UTC) #22
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/cb7779b8cfcc25981ef727b20cbe82231776b577
Cr-Commit-Position: refs/heads/master@{#306737}

Powered by Google App Engine
This is Rietveld 408576698