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

Unified Diff: ui/views/animation/test/ink_drop_utils.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/test/ink_drop_utils.cc
diff --git a/ui/views/animation/test/ink_drop_utils.cc b/ui/views/animation/test/ink_drop_utils.cc
new file mode 100644
index 0000000000000000000000000000000000000000..e2bfc2cc9776430aa3940eecbf456ab1ed9696e8
--- /dev/null
+++ b/ui/views/animation/test/ink_drop_utils.cc
@@ -0,0 +1,26 @@
+// 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.
+
+#include <ostream>
+
+#include "ui/views/animation/ink_drop_animation_ended_reason.h"
+#include "ui/views/animation/ink_drop_hover.h"
+#include "ui/views/animation/ink_drop_state.h"
+
+namespace views {
+
+void PrintTo(const InkDropState& ink_drop_state, ::std::ostream* os) {
+ *os << ToString(ink_drop_state);
+}
+
+void PrintTo(const InkDropHover::AnimationType& animation_type,
+ ::std::ostream* os) {
+ *os << ToString(animation_type);
+}
+
+void PrintTo(const InkDropAnimationEndedReason& reason, ::std::ostream* os) {
+ *os << ToString(reason);
+}
+
+} // namespace views

Powered by Google App Engine
This is Rietveld 408576698