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

Side by Side Diff: ui/views/animation/ink_drop_animation_ended_reason.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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/views/animation/ink_drop_animation_ended_reason.h" 5 #include "ui/views/animation/ink_drop_animation_ended_reason.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace views { 9 namespace views {
10 10
11 std::string ToString(InkDropAnimationEndedReason reason) { 11 std::string ToString(const InkDropAnimationEndedReason& reason) {
12 switch (reason) { 12 switch (reason) {
13 case InkDropAnimationEndedReason::SUCCESS: 13 case InkDropAnimationEndedReason::SUCCESS:
14 return "SUCCESS"; 14 return "SUCCESS";
15 case InkDropAnimationEndedReason::PRE_EMPTED: 15 case InkDropAnimationEndedReason::PRE_EMPTED:
16 return "PRE_EMPTED"; 16 return "PRE_EMPTED";
17 } 17 }
18 NOTREACHED() 18 NOTREACHED()
19 << "Should never be reached but is necessary for some compilers."; 19 << "Should never be reached but is necessary for some compilers.";
20 return std::string(); 20 return std::string();
21 } 21 }
22 22
23 } // namespace views 23 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698