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

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

Issue 1373983002: Enhanced the InkDropRippleImpl to create/destroy InkDropAnimations as needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed merge with master. Created 5 years, 2 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 | « ui/views/animation/ink_drop_state.h ('k') | ui/views/views.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/animation/ink_drop_state.cc
diff --git a/ui/views/animation/ink_drop_state.cc b/ui/views/animation/ink_drop_state.cc
new file mode 100644
index 0000000000000000000000000000000000000000..04b0435121cda40195ec7e439fbda1fd79c1348c
--- /dev/null
+++ b/ui/views/animation/ink_drop_state.cc
@@ -0,0 +1,36 @@
+// Copyright 2015 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 "ui/views/animation/ink_drop_state.h"
+
+#include <iostream>
+#include <string>
+
+#include "base/logging.h"
+
+namespace views {
+
+std::string ToString(InkDropState state) {
+ switch (state) {
+ case InkDropState::HIDDEN:
+ return std::string("HIDDEN");
+ case InkDropState::ACTION_PENDING:
+ return std::string("ACTION_PENDING");
+ case InkDropState::QUICK_ACTION:
+ return std::string("QUICK_ACTION");
+ case InkDropState::SLOW_ACTION_PENDING:
+ return std::string("SLOW_ACTION_PENDING");
+ case InkDropState::SLOW_ACTION:
+ return std::string("SLOW_ACTION");
+ case InkDropState::ACTIVATED:
+ return std::string("ACTIVATED");
+ case InkDropState::DEACTIVATED:
+ return std::string("DEACTIVATED");
+ }
+ NOTREACHED()
+ << "Should never be reached but is necessary for some compilers.";
+ return std::string("UNKNOWN");
+}
+
+} // namespace views
« no previous file with comments | « ui/views/animation/ink_drop_state.h ('k') | ui/views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698