| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 void RemoveUnUsedScrollDelta(float unused_delta); |
| 58 | 59 |
| 59 // The caller should ensure that |Pinch{Begin,End}| are called within | 60 // The caller should ensure that |Pinch{Begin,End}| are called within |
| 60 // the scope of |Scroll{Begin,End}|. | 61 // the scope of |Scroll{Begin,End}|. |
| 61 void PinchBegin(); | 62 void PinchBegin(); |
| 62 void PinchEnd(); | 63 void PinchEnd(); |
| 63 | 64 |
| 64 gfx::Vector2dF Animate(base::TimeTicks monotonic_time); | 65 gfx::Vector2dF Animate(base::TimeTicks monotonic_time); |
| 65 void SetControlsTopOffset(float offset); | 66 void SetControlsTopOffset(float offset); |
| 66 float top_controls_height() { return top_controls_height_; } | 67 float top_controls_height() { return top_controls_height_; } |
| 67 | 68 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 97 float top_controls_hide_height_; | 98 float top_controls_hide_height_; |
| 98 | 99 |
| 99 bool pinch_gesture_active_; | 100 bool pinch_gesture_active_; |
| 100 | 101 |
| 101 DISALLOW_COPY_AND_ASSIGN(TopControlsManager); | 102 DISALLOW_COPY_AND_ASSIGN(TopControlsManager); |
| 102 }; | 103 }; |
| 103 | 104 |
| 104 } // namespace cc | 105 } // namespace cc |
| 105 | 106 |
| 106 #endif // CC_INPUT_TOP_CONTROLS_MANAGER_H_ | 107 #endif // CC_INPUT_TOP_CONTROLS_MANAGER_H_ |
| OLD | NEW |