| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_INPUT_HANDLER_H_ | 5 #ifndef CC_INPUT_INPUT_HANDLER_H_ |
| 6 #define CC_INPUT_INPUT_HANDLER_H_ | 6 #define CC_INPUT_INPUT_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 virtual void PinchGestureUpdate(float magnify_delta, | 118 virtual void PinchGestureUpdate(float magnify_delta, |
| 119 const gfx::Point& anchor) = 0; | 119 const gfx::Point& anchor) = 0; |
| 120 virtual void PinchGestureEnd() = 0; | 120 virtual void PinchGestureEnd() = 0; |
| 121 | 121 |
| 122 virtual void StartPageScaleAnimation(const gfx::Vector2d& target_offset, | 122 virtual void StartPageScaleAnimation(const gfx::Vector2d& target_offset, |
| 123 bool anchor_point, | 123 bool anchor_point, |
| 124 float page_scale, | 124 float page_scale, |
| 125 base::TimeDelta duration) = 0; | 125 base::TimeDelta duration) = 0; |
| 126 | 126 |
| 127 // Request another callback to InputHandlerClient::Animate(). | 127 // Request another callback to InputHandlerClient::Animate(). |
| 128 virtual void SetNeedsAnimate() = 0; | 128 virtual void ScheduleAnimation() = 0; |
| 129 | 129 |
| 130 virtual bool HaveTouchEventHandlersAt(const gfx::Point& viewport_point) = 0; | 130 virtual bool HaveTouchEventHandlersAt(const gfx::Point& viewport_point) = 0; |
| 131 | 131 |
| 132 // Calling CreateLatencyInfoSwapPromiseMonitor() to get a scoped | 132 // Calling CreateLatencyInfoSwapPromiseMonitor() to get a scoped |
| 133 // LatencyInfoSwapPromiseMonitor. During the life time of the | 133 // LatencyInfoSwapPromiseMonitor. During the life time of the |
| 134 // LatencyInfoSwapPromiseMonitor, if SetNeedsRedraw() or SetNeedsRedrawRect() | 134 // LatencyInfoSwapPromiseMonitor, if SetNeedsRedraw() or SetNeedsRedrawRect() |
| 135 // is called on LayerTreeHostImpl, the original latency info will be turned | 135 // is called on LayerTreeHostImpl, the original latency info will be turned |
| 136 // into a LatencyInfoSwapPromise. | 136 // into a LatencyInfoSwapPromise. |
| 137 virtual scoped_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( | 137 virtual scoped_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( |
| 138 ui::LatencyInfo* latency) = 0; | 138 ui::LatencyInfo* latency) = 0; |
| 139 | 139 |
| 140 protected: | 140 protected: |
| 141 InputHandler() {} | 141 InputHandler() {} |
| 142 virtual ~InputHandler() {} | 142 virtual ~InputHandler() {} |
| 143 | 143 |
| 144 private: | 144 private: |
| 145 DISALLOW_COPY_AND_ASSIGN(InputHandler); | 145 DISALLOW_COPY_AND_ASSIGN(InputHandler); |
| 146 }; | 146 }; |
| 147 | 147 |
| 148 } // namespace cc | 148 } // namespace cc |
| 149 | 149 |
| 150 #endif // CC_INPUT_INPUT_HANDLER_H_ | 150 #endif // CC_INPUT_INPUT_HANDLER_H_ |
| OLD | NEW |