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

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

Issue 1896953003: Added a views::test::TestInkDropAnimationObserverHelper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed general AnimationObserver. Created 4 years, 8 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
(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_animation_observer.h"
6
7 #include <string>
8
9 #include "base/logging.h"
10
11 namespace views {
12
13 std::string ToString(
14 InkDropAnimationObserver::InkDropAnimationEndedReason reason) {
15 switch (reason) {
16 case InkDropAnimationObserver::SUCCESS:
17 return std::string("SUCCESS");
18 case InkDropAnimationObserver::PRE_EMPTED:
19 return std::string("PRE_EMPTED");
20 }
21 NOTREACHED()
22 << "Should never be reached but is necessary for some compilers.";
23 return std::string();
24 }
25
26 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698