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

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

Issue 230223006: Move nonscrollable axis gloweffect suppression to renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean up and modified as per review comments Created 6 years, 8 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 | « cc/trees/layer_tree_settings.cc ('k') | content/browser/android/overscroll_glow.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/overscroll_glow.h
diff --git a/content/browser/android/overscroll_glow.h b/content/browser/android/overscroll_glow.h
index 3a13fb3c4f1093996a365a6b8af3d79240c2135a..3ef542f69aadf4ff05ce8baacc6a4db1d8dd992f 100644
--- a/content/browser/android/overscroll_glow.h
+++ b/content/browser/android/overscroll_glow.h
@@ -55,14 +55,6 @@ class OverscrollGlow {
// Note: The effect will detach itself when no further animation is required.
bool Animate(base::TimeTicks current_time);
- // Horizontal overscroll will be ignored when false.
- void set_horizontal_overscroll_enabled(bool enabled) {
- horizontal_overscroll_enabled_ = enabled;
- }
- // Vertical overscroll will be ignored when false.
- void set_vertical_overscroll_enabled(bool enabled) {
- vertical_overscroll_enabled_ = enabled;
- }
// The size of the layer for which edges will be animated.
void set_size(gfx::SizeF size) {
size_ = size;
@@ -96,8 +88,6 @@ class OverscrollGlow {
gfx::SizeF size_;
gfx::Vector2dF old_overscroll_;
gfx::Vector2dF old_velocity_;
- bool horizontal_overscroll_enabled_;
- bool vertical_overscroll_enabled_;
scoped_refptr<cc::Layer> root_layer_;
« no previous file with comments | « cc/trees/layer_tree_settings.cc ('k') | content/browser/android/overscroll_glow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698