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

Unified Diff: ui/gfx/animation/animation.h

Issue 1653003002: Make scrollAnimatorEnabled work on Mac like it does on other platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Also allow IO ML for unit tests Created 4 years, 10 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: ui/gfx/animation/animation.h
diff --git a/ui/gfx/animation/animation.h b/ui/gfx/animation/animation.h
index 44823b0366f1ae220835a9c97ab1d3ebdca0b701..8d8b4d0335b33046a3fb851e5673d50f7083b8f3 100644
--- a/ui/gfx/animation/animation.h
+++ b/ui/gfx/animation/animation.h
@@ -64,6 +64,11 @@ class GFX_EXPORT Animation : public AnimationContainerElement {
// to give guidance for heavy animations such as "start download" arrow.
static bool ShouldRenderRichAnimation();
+ // Determines on a per-platform basis whether scroll animations (e.g. produced
+ // by home/end key) should be enabled. Should only be called from the browser
+ // process.
+ static bool ScrollAnimationsEnabledBySystem();
+
protected:
// Invoked from Start to allow subclasses to prepare for the animation.
virtual void AnimationStarted() {}

Powered by Google App Engine
This is Rietveld 408576698