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

Side by Side Diff: ui/compositor/test/layer_animator_test_controller.h

Issue 1495753002: Make the material design ripple effect more visible on a quick action (single click or single tap) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added tests and addressed comments from previous patch sets. Created 4 years, 10 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_COMPOSITOR_TEST_LAYER_ANIMATOR_TEST_CONTROLLER_H_ 5 #ifndef UI_COMPOSITOR_TEST_LAYER_ANIMATOR_TEST_CONTROLLER_H_
6 #define UI_COMPOSITOR_TEST_LAYER_ANIMATOR_TEST_CONTROLLER_H_ 6 #define UI_COMPOSITOR_TEST_LAYER_ANIMATOR_TEST_CONTROLLER_H_
7 7
8 #include "ui/compositor/layer_animator.h" 8 #include "ui/compositor/layer_animator.h"
9 9
10 namespace ui { 10 namespace ui {
11 11
12 // Allows tests to access sequences owned by the animator. 12 // Allows tests to access sequences owned by the animator.
13 class LayerAnimatorTestController { 13 class LayerAnimatorTestController {
14 public: 14 public:
15 LayerAnimatorTestController(scoped_refptr<LayerAnimator> animator); 15 LayerAnimatorTestController(scoped_refptr<LayerAnimator> animator);
16 16
17 ~LayerAnimatorTestController(); 17 ~LayerAnimatorTestController();
18 18
19 LayerAnimator* animator() { return animator_.get(); } 19 LayerAnimator* animator() { return animator_.get(); }
20 20
21 // Returns the running sequence animating the given property, if any. 21 // Returns the running sequence animating the given property, if any.
22 LayerAnimationSequence* GetRunningSequence( 22 LayerAnimationSequence* GetRunningSequence(
23 LayerAnimationElement::AnimatableProperty property); 23 LayerAnimationElement::AnimatableProperty property);
24 24
25 // Starts threaded animations that are waiting for an effective start time. 25 // Starts threaded animations that are waiting for an effective start time.
26 void StartThreadedAnimationsIfNeeded(); 26 void StartThreadedAnimationsIfNeeded();
27 27
28 // Progresses all running animations by the given |duration|.
29 void Step(const base::TimeDelta& duration);
30
28 private: 31 private:
29 scoped_refptr<LayerAnimator> animator_; 32 scoped_refptr<LayerAnimator> animator_;
30 }; 33 };
31 34
32 } // namespace ui 35 } // namespace ui
33 36
34 #endif // UI_COMPOSITOR_TEST_LAYER_ANIMATOR_TEST_CONTROLLER_H_ 37 #endif // UI_COMPOSITOR_TEST_LAYER_ANIMATOR_TEST_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ui/compositor/test/layer_animator_test_controller.cc » ('j') | ui/views/animation/ink_drop_animation.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698