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; |
158 | 159 |
159 // Stop scrolling the selected layer. Should only be called if ScrollBegin() | 160 // Stop scrolling the selected layer. Should only be called if ScrollBegin() |
160 // returned SCROLL_STARTED. | 161 // returned SCROLL_STARTED. |
161 virtual void ScrollEnd(ScrollState* scroll_state) = 0; | 162 virtual void ScrollEnd(ScrollState* scroll_state) = 0; |
162 | 163 |
163 // Requests a callback to UpdateRootLayerStateForSynchronousInputHandler() | 164 // Requests a callback to UpdateRootLayerStateForSynchronousInputHandler() |
164 // giving the current root scroll and page scale information. | 165 // giving the current root scroll and page scale information. |
165 virtual void RequestUpdateForSynchronousInputHandler() = 0; | 166 virtual void RequestUpdateForSynchronousInputHandler() = 0; |
166 | 167 |
167 // Called when the root scroll offset has been changed in the synchronous | 168 // 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... |
211 InputHandler() {} | 212 InputHandler() {} |
212 virtual ~InputHandler() {} | 213 virtual ~InputHandler() {} |
213 | 214 |
214 private: | 215 private: |
215 DISALLOW_COPY_AND_ASSIGN(InputHandler); | 216 DISALLOW_COPY_AND_ASSIGN(InputHandler); |
216 }; | 217 }; |
217 | 218 |
218 } // namespace cc | 219 } // namespace cc |
219 | 220 |
220 #endif // CC_INPUT_INPUT_HANDLER_H_ | 221 #endif // CC_INPUT_INPUT_HANDLER_H_ |
OLD | NEW |