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

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

Issue 1896953003: Added a views::test::TestInkDropAnimationObserverHelper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added test_animation_observer.h file. 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
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 e7b4bf02b53e72099c7ed0e4f8f5c3ace7cba572..3d4c62fc97e8bccdc08abb1c4d9b6aa1fb2d0a3e 100644
--- a/ui/views/animation/ink_drop_animation.h
+++ b/ui/views/animation/ink_drop_animation.h
@@ -46,6 +46,10 @@ class VIEWS_EXPORT InkDropAnimation {
InkDropAnimation();
virtual ~InkDropAnimation();
+ // In the event that an animation is in progress for ink drop state 's1' and
+ // an animation to a new state 's2' is triggered, then
+ // AnimationEnded(s1, PRE_EMPTED) will be called before
+ // AnimationStarted(s2).
void set_observer(InkDropAnimationObserver* observer) {
observer_ = observer;
}

Powered by Google App Engine
This is Rietveld 408576698