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

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

Issue 1900283002: Added ui::test::MultiLayerAnimatorTestController and Delegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated gn build. Created 4 years, 8 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_FLOOD_FILL_INK_DROP_ANIMATION_TEST_API_H_ 5 #ifndef UI_VIEWS_ANIMATION_TEST_FLOOD_FILL_INK_DROP_ANIMATION_TEST_API_H_
6 #define UI_VIEWS_ANIMATION_TEST_FLOOD_FILL_INK_DROP_ANIMATION_TEST_API_H_ 6 #define UI_VIEWS_ANIMATION_TEST_FLOOD_FILL_INK_DROP_ANIMATION_TEST_API_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 16 matching lines...) Expand all
27 ~FloodFillInkDropAnimationTestApi() override; 27 ~FloodFillInkDropAnimationTestApi() override;
28 28
29 // Wrapper functions to the wrapped InkDropAnimation: 29 // Wrapper functions to the wrapped InkDropAnimation:
30 gfx::Transform CalculateTransform(float target_radius) const; 30 gfx::Transform CalculateTransform(float target_radius) const;
31 31
32 // InkDropAnimationTestApi: 32 // InkDropAnimationTestApi:
33 float GetCurrentOpacity() const override; 33 float GetCurrentOpacity() const override;
34 34
35 protected: 35 protected:
36 // InkDropAnimationTestApi: 36 // InkDropAnimationTestApi:
37 std::vector<ui::LayerAnimator*> GetLayerAnimators() const override; 37 std::vector<ui::LayerAnimator*> GetLayerAnimators() override;
38 38
39 private: 39 private:
40 FloodFillInkDropAnimation* ink_drop_animation() { 40 FloodFillInkDropAnimation* ink_drop_animation() {
41 return static_cast<const FloodFillInkDropAnimationTestApi*>(this) 41 return static_cast<const FloodFillInkDropAnimationTestApi*>(this)
42 ->ink_drop_animation(); 42 ->ink_drop_animation();
43 } 43 }
44 44
45 FloodFillInkDropAnimation* ink_drop_animation() const { 45 FloodFillInkDropAnimation* ink_drop_animation() const {
46 return static_cast<FloodFillInkDropAnimation*>( 46 return static_cast<FloodFillInkDropAnimation*>(
47 InkDropAnimationTestApi::ink_drop_animation()); 47 InkDropAnimationTestApi::ink_drop_animation());
48 } 48 }
49 49
50 DISALLOW_COPY_AND_ASSIGN(FloodFillInkDropAnimationTestApi); 50 DISALLOW_COPY_AND_ASSIGN(FloodFillInkDropAnimationTestApi);
51 }; 51 };
52 52
53 } // namespace test 53 } // namespace test
54 } // namespace views 54 } // namespace views
55 55
56 #endif // UI_VIEWS_ANIMATION_TEST_FLOOD_FILL_INK_DROP_ANIMATION_TEST_API_H_ 56 #endif // UI_VIEWS_ANIMATION_TEST_FLOOD_FILL_INK_DROP_ANIMATION_TEST_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698