| Index: ui/views/animation/ink_drop_state.cc
|
| diff --git a/ui/views/animation/ink_drop_state.cc b/ui/views/animation/ink_drop_state.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b350ea31d9b99d9d69ff076516b320d95897207a
|
| --- /dev/null
|
| +++ b/ui/views/animation/ink_drop_state.cc
|
| @@ -0,0 +1,35 @@
|
| +// 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_state.h"
|
| +
|
| +#include <iostream>
|
| +
|
| +#include "base/logging.h"
|
| +
|
| +namespace views {
|
| +
|
| +std::ostream& operator<<(std::ostream& out, InkDropState state) {
|
| + switch (state) {
|
| + case InkDropState::HIDDEN:
|
| + return out << "HIDDEN";
|
| + case InkDropState::ACTION_PENDING:
|
| + return out << "ACTION_PENDING";
|
| + case InkDropState::QUICK_ACTION:
|
| + return out << "QUICK_ACTION";
|
| + case InkDropState::SLOW_ACTION_PENDING:
|
| + return out << "SLOW_ACTION_PENDING";
|
| + case InkDropState::SLOW_ACTION:
|
| + return out << "SLOW_ACTION";
|
| + case InkDropState::ACTIVATED:
|
| + return out << "ACTIVATED";
|
| + case InkDropState::DEACTIVATED:
|
| + return out << "DEACTIVATED";
|
| + }
|
| + NOTREACHED()
|
| + << "Should never be reached but is necessary for some compilers.";
|
| + return out << "UNKNOWN";
|
| +}
|
| +
|
| +} // namespace views
|
|
|