| Index: ui/views/animation/test/ink_drop_hover_test_api.cc
|
| diff --git a/ui/views/animation/test/ink_drop_hover_test_api.cc b/ui/views/animation/test/ink_drop_hover_test_api.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b7c1b455733e561a6874f1e58b0394f6559a5b20
|
| --- /dev/null
|
| +++ b/ui/views/animation/test/ink_drop_hover_test_api.cc
|
| @@ -0,0 +1,29 @@
|
| +// Copyright 2016 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/test/ink_drop_hover_test_api.h"
|
| +
|
| +#include "base/time/time.h"
|
| +#include "ui/compositor/layer.h"
|
| +#include "ui/compositor/layer_animator.h"
|
| +#include "ui/compositor/test/layer_animator_test_controller.h"
|
| +#include "ui/views/animation/ink_drop_hover.h"
|
| +
|
| +namespace views {
|
| +namespace test {
|
| +
|
| +InkDropHoverTestApi::InkDropHoverTestApi(InkDropHover* ink_drop_hover)
|
| + : ui::test::MultiLayerAnimatorTestController(this),
|
| + ink_drop_hover_(ink_drop_hover) {}
|
| +
|
| +InkDropHoverTestApi::~InkDropHoverTestApi() {}
|
| +
|
| +std::vector<ui::LayerAnimator*> InkDropHoverTestApi::GetLayerAnimators() {
|
| + std::vector<ui::LayerAnimator*> animators;
|
| + animators.push_back(ink_drop_hover()->layer_->GetAnimator());
|
| + return animators;
|
| +}
|
| +
|
| +} // namespace test
|
| +} // namespace views
|
|
|