| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 // ScrollBegin() returned SCROLL_STARTED. | 148 // ScrollBegin() returned SCROLL_STARTED. |
| 149 virtual InputHandlerScrollResult ScrollBy(ScrollState* scroll_state) = 0; | 149 virtual InputHandlerScrollResult ScrollBy(ScrollState* scroll_state) = 0; |
| 150 | 150 |
| 151 // Returns SCROLL_STARTED if a layer was actively being scrolled, | 151 // Returns SCROLL_STARTED if a layer was actively being scrolled, |
| 152 // SCROLL_IGNORED if not. | 152 // SCROLL_IGNORED if not. |
| 153 virtual ScrollStatus FlingScrollBegin() = 0; | 153 virtual ScrollStatus FlingScrollBegin() = 0; |
| 154 | 154 |
| 155 virtual void MouseMoveAt(const gfx::Point& mouse_position) = 0; | 155 virtual void MouseMoveAt(const gfx::Point& mouse_position) = 0; |
| 156 virtual void MouseDown() = 0; | 156 virtual void MouseDown() = 0; |
| 157 virtual void MouseUp() = 0; | 157 virtual void MouseUp() = 0; |
| 158 virtual void MouseLeave() = 0; | |
| 159 | 158 |
| 160 // Stop scrolling the selected layer. Should only be called if ScrollBegin() | 159 // Stop scrolling the selected layer. Should only be called if ScrollBegin() |
| 161 // returned SCROLL_STARTED. | 160 // returned SCROLL_STARTED. |
| 162 virtual void ScrollEnd(ScrollState* scroll_state) = 0; | 161 virtual void ScrollEnd(ScrollState* scroll_state) = 0; |
| 163 | 162 |
| 164 // Requests a callback to UpdateRootLayerStateForSynchronousInputHandler() | 163 // Requests a callback to UpdateRootLayerStateForSynchronousInputHandler() |
| 165 // giving the current root scroll and page scale information. | 164 // giving the current root scroll and page scale information. |
| 166 virtual void RequestUpdateForSynchronousInputHandler() = 0; | 165 virtual void RequestUpdateForSynchronousInputHandler() = 0; |
| 167 | 166 |
| 168 // Called when the root scroll offset has been changed in the synchronous | 167 // Called when the root scroll offset has been changed in the synchronous |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 InputHandler() {} | 211 InputHandler() {} |
| 213 virtual ~InputHandler() {} | 212 virtual ~InputHandler() {} |
| 214 | 213 |
| 215 private: | 214 private: |
| 216 DISALLOW_COPY_AND_ASSIGN(InputHandler); | 215 DISALLOW_COPY_AND_ASSIGN(InputHandler); |
| 217 }; | 216 }; |
| 218 | 217 |
| 219 } // namespace cc | 218 } // namespace cc |
| 220 | 219 |
| 221 #endif // CC_INPUT_INPUT_HANDLER_H_ | 220 #endif // CC_INPUT_INPUT_HANDLER_H_ |
| OLD | NEW |