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

Unified Diff: content/browser/android/edge_effect_l.cc

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
« no previous file with comments | « content/browser/android/edge_effect_l.h ('k') | content/browser/android/overscroll_controller_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/edge_effect_l.cc
diff --git a/content/browser/android/edge_effect_l.cc b/content/browser/android/edge_effect_l.cc
index 4fac472dab9b4370d222c4245e2fde525504b916..728db67dbe8f4fb78cd013c27df7f171c07c057b 100644
--- a/content/browser/android/edge_effect_l.cc
+++ b/content/browser/android/edge_effect_l.cc
@@ -211,6 +211,10 @@ bool EdgeEffectL::Update(base::TimeTicks current_time) {
return !IsFinished() || one_last_frame;
}
+float EdgeEffectL::GetAlpha() const {
+ return IsFinished() ? 0.f : glow_alpha_;
+}
+
void EdgeEffectL::ApplyToLayers(const gfx::SizeF& size,
const gfx::Transform& transform) {
if (IsFinished())
« no previous file with comments | « content/browser/android/edge_effect_l.h ('k') | content/browser/android/overscroll_controller_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698