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

Unified Diff: content/browser/android/overscroll_glow.h

Issue 993613007: [Android] Add slack to allow refresh after overscrolling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/android/overscroll_glow.h
diff --git a/content/browser/android/overscroll_glow.h b/content/browser/android/overscroll_glow.h
index 8685c9c788609ee43a2afdc02f2df2b9882a706c..80a1b106cf4ace93b5ea0a5dcc3ef5e45e43190c 100644
--- a/content/browser/android/overscroll_glow.h
+++ b/content/browser/android/overscroll_glow.h
@@ -69,6 +69,10 @@ class OverscrollGlow {
// Whether the effect is active, either being pulled or receding.
bool IsActive() const;
+ // The maximum alpha value (in the range [0,1]) of any animated edge layers.
+ // If the effect is inactive, this will be 0.
+ float GetVisibleAlpha() const;
+
private:
enum Axis { AXIS_X, AXIS_Y };
« no previous file with comments | « content/browser/android/overscroll_controller_android.cc ('k') | content/browser/android/overscroll_glow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698