Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Side by Side Diff: cc/input/input_handler.h

Issue 2358323003: Keep expanded if mouse moves off of scrollbar while dragging (Closed)
Patch Set: fix style and check left button Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | cc/input/scrollbar_animation_controller.h » ('j') | cc/input/scrollbar_animation_controller_thinning.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698