| Index: ui/views/animation/ink_drop_animation_observer.cc
|
| diff --git a/ui/views/animation/ink_drop_animation_observer.cc b/ui/views/animation/ink_drop_animation_observer.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d6dd498cbeb93a604410fafa63e6aebcb3fc4f27
|
| --- /dev/null
|
| +++ b/ui/views/animation/ink_drop_animation_observer.cc
|
| @@ -0,0 +1,27 @@
|
| +// 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_animation_observer.h"
|
| +
|
| +#include <iostream>
|
| +
|
| +#include "base/logging.h"
|
| +
|
| +namespace views {
|
| +
|
| +std::ostream& operator<<(
|
| + std::ostream& out,
|
| + InkDropAnimationObserver::InkDropAnimationEndedReason reason) {
|
| + switch (reason) {
|
| + case InkDropAnimationObserver::SUCCESS:
|
| + return out << "SUCCESS";
|
| + case InkDropAnimationObserver::PRE_EMPTED:
|
| + return out << "PRE_EMPTED";
|
| + }
|
| + NOTREACHED()
|
| + << "Should never be reached but is necessary for some compilers.";
|
| + return out << "UNKNOWN";
|
| +}
|
| +
|
| +} // namespace views
|
|
|