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

Issue 901813002: Normalize top controls offset to (0, 1), Chromium-side. (Closed)

Created:
5 years, 10 months ago by aelias_OOO_until_Jul13
Modified:
5 years, 10 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, cc-bugs_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, piman+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Normalize top controls offset to (0, 1), Chromium-side. Since top controls height can now be changed, storing top controls offset as an absolute value causes problems. Normalizing its format to (0, 1) means we we don't need to adjust it when the height changes. It also improves readability and means TopControlsManager will compute correctly even when the height is currently 0. This patch also switches top controls to use SyncedProperty. See also Blink-side patch: https://codereview.chromium.org/882683003 BUG=430635 Committed: https://crrev.com/6004fe0188ac900b02b843a9bff3ad8e569d616a Cr-Commit-Position: refs/heads/master@{#315216}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add GrowingHeightKeepsTopControlsHidden unit test #

Patch Set 3 : Add DCHECKs in SetupAnimation #

Patch Set 4 : Fix DCHECK, remove unnecessary mojo change #

Patch Set 5 : Replace more EXPECT_EQ with EXPECT_FLOAT_EQ for windows bots #

Unified diffs Side-by-side diffs Delta from patch set Stats (+352 lines, -387 lines) Patch
M cc/input/top_controls_manager.h View 1 3 chunks +4 lines, -6 lines 0 comments Download
M cc/input/top_controls_manager.cc View 1 2 3 8 chunks +55 lines, -93 lines 0 comments Download
M cc/input/top_controls_manager_client.h View 1 chunk +3 lines, -2 lines 0 comments Download
M cc/input/top_controls_manager_unittest.cc View 1 23 chunks +97 lines, -107 lines 0 comments Download
M cc/trees/layer_tree_host.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 4 3 chunks +5 lines, -15 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 2 chunks +5 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 7 chunks +22 lines, -32 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 25 chunks +75 lines, -69 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 3 4 7 chunks +24 lines, -34 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 6 chunks +50 lines, -21 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M content/renderer/render_widget.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
aelias_OOO_until_Jul13
Hi bokan@ and dtrainor@, PTAL.
5 years, 10 months ago (2015-02-05 06:16:15 UTC) #2
Changwan Ryu
On 2015/02/05 06:16:15, aelias wrote: > Hi bokan@ and dtrainor@, PTAL. Great job! I've verified ...
5 years, 10 months ago (2015-02-06 01:22:12 UTC) #3
aelias_OOO_until_Jul13
On 2015/02/06 at 01:22:12, changwan wrote: > Great job! I've verified that this fixes the ...
5 years, 10 months ago (2015-02-06 01:43:29 UTC) #4
David Trainor- moved to gerrit
lgtm Awesome thanks for doing this! :) https://chromiumcodereview.appspot.com/901813002/diff/1/cc/input/top_controls_manager.cc File cc/input/top_controls_manager.cc (left): https://chromiumcodereview.appspot.com/901813002/diff/1/cc/input/top_controls_manager.cc#oldcode198 cc/input/top_controls_manager.cc:198: if (direction ...
5 years, 10 months ago (2015-02-06 18:48:01 UTC) #5
aelias_OOO_until_Jul13
Adding sievers@ for content/ OWNERS. https://codereview.chromium.org/901813002/diff/1/cc/input/top_controls_manager.cc File cc/input/top_controls_manager.cc (left): https://codereview.chromium.org/901813002/diff/1/cc/input/top_controls_manager.cc#oldcode198 cc/input/top_controls_manager.cc:198: if (direction == SHOWING_CONTROLS ...
5 years, 10 months ago (2015-02-06 20:28:29 UTC) #8
no sievers
On 2015/02/06 20:28:29, aelias wrote: > Adding sievers@ for content/ OWNERS. > lgtm
5 years, 10 months ago (2015-02-06 21:03:47 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/901813002/60001
5 years, 10 months ago (2015-02-07 20:27:49 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/901813002/80001
5 years, 10 months ago (2015-02-07 21:29:14 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 10 months ago (2015-02-07 21:43:08 UTC) #16
commit-bot: I haz the power
5 years, 10 months ago (2015-02-07 21:43:41 UTC) #17
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/6004fe0188ac900b02b843a9bff3ad8e569d616a
Cr-Commit-Position: refs/heads/master@{#315216}

Powered by Google App Engine
This is Rietveld 408576698