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

Side by Side Diff: ui/views/animation/test/ink_drop_animation_controller_impl_test_api.h

Issue 1963193002: Ink Drop cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed tdanderson@ nit from patch set 1. Created 4 years, 7 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 2016 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 #ifndef UI_VIEWS_ANIMATION_TEST_INK_DROP_ANIMATION_CONTROLLER_IMPL_TEST_API_H_
6 #define UI_VIEWS_ANIMATION_TEST_INK_DROP_ANIMATION_CONTROLLER_IMPL_TEST_API_H_
7
8 #include <vector>
9
10 #include "base/macros.h"
11 #include "ui/compositor/test/multi_layer_animator_test_controller.h"
12 #include "ui/compositor/test/multi_layer_animator_test_controller_delegate.h"
13
14 namespace ui {
15 class LayerAnimator;
16 } // namespace ui
17
18 namespace views {
19 class InkDropAnimationControllerImpl;
20 class InkDropHover;
21
22 namespace test {
23
24 // Test API to provide internal access to an InkDropAnimationControllerImpl
25 // instance. This can also be used to control the InkDropRipple and
26 // InkDropHover animations via the ui::test::MultiLayerAnimatorTestController
27 // API.
28 class InkDropAnimationControllerImplTestApi
29 : public ui::test::MultiLayerAnimatorTestController,
30 public ui::test::MultiLayerAnimatorTestControllerDelegate {
31 public:
32 explicit InkDropAnimationControllerImplTestApi(
33 InkDropAnimationControllerImpl* ink_drop_controller_);
34 ~InkDropAnimationControllerImplTestApi() override;
35
36 // Wrappers to InkDropAnimationControllerImpl internals:
37 const InkDropHover* hover() const;
38 bool IsHoverFadingInOrVisible() const;
39
40 protected:
41 // MultiLayerAnimatorTestControllerDelegate:
42 std::vector<ui::LayerAnimator*> GetLayerAnimators() override;
43
44 private:
45 // The InkDropAnimationController to provide internal access to.
46 InkDropAnimationControllerImpl* ink_drop_controller_;
47
48 DISALLOW_COPY_AND_ASSIGN(InkDropAnimationControllerImplTestApi);
49 };
50
51 } // namespace test
52 } // namespace views
53
54 #endif // UI_VIEWS_ANIMATION_TEST_INK_DROP_ANIMATION_CONTROLLER_IMPL_TEST_API_H _
OLDNEW
« no previous file with comments | « ui/views/animation/ink_drop_host.h ('k') | ui/views/animation/test/ink_drop_animation_controller_impl_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698