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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/views/animation/ink_drop_state.h"
6
7 #include <iostream>
8 #include <string>
9
10 #include "base/logging.h"
11
12 namespace views {
13
14 std::string ToString(InkDropState state) {
15 switch (state) {
16 case InkDropState::HIDDEN:
17 return std::string("HIDDEN");
18 case InkDropState::ACTION_PENDING:
19 return std::string("ACTION_PENDING");
20 case InkDropState::QUICK_ACTION:
21 return std::string("QUICK_ACTION");
22 case InkDropState::SLOW_ACTION_PENDING:
23 return std::string("SLOW_ACTION_PENDING");
24 case InkDropState::SLOW_ACTION:
25 return std::string("SLOW_ACTION");
26 case InkDropState::ACTIVATED:
27 return std::string("ACTIVATED");
28 case InkDropState::DEACTIVATED:
29 return std::string("DEACTIVATED");
30 }
31 NOTREACHED()
32 << "Should never be reached but is necessary for some compilers.";
33 return std::string("UNKNOWN");
34 }
35
36 } // namespace views
OLDNEW
« 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