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

Side by Side Diff: ui/views/animation/test/square_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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_SQUARE_INK_DROP_ANIMATION_TEST_API_H_ 5 #ifndef UI_VIEWS_ANIMATION_TEST_SQUARE_INK_DROP_ANIMATION_TEST_API_H_
6 #define UI_VIEWS_ANIMATION_TEST_SQUARE_INK_DROP_ANIMATION_TEST_API_H_ 6 #define UI_VIEWS_ANIMATION_TEST_SQUARE_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 24 matching lines...) Expand all
35 InkDropTransforms* transforms_out) const; 35 InkDropTransforms* transforms_out) const;
36 void CalculateRectTransforms(const gfx::Size& size, 36 void CalculateRectTransforms(const gfx::Size& size,
37 float corner_radius, 37 float corner_radius,
38 InkDropTransforms* transforms_out) const; 38 InkDropTransforms* transforms_out) const;
39 39
40 // InkDropAnimationTestApi: 40 // InkDropAnimationTestApi:
41 float GetCurrentOpacity() const override; 41 float GetCurrentOpacity() const override;
42 42
43 protected: 43 protected:
44 // InkDropAnimationTestApi: 44 // InkDropAnimationTestApi:
45 std::vector<ui::LayerAnimator*> GetLayerAnimators() const override; 45 std::vector<ui::LayerAnimator*> GetLayerAnimators() override;
46 46
47 private: 47 private:
48 SquareInkDropAnimation* ink_drop_animation() { 48 SquareInkDropAnimation* ink_drop_animation() {
49 return static_cast<const SquareInkDropAnimationTestApi*>(this) 49 return static_cast<const SquareInkDropAnimationTestApi*>(this)
50 ->ink_drop_animation(); 50 ->ink_drop_animation();
51 } 51 }
52 52
53 SquareInkDropAnimation* ink_drop_animation() const { 53 SquareInkDropAnimation* ink_drop_animation() const {
54 return static_cast<SquareInkDropAnimation*>( 54 return static_cast<SquareInkDropAnimation*>(
55 InkDropAnimationTestApi::ink_drop_animation()); 55 InkDropAnimationTestApi::ink_drop_animation());
56 } 56 }
57 57
58 DISALLOW_COPY_AND_ASSIGN(SquareInkDropAnimationTestApi); 58 DISALLOW_COPY_AND_ASSIGN(SquareInkDropAnimationTestApi);
59 }; 59 };
60 60
61 } // namespace test 61 } // namespace test
62 } // namespace views 62 } // namespace views
63 63
64 #endif // UI_VIEWS_ANIMATION_TEST_SQUARE_INK_DROP_ANIMATION_TEST_API_H_ 64 #endif // UI_VIEWS_ANIMATION_TEST_SQUARE_INK_DROP_ANIMATION_TEST_API_H_
OLDNEW
« no previous file with comments | « ui/views/animation/test/ink_drop_animation_test_api.cc ('k') | ui/views/animation/test/square_ink_drop_animation_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698