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

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

Issue 2034963002: Rename InkDropHover to InkDropHighlight (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: relative patchset Created 4 years, 6 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_ANIMATION_TEST_INK_DROP_HOVER_TEST_API_H_ 5 #ifndef UI_VIEWS_ANIMATION_TEST_INK_DROP_HIGHLIGHT_TEST_API_H_
6 #define UI_VIEWS_ANIMATION_TEST_INK_DROP_HOVER_TEST_API_H_ 6 #define UI_VIEWS_ANIMATION_TEST_INK_DROP_HIGHLIGHT_TEST_API_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "ui/compositor/test/multi_layer_animator_test_controller.h" 11 #include "ui/compositor/test/multi_layer_animator_test_controller.h"
12 #include "ui/compositor/test/multi_layer_animator_test_controller_delegate.h" 12 #include "ui/compositor/test/multi_layer_animator_test_controller_delegate.h"
13 13
14 namespace ui { 14 namespace ui {
15 class LayerAnimator; 15 class LayerAnimator;
16 } // namespace ui 16 } // namespace ui
17 17
18 namespace views { 18 namespace views {
19 class InkDropHover; 19 class InkDropHighlight;
20 20
21 namespace test { 21 namespace test {
22 22
23 // Test API to provide internal access to an InkDropHover instance. This can 23 // Test API to provide internal access to an InkDropHighlight instance. This can
24 // also be used to control the animations via the 24 // also be used to control the animations via the
25 // ui::test::MultiLayerAnimatorTestController API. 25 // ui::test::MultiLayerAnimatorTestController API.
26 class InkDropHoverTestApi 26 class InkDropHighlightTestApi
27 : public ui::test::MultiLayerAnimatorTestController, 27 : public ui::test::MultiLayerAnimatorTestController,
28 public ui::test::MultiLayerAnimatorTestControllerDelegate { 28 public ui::test::MultiLayerAnimatorTestControllerDelegate {
29 public: 29 public:
30 explicit InkDropHoverTestApi(InkDropHover* ink_drop_hover); 30 explicit InkDropHighlightTestApi(InkDropHighlight* ink_drop_highlight);
31 ~InkDropHoverTestApi() override; 31 ~InkDropHighlightTestApi() override;
32 32
33 // MultiLayerAnimatorTestControllerDelegate: 33 // MultiLayerAnimatorTestControllerDelegate:
34 std::vector<ui::LayerAnimator*> GetLayerAnimators() override; 34 std::vector<ui::LayerAnimator*> GetLayerAnimators() override;
35 35
36 protected: 36 protected:
37 InkDropHover* ink_drop_hover() { 37 InkDropHighlight* ink_drop_highlight() {
38 return static_cast<const InkDropHoverTestApi*>(this)->ink_drop_hover(); 38 return static_cast<const InkDropHighlightTestApi*>(this)
39 ->ink_drop_highlight();
39 } 40 }
40 41
41 InkDropHover* ink_drop_hover() const { return ink_drop_hover_; } 42 InkDropHighlight* ink_drop_highlight() const { return ink_drop_highlight_; }
42 43
43 private: 44 private:
44 // The InkDropHover to provide internal access to. 45 // The InkDropHighlight to provide internal access to.
45 InkDropHover* ink_drop_hover_; 46 InkDropHighlight* ink_drop_highlight_;
46 47
47 DISALLOW_COPY_AND_ASSIGN(InkDropHoverTestApi); 48 DISALLOW_COPY_AND_ASSIGN(InkDropHighlightTestApi);
48 }; 49 };
49 50
50 } // namespace test 51 } // namespace test
51 } // namespace views 52 } // namespace views
52 53
53 #endif // UI_VIEWS_ANIMATION_TEST_INK_DROP_HOVER_TEST_API_H_ 54 #endif // UI_VIEWS_ANIMATION_TEST_INK_DROP_HIGHLIGHT_TEST_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698