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

Issue 2442473002: Controls offsets computed if either top or bottom are showing (Closed)

Created:
4 years, 2 months ago by mdjones
Modified:
4 years, 1 month ago
CC:
bokan, cc-bugs_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Controls offsets computed if either top or bottom are showing This change allows the TopControlsManager to correctly compute the bottom controls offset regardless of the top controls state. This is done by separately tracking the bottom controls content offset and using it when the top controls have no height. BUG=652892 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/53c6c1cd141b834f90ac630305bdb7ba1a462fbb Cr-Commit-Position: refs/heads/master@{#430476}

Patch Set 1 #

Patch Set 2 : nit #

Patch Set 3 : rebase & better implementation #

Total comments: 2

Patch Set 4 : fix results of bad rebase #

Total comments: 3

Patch Set 5 : rebase #

Total comments: 9

Patch Set 6 : remove duped logic #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -11 lines) Patch
M cc/input/browser_controls_offset_manager.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M cc/input/browser_controls_offset_manager.cc View 1 2 3 4 5 7 chunks +23 lines, -9 lines 0 comments Download
M cc/input/browser_controls_offset_manager_unittest.cc View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (11 generated)
mdjones
This fix makes bottom controls work alone, but this class probably needs to be refactored ...
4 years, 2 months ago (2016-10-21 16:43:48 UTC) #3
Ian Wen
Please make sure all three cases work: 1. top only 2. bottom only 3. top ...
4 years, 1 month ago (2016-10-28 18:32:22 UTC) #5
Ted C
https://codereview.chromium.org/2442473002/diff/40001/cc/input/browser_controls_offset_manager_unittest.cc File cc/input/browser_controls_offset_manager_unittest.cc (right): https://codereview.chromium.org/2442473002/diff/40001/cc/input/browser_controls_offset_manager_unittest.cc#newcode522 cc/input/browser_controls_offset_manager_unittest.cc:522: TEST(BrowserControlsManagerTest, ScrollThenRestoreBottomControlsNoTopControls) { Unless my eyes fail me, this ...
4 years, 1 month ago (2016-10-31 20:17:39 UTC) #6
mdjones
https://codereview.chromium.org/2442473002/diff/40001/cc/input/browser_controls_offset_manager_unittest.cc File cc/input/browser_controls_offset_manager_unittest.cc (right): https://codereview.chromium.org/2442473002/diff/40001/cc/input/browser_controls_offset_manager_unittest.cc#newcode522 cc/input/browser_controls_offset_manager_unittest.cc:522: TEST(BrowserControlsManagerTest, ScrollThenRestoreBottomControlsNoTopControls) { On 2016/10/31 20:17:38, Ted C wrote: ...
4 years, 1 month ago (2016-10-31 21:11:41 UTC) #7
Ted C
lgtm
4 years, 1 month ago (2016-10-31 21:15:07 UTC) #8
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/2442473002/60001
4 years, 1 month ago (2016-11-01 18:22:19 UTC) #11
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/294227)
4 years, 1 month ago (2016-11-01 18:28:56 UTC) #13
mdjones
+aelias for owners
4 years, 1 month ago (2016-11-01 20:01:23 UTC) #15
aelias_OOO_until_Jul13
https://codereview.chromium.org/2442473002/diff/60001/cc/input/browser_controls_offset_manager.cc File cc/input/browser_controls_offset_manager.cc (right): https://codereview.chromium.org/2442473002/diff/60001/cc/input/browser_controls_offset_manager.cc#newcode143 cc/input/browser_controls_offset_manager.cc:143: float baseline_content_offset = TopControlsHeight() I think this should be ...
4 years, 1 month ago (2016-11-01 21:15:46 UTC) #16
mdjones
Rebased to include full patch. Note that top controls drive these calculations if they are ...
4 years, 1 month ago (2016-11-02 17:15:36 UTC) #17
aelias_OOO_until_Jul13
https://codereview.chromium.org/2442473002/diff/80001/cc/input/browser_controls_offset_manager.cc File cc/input/browser_controls_offset_manager.cc (right): https://codereview.chromium.org/2442473002/diff/80001/cc/input/browser_controls_offset_manager.cc#newcode205 cc/input/browser_controls_offset_manager.cc:205: TopControlsHeight() ? (ContentTopOffset() - old_offset) : 0.0f); ContentTopOffset() method ...
4 years, 1 month ago (2016-11-04 04:24:50 UTC) #18
aelias_OOO_until_Jul13
https://codereview.chromium.org/2442473002/diff/80001/cc/input/browser_controls_offset_manager.h File cc/input/browser_controls_offset_manager.h (right): https://codereview.chromium.org/2442473002/diff/80001/cc/input/browser_controls_offset_manager.h#newcode100 cc/input/browser_controls_offset_manager.h:100: float baseline_bottom_content_offset_; I tried Chrome Home flag locally and ...
4 years, 1 month ago (2016-11-04 04:35:09 UTC) #19
mdjones
https://codereview.chromium.org/2442473002/diff/80001/cc/input/browser_controls_offset_manager.cc File cc/input/browser_controls_offset_manager.cc (right): https://codereview.chromium.org/2442473002/diff/80001/cc/input/browser_controls_offset_manager.cc#newcode205 cc/input/browser_controls_offset_manager.cc:205: TopControlsHeight() ? (ContentTopOffset() - old_offset) : 0.0f); On 2016/11/04 ...
4 years, 1 month ago (2016-11-05 00:17:26 UTC) #20
aelias_OOO_until_Jul13
https://codereview.chromium.org/2442473002/diff/80001/cc/input/browser_controls_offset_manager.cc File cc/input/browser_controls_offset_manager.cc (right): https://codereview.chromium.org/2442473002/diff/80001/cc/input/browser_controls_offset_manager.cc#newcode205 cc/input/browser_controls_offset_manager.cc:205: TopControlsHeight() ? (ContentTopOffset() - old_offset) : 0.0f); On 2016/11/05 ...
4 years, 1 month ago (2016-11-05 00:47:16 UTC) #21
mdjones
https://codereview.chromium.org/2442473002/diff/80001/cc/input/browser_controls_offset_manager.cc File cc/input/browser_controls_offset_manager.cc (right): https://codereview.chromium.org/2442473002/diff/80001/cc/input/browser_controls_offset_manager.cc#newcode205 cc/input/browser_controls_offset_manager.cc:205: TopControlsHeight() ? (ContentTopOffset() - old_offset) : 0.0f); On 2016/11/05 ...
4 years, 1 month ago (2016-11-07 17:14:45 UTC) #22
aelias_OOO_until_Jul13
lgtm https://codereview.chromium.org/2442473002/diff/80001/cc/input/browser_controls_offset_manager.h File cc/input/browser_controls_offset_manager.h (right): https://codereview.chromium.org/2442473002/diff/80001/cc/input/browser_controls_offset_manager.h#newcode100 cc/input/browser_controls_offset_manager.h:100: float baseline_bottom_content_offset_; On 2016/11/07 at 17:14:45, mdjones wrote: ...
4 years, 1 month ago (2016-11-08 00:37:46 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/2442473002/100001
4 years, 1 month ago (2016-11-08 01:09:04 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 1 month ago (2016-11-08 02:01:03 UTC) #28
commit-bot: I haz the power
4 years, 1 month ago (2016-11-08 02:07:15 UTC) #30
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/53c6c1cd141b834f90ac630305bdb7ba1a462fbb
Cr-Commit-Position: refs/heads/master@{#430476}

Powered by Google App Engine
This is Rietveld 408576698