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

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

Issue 2358323003: Keep expanded if mouse moves off of scrollbar while dragging (Closed)
Patch Set: Merge remote-tracking branch 'origin/master' into fix-636438 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // accumulated within this ScrollBegin() scope is reported in the return 146 // accumulated within this ScrollBegin() scope is reported in the return
147 // value's |accumulated_overscroll| field. Should only be called if 147 // value's |accumulated_overscroll| field. Should only be called if
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 MouseDownAt(const gfx::Point& mouse_position) = 0;
weiliangc 2016/09/29 21:37:33 I don't see the mouse_position being used. Is it p
157 virtual void MouseUp() = 0;
156 158
157 // Stop scrolling the selected layer. Should only be called if ScrollBegin() 159 // Stop scrolling the selected layer. Should only be called if ScrollBegin()
158 // returned SCROLL_STARTED. 160 // returned SCROLL_STARTED.
159 virtual void ScrollEnd(ScrollState* scroll_state) = 0; 161 virtual void ScrollEnd(ScrollState* scroll_state) = 0;
160 162
161 // Requests a callback to UpdateRootLayerStateForSynchronousInputHandler() 163 // Requests a callback to UpdateRootLayerStateForSynchronousInputHandler()
162 // giving the current root scroll and page scale information. 164 // giving the current root scroll and page scale information.
163 virtual void RequestUpdateForSynchronousInputHandler() = 0; 165 virtual void RequestUpdateForSynchronousInputHandler() = 0;
164 166
165 // 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
209 InputHandler() {} 211 InputHandler() {}
210 virtual ~InputHandler() {} 212 virtual ~InputHandler() {}
211 213
212 private: 214 private:
213 DISALLOW_COPY_AND_ASSIGN(InputHandler); 215 DISALLOW_COPY_AND_ASSIGN(InputHandler);
214 }; 216 };
215 217
216 } // namespace cc 218 } // namespace cc
217 219
218 #endif // CC_INPUT_INPUT_HANDLER_H_ 220 #endif // CC_INPUT_INPUT_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/input/scrollbar_animation_controller.h » ('j') | cc/trees/layer_tree_host_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698