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

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

Issue 1949143003: Added pretty printers for some Ink Drop enums. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed primitive pass by refs. Created 4 years, 7 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_hover.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
index fc2f359cef21bbb313c8dd5e8f41d517763e98c6..0761f102e0479ee064c8f057344fab4d50faad80 100644
--- a/ui/views/animation/ink_drop_animation_ended_reason.h
+++ b/ui/views/animation/ink_drop_animation_ended_reason.h
@@ -5,8 +5,11 @@
#ifndef UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_ENDED_REASON_H_
#define UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_ENDED_REASON_H_
+#include <iosfwd>
#include <string>
+#include "ui/views/views_export.h"
+
namespace views {
// Enumeration of the different reasons why an ink drop animation has finished.
@@ -18,7 +21,12 @@ enum class InkDropAnimationEndedReason {
};
// Returns a human readable string for |reason|. Useful for logging.
-std::string ToString(InkDropAnimationEndedReason reason);
+VIEWS_EXPORT std::string ToString(InkDropAnimationEndedReason reason);
+
+// This is declared here for use in gtest-based unit tests but is defined in
+// the views_test_support target. Depend on that to use this in your unit test.
+// This should not be used in production code - call ToString() instead.
+void PrintTo(InkDropAnimationEndedReason reason, ::std::ostream* os);
} // namespace views
« no previous file with comments | « no previous file | ui/views/animation/ink_drop_hover.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698