blob: aa24fc73b972a5fd62e3a614a69179a2b00c0f4b [file] [log] [blame]
// Copyright 2015 The Chromium Authors
// 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 <ostream>
#include <string>
#include "base/notreached.h"
namespace views {
std::string ToString(InkDropState state) {
switch (state) {
case InkDropState::HIDDEN:
return std::string("HIDDEN");
case InkDropState::ACTION_PENDING:
return std::string("ACTION_PENDING");
case InkDropState::ACTION_TRIGGERED:
return std::string("ACTION_TRIGGERED");
case InkDropState::ALTERNATE_ACTION_PENDING:
return std::string("ALTERNATE_ACTION_PENDING");
case InkDropState::ALTERNATE_ACTION_TRIGGERED:
return std::string("ALTERNATE_ACTION_TRIGGERED");
case InkDropState::ACTIVATED:
return std::string("ACTIVATED");
case InkDropState::DEACTIVATED:
return std::string("DEACTIVATED");
}
NOTREACHED();
}
} // namespace views