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

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

Issue 1896953003: Added a views::test::TestInkDropAnimationObserverHelper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed build issue and nit. 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_ended_reason.h
diff --git a/ui/views/animation/ink_drop_animation_ended_reason.h b/ui/views/animation/ink_drop_animation_ended_reason.h
new file mode 100644
index 0000000000000000000000000000000000000000..fc2f359cef21bbb313c8dd5e8f41d517763e98c6
--- /dev/null
+++ b/ui/views/animation/ink_drop_animation_ended_reason.h
@@ -0,0 +1,25 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_ENDED_REASON_H_
+#define UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_ENDED_REASON_H_
+
+#include <string>
+
+namespace views {
+
+// Enumeration of the different reasons why an ink drop animation has finished.
+enum class InkDropAnimationEndedReason {
+ // The animation was completed successfully.
+ SUCCESS,
+ // The animation was stopped prematurely before reaching its final state.
+ PRE_EMPTED
+};
+
+// Returns a human readable string for |reason|. Useful for logging.
+std::string ToString(InkDropAnimationEndedReason reason);
+
+} // namespace views
+
+#endif // UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_ENDED_REASON_H_
« no previous file with comments | « ui/views/animation/ink_drop_animation_controller_impl.cc ('k') | ui/views/animation/ink_drop_animation_ended_reason.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698