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 187593007: More banner behavior tweaks (Closed)

Created:
6 years, 9 months ago by gone
Modified:
6 years, 9 months ago
Reviewers:
Ted C
CC:
chromium-reviews
Visibility:
Public.

Description

More banner behavior tweaks * Prevent the banner from being hidden while it's being animated onto the screen for the first time. * Use the GestureHandler's onShowPress() function to determine when to show a highlight. * Tweak the fling dismissal behavior so it somewhat takes into account the fling velocity (which often has a sign... or magnitude... that doesn't make sense). Track a secondary velocity determined by how long it takes for a user to translate the banner. * Replace the word "banner" everywhere in SwipableOverlayView with "view". * Change the banner interpolator to make it feel more floaty when it is coming back to the center of the screen. Submitted as NOTRY=true because the Java-only changed passed the android bots. NOTRY=true BUG=341556 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255531

Patch Set 1 #

Patch Set 2 : Upload error #

Patch Set 3 : Reworking fling dismissal heuristic #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -56 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/banners/AppBannerView.java View 3 chunks +11 lines, -15 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/banners/SwipableOverlayView.java View 1 2 20 chunks +96 lines, -41 lines 6 comments Download

Messages

Total messages: 13 (0 generated)
gone
6 years, 9 months ago (2014-03-06 18:46:02 UTC) #1
Ted C
https://chromiumcodereview.appspot.com/187593007/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/banners/SwipableOverlayView.java File chrome/android/java/src/org/chromium/chrome/browser/banners/SwipableOverlayView.java (right): https://chromiumcodereview.appspot.com/187593007/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/banners/SwipableOverlayView.java#newcode247 chrome/android/java/src/org/chromium/chrome/browser/banners/SwipableOverlayView.java:247: mDragDirection = distance < 0 ? DRAGGED_LEFT : DRAGGED_RIGHT; ...
6 years, 9 months ago (2014-03-06 23:37:50 UTC) #2
gone
https://chromiumcodereview.appspot.com/187593007/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/banners/SwipableOverlayView.java File chrome/android/java/src/org/chromium/chrome/browser/banners/SwipableOverlayView.java (right): https://chromiumcodereview.appspot.com/187593007/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/banners/SwipableOverlayView.java#newcode247 chrome/android/java/src/org/chromium/chrome/browser/banners/SwipableOverlayView.java:247: mDragDirection = distance < 0 ? DRAGGED_LEFT : DRAGGED_RIGHT; ...
6 years, 9 months ago (2014-03-07 01:09:49 UTC) #3
Ted C
lgtm ... sounds good
6 years, 9 months ago (2014-03-07 01:54:56 UTC) #4
gone
The CQ bit was checked by dfalcantara@chromium.org
6 years, 9 months ago (2014-03-07 01:55:18 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dfalcantara@chromium.org/187593007/40001
6 years, 9 months ago (2014-03-07 01:58:23 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-07 04:39:02 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel
6 years, 9 months ago (2014-03-07 04:39:03 UTC) #8
gone
The CQ bit was checked by dfalcantara@chromium.org
6 years, 9 months ago (2014-03-07 04:40:19 UTC) #9
gone
The CQ bit was unchecked by dfalcantara@chromium.org
6 years, 9 months ago (2014-03-07 04:41:52 UTC) #10
gone
The CQ bit was checked by dfalcantara@chromium.org
6 years, 9 months ago (2014-03-07 04:41:52 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dfalcantara@chromium.org/187593007/40001
6 years, 9 months ago (2014-03-07 04:44:33 UTC) #12
commit-bot: I haz the power
6 years, 9 months ago (2014-03-07 04:50:54 UTC) #13
Message was sent while issue was closed.
Change committed as 255531

Powered by Google App Engine
This is Rietveld 408576698