OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 CC_INPUT_TOP_CONTROLS_MANAGER_H_ | 5 #ifndef CC_INPUT_TOP_CONTROLS_MANAGER_H_ |
6 #define CC_INPUT_TOP_CONTROLS_MANAGER_H_ | 6 #define CC_INPUT_TOP_CONTROLS_MANAGER_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "cc/input/top_controls_state.h" | 10 #include "cc/input/top_controls_state.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 KeyframedFloatAnimationCurve* animation() { | 46 KeyframedFloatAnimationCurve* animation() { |
47 return top_controls_animation_.get(); | 47 return top_controls_animation_.get(); |
48 } | 48 } |
49 AnimationDirection animation_direction() { return animation_direction_; } | 49 AnimationDirection animation_direction() { return animation_direction_; } |
50 | 50 |
51 void UpdateTopControlsState(TopControlsState constraints, | 51 void UpdateTopControlsState(TopControlsState constraints, |
52 TopControlsState current, | 52 TopControlsState current, |
53 bool animate); | 53 bool animate); |
54 | 54 |
55 void ScrollBegin(); | 55 void ScrollBegin(); |
56 gfx::Vector2dF ScrollBy(const gfx::Vector2dF pending_delta); | 56 gfx::Vector2dF ScrollBy(const gfx::Vector2dF& pending_delta); |
57 void ScrollEnd(); | 57 void ScrollEnd(); |
58 | 58 |
59 // The caller should ensure that |Pinch{Begin,End}| are called within | 59 // The caller should ensure that |Pinch{Begin,End}| are called within |
60 // the scope of |Scroll{Begin,End}|. | 60 // the scope of |Scroll{Begin,End}|. |
61 void PinchBegin(); | 61 void PinchBegin(); |
62 void PinchEnd(); | 62 void PinchEnd(); |
63 | 63 |
64 gfx::Vector2dF Animate(base::TimeTicks monotonic_time); | 64 gfx::Vector2dF Animate(base::TimeTicks monotonic_time); |
65 | 65 |
66 protected: | 66 protected: |
(...skipping 30 matching lines...) Expand all Loading... |
97 float top_controls_hide_height_; | 97 float top_controls_hide_height_; |
98 | 98 |
99 bool pinch_gesture_active_; | 99 bool pinch_gesture_active_; |
100 | 100 |
101 DISALLOW_COPY_AND_ASSIGN(TopControlsManager); | 101 DISALLOW_COPY_AND_ASSIGN(TopControlsManager); |
102 }; | 102 }; |
103 | 103 |
104 } // namespace cc | 104 } // namespace cc |
105 | 105 |
106 #endif // CC_INPUT_TOP_CONTROLS_MANAGER_H_ | 106 #endif // CC_INPUT_TOP_CONTROLS_MANAGER_H_ |
OLD | NEW |