| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 // NOTE: This should only called after a valid delegate was set via a call to | 129 // NOTE: This should only called after a valid delegate was set via a call to |
| 130 // SetRootLayerScrollOffsetDelegate. | 130 // SetRootLayerScrollOffsetDelegate. |
| 131 virtual void OnRootLayerDelegatedScrollOffsetChanged() = 0; | 131 virtual void OnRootLayerDelegatedScrollOffsetChanged() = 0; |
| 132 | 132 |
| 133 virtual void PinchGestureBegin() = 0; | 133 virtual void PinchGestureBegin() = 0; |
| 134 virtual void PinchGestureUpdate(float magnify_delta, | 134 virtual void PinchGestureUpdate(float magnify_delta, |
| 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 SetNeedsAnimateInput() = 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 HaveWheelEventHandlersAt(const gfx::Point& viewport_point) = 0; |
| 146 | 146 |
| 147 // Whether the page should be given the opportunity to suppress scrolling by | 147 // Whether the page should be given the opportunity to suppress scrolling by |
| 148 // consuming touch events that started at |viewport_point|. | 148 // consuming touch events that started at |viewport_point|. |
| 149 virtual bool DoTouchEventsBlockScrollAt(const gfx::Point& viewport_point) = 0; | 149 virtual bool DoTouchEventsBlockScrollAt(const gfx::Point& viewport_point) = 0; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 162 InputHandler() {} | 162 InputHandler() {} |
| 163 virtual ~InputHandler() {} | 163 virtual ~InputHandler() {} |
| 164 | 164 |
| 165 private: | 165 private: |
| 166 DISALLOW_COPY_AND_ASSIGN(InputHandler); | 166 DISALLOW_COPY_AND_ASSIGN(InputHandler); |
| 167 }; | 167 }; |
| 168 | 168 |
| 169 } // namespace cc | 169 } // namespace cc |
| 170 | 170 |
| 171 #endif // CC_INPUT_INPUT_HANDLER_H_ | 171 #endif // CC_INPUT_INPUT_HANDLER_H_ |
| OLD | NEW |