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

Side by Side Diff: ui/views/animation/ink_drop_animation_observer.cc

Issue 1510173006: remove a few static initializers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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_animation_observer.h ('k') | ui/views/animation/ink_drop_state.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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_observer.h" 5 #include "ui/views/animation/ink_drop_animation_observer.h"
6 6
7 #include <iostream>
8 #include <string> 7 #include <string>
9 8
10 #include "base/logging.h" 9 #include "base/logging.h"
11 10
12 namespace views { 11 namespace views {
13 12
14 std::string ToString( 13 std::string ToString(
15 InkDropAnimationObserver::InkDropAnimationEndedReason reason) { 14 InkDropAnimationObserver::InkDropAnimationEndedReason reason) {
16 switch (reason) { 15 switch (reason) {
17 case InkDropAnimationObserver::SUCCESS: 16 case InkDropAnimationObserver::SUCCESS:
18 return std::string("SUCCESS"); 17 return std::string("SUCCESS");
19 case InkDropAnimationObserver::PRE_EMPTED: 18 case InkDropAnimationObserver::PRE_EMPTED:
20 return std::string("PRE_EMPTED"); 19 return std::string("PRE_EMPTED");
21 } 20 }
22 NOTREACHED() 21 NOTREACHED()
23 << "Should never be reached but is necessary for some compilers."; 22 << "Should never be reached but is necessary for some compilers.";
24 return std::string(); 23 return std::string();
25 } 24 }
26 25
27 } // namespace views 26 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/animation/ink_drop_animation_observer.h ('k') | ui/views/animation/ink_drop_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698