| 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/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 const gfx::Point& anchor) = 0; | 135 const gfx::Point& anchor) = 0; |
| 136 virtual void PinchGestureEnd() = 0; | 136 virtual void PinchGestureEnd() = 0; |
| 137 | 137 |
| 138 // Request another callback to InputHandlerClient::Animate(). | 138 // Request another callback to InputHandlerClient::Animate(). |
| 139 virtual void SetNeedsAnimate() = 0; | 139 virtual void SetNeedsAnimate() = 0; |
| 140 | 140 |
| 141 // Whether the layer under |viewport_point| is the currently scrolling layer. | 141 // Whether the layer under |viewport_point| is the currently scrolling layer. |
| 142 virtual bool IsCurrentlyScrollingLayerAt(const gfx::Point& viewport_point, | 142 virtual bool IsCurrentlyScrollingLayerAt(const gfx::Point& viewport_point, |
| 143 ScrollInputType type) = 0; | 143 ScrollInputType type) = 0; |
| 144 | 144 |
| 145 virtual bool HaveWheelEventHandlersAt(const gfx::Point& viewport_point) = 0; |
| 145 virtual bool HaveTouchEventHandlersAt(const gfx::Point& viewport_point) = 0; | 146 virtual bool HaveTouchEventHandlersAt(const gfx::Point& viewport_point) = 0; |
| 146 | 147 |
| 147 // Calling CreateLatencyInfoSwapPromiseMonitor() to get a scoped | 148 // Calling CreateLatencyInfoSwapPromiseMonitor() to get a scoped |
| 148 // LatencyInfoSwapPromiseMonitor. During the life time of the | 149 // LatencyInfoSwapPromiseMonitor. During the life time of the |
| 149 // LatencyInfoSwapPromiseMonitor, if SetNeedsRedraw() or SetNeedsRedrawRect() | 150 // LatencyInfoSwapPromiseMonitor, if SetNeedsRedraw() or SetNeedsRedrawRect() |
| 150 // is called on LayerTreeHostImpl, the original latency info will be turned | 151 // is called on LayerTreeHostImpl, the original latency info will be turned |
| 151 // into a LatencyInfoSwapPromise. | 152 // into a LatencyInfoSwapPromise. |
| 152 virtual scoped_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( | 153 virtual scoped_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( |
| 153 ui::LatencyInfo* latency) = 0; | 154 ui::LatencyInfo* latency) = 0; |
| 154 | 155 |
| 155 virtual ScrollElasticityHelper* CreateScrollElasticityHelper() = 0; | 156 virtual ScrollElasticityHelper* CreateScrollElasticityHelper() = 0; |
| 156 | 157 |
| 157 protected: | 158 protected: |
| 158 InputHandler() {} | 159 InputHandler() {} |
| 159 virtual ~InputHandler() {} | 160 virtual ~InputHandler() {} |
| 160 | 161 |
| 161 private: | 162 private: |
| 162 DISALLOW_COPY_AND_ASSIGN(InputHandler); | 163 DISALLOW_COPY_AND_ASSIGN(InputHandler); |
| 163 }; | 164 }; |
| 164 | 165 |
| 165 } // namespace cc | 166 } // namespace cc |
| 166 | 167 |
| 167 #endif // CC_INPUT_INPUT_HANDLER_H_ | 168 #endif // CC_INPUT_INPUT_HANDLER_H_ |
| OLD | NEW |