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

Unified Diff: ui/views/animation/ink_drop_hover.cc

Issue 1949143003: Added pretty printers for some Ink Drop enums. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: ui/views/animation/ink_drop_hover.cc
diff --git a/ui/views/animation/ink_drop_hover.cc b/ui/views/animation/ink_drop_hover.cc
index af98e614f5978c893fd276d1663a8fe4ff5c6ede..b0d08fd21bb96db231901621e5a2a1261b831d25 100644
--- a/ui/views/animation/ink_drop_hover.cc
+++ b/ui/views/animation/ink_drop_hover.cc
@@ -24,6 +24,18 @@ const float kHiddenOpacity = 0.0f;
} // namespace
+std::string ToString(const InkDropHover::AnimationType& animation_type) {
+ switch (animation_type) {
+ case InkDropHover::FADE_IN:
+ return std::string("FADE_IN");
+ case InkDropHover::FADE_OUT:
+ return std::string("FADE_OUT");
+ }
+ NOTREACHED()
+ << "Should never be reached but is necessary for some compilers.";
+ return std::string("UNKNOWN");
+}
+
InkDropHover::InkDropHover(const gfx::Size& size,
int corner_radius,
const gfx::Point& center_point,

Powered by Google App Engine
This is Rietveld 408576698