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