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

Issue 2462603003: Convert browser controls animation to use ratio (Closed)

Created:
4 years, 1 month ago by mdjones
Modified:
4 years, 1 month ago
CC:
chromium-reviews, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert browser controls animation to use ratio This change will make it possible to use one code path for both top and bottom controls animation. The general controls offset is now also tracked as a ratio. BUG=652892 Committed: https://crrev.com/5bfae06913f963b1b396323fd9774f0c278ff93d Cr-Commit-Position: refs/heads/master@{#431477}

Patch Set 1 #

Patch Set 2 : nit #

Patch Set 3 : doc #

Patch Set 4 : store ratio as instance #

Patch Set 5 : offset stored as ratio #

Patch Set 6 : nit #

Patch Set 7 : amend ratio function name and doc #

Total comments: 2

Patch Set 8 : address comment #

Patch Set 9 : use Math.abs for zero checks in tests #

Patch Set 10 : fix float comparisons in tests #

Patch Set 11 : add check in getContentOffset instead #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -25 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/fullscreen/ChromeFullscreenManager.java View 1 2 3 4 5 6 7 8 9 10 11 chunks +39 lines, -25 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 31 (17 generated)
mdjones
ptal
4 years, 1 month ago (2016-10-28 22:28:18 UTC) #3
mdjones
+aelias
4 years, 1 month ago (2016-11-05 02:02:22 UTC) #5
Ted C
lgtm
4 years, 1 month ago (2016-11-10 01:28:46 UTC) #6
Ian Wen
Talked to mdjones@ with more context of the CL and I only have one optional ...
4 years, 1 month ago (2016-11-10 02:14:23 UTC) #7
mdjones
https://codereview.chromium.org/2462603003/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/fullscreen/ChromeFullscreenManager.java File chrome/android/java/src/org/chromium/chrome/browser/fullscreen/ChromeFullscreenManager.java (right): https://codereview.chromium.org/2462603003/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/fullscreen/ChromeFullscreenManager.java#newcode429 chrome/android/java/src/org/chromium/chrome/browser/fullscreen/ChromeFullscreenManager.java:429: @SuppressWarnings("SelfEquality") On 2016/11/10 02:14:23, Ian Wen wrote: > Instead ...
4 years, 1 month ago (2016-11-10 16:40:21 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/2462603003/140001
4 years, 1 month ago (2016-11-10 16:41:06 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/178191)
4 years, 1 month ago (2016-11-10 18:01:17 UTC) #13
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/2462603003/160001
4 years, 1 month ago (2016-11-10 18:47:26 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/178308)
4 years, 1 month ago (2016-11-10 20:29:54 UTC) #18
mdjones
Added criteria for control offset and changed other float comparisons to use epsilon. ptal
4 years, 1 month ago (2016-11-10 23:23:04 UTC) #21
mdjones
reverted to simply add check in getContentOffset
4 years, 1 month ago (2016-11-11 02:29:27 UTC) #24
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/2462603003/200001
4 years, 1 month ago (2016-11-11 02:29:51 UTC) #27
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 1 month ago (2016-11-11 03:05:29 UTC) #29
commit-bot: I haz the power
4 years, 1 month ago (2016-11-11 03:09:14 UTC) #31
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/5bfae06913f963b1b396323fd9774f0c278ff93d
Cr-Commit-Position: refs/heads/master@{#431477}

Powered by Google App Engine
This is Rietveld 408576698