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

Unified Diff: ui/views/animation/ink_drop_animation.h

Issue 1944043002: Enabled tests to control material design ink drop animations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Replaced unique_ptr with scoped_ptr. Created 4 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 | « no previous file | ui/views/animation/ink_drop_animation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/animation/ink_drop_animation.h
diff --git a/ui/views/animation/ink_drop_animation.h b/ui/views/animation/ink_drop_animation.h
index 3d4c62fc97e8bccdc08abb1c4d9b6aa1fb2d0a3e..b00be7db26fe73f040ac80ff90eab1f046e4d849 100644
--- a/ui/views/animation/ink_drop_animation.h
+++ b/ui/views/animation/ink_drop_animation.h
@@ -19,6 +19,10 @@ class LayerAnimationObserver;
namespace views {
+namespace test {
+class InkDropAnimationTestApi;
+} // namespace test
+
// Simple base class for animations that provide visual feedback for View state.
// Manages the attached InkDropAnimationObservers.
//
@@ -81,6 +85,11 @@ class VIEWS_EXPORT InkDropAnimation {
// animates to the target HIDDEN state.
virtual bool IsVisible() const = 0;
+ // Returns a test api to access internals of this. Default implmentations
+ // should return nullptr and test specific subclasses can override to return
+ // an instance.
+ virtual test::InkDropAnimationTestApi* GetTestApi();
+
protected:
// Animates the ripple from the |old_ink_drop_state| to the
// |new_ink_drop_state|. |observer| is added to all LayerAnimationSequence's
« no previous file with comments | « no previous file | ui/views/animation/ink_drop_animation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698