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

Unified Diff: content/browser/android/edge_effect.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.h ('k') | content/browser/android/edge_effect_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/edge_effect.cc
diff --git a/content/browser/android/edge_effect.cc b/content/browser/android/edge_effect.cc
index abce9c2867d89938e999b75d0560bc2949a26188..f1b6ee807b8d444569588ff02798a162a05ac251 100644
--- a/content/browser/android/edge_effect.cc
+++ b/content/browser/android/edge_effect.cc
@@ -305,6 +305,10 @@ bool EdgeEffect::Update(base::TimeTicks current_time) {
return !IsFinished();
}
+float EdgeEffect::GetAlpha() const {
+ return IsFinished() ? 0.f : std::max(glow_alpha_, edge_alpha_);
+}
+
void EdgeEffect::ApplyToLayers(const gfx::SizeF& size,
const gfx::Transform& transform) {
if (IsFinished())
« no previous file with comments | « content/browser/android/edge_effect.h ('k') | content/browser/android/edge_effect_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698