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

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

Issue 2931703002: Don't fade in overlay scrollbar when user interacting the content under scrollbar. (Closed)
Patch Set: Created 3 years, 6 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // root layer, and the layer can no longer move, the root overscroll 151 // root layer, and the layer can no longer move, the root overscroll
152 // accumulated within this ScrollBegin() scope is reported in the return 152 // accumulated within this ScrollBegin() scope is reported in the return
153 // value's |accumulated_overscroll| field. Should only be called if 153 // value's |accumulated_overscroll| field. Should only be called if
154 // ScrollBegin() returned SCROLL_STARTED. 154 // ScrollBegin() returned SCROLL_STARTED.
155 virtual InputHandlerScrollResult ScrollBy(ScrollState* scroll_state) = 0; 155 virtual InputHandlerScrollResult ScrollBy(ScrollState* scroll_state) = 0;
156 156
157 // Returns SCROLL_STARTED if a layer was actively being scrolled, 157 // Returns SCROLL_STARTED if a layer was actively being scrolled,
158 // SCROLL_IGNORED if not. 158 // SCROLL_IGNORED if not.
159 virtual ScrollStatus FlingScrollBegin() = 0; 159 virtual ScrollStatus FlingScrollBegin() = 0;
160 160
161 virtual void MouseMoveAt(const gfx::Point& mouse_position) = 0; 161 virtual void MouseMoveAt(const gfx::Point& mouse_position,
162 bool mouse_down) = 0;
bokan 2017/06/08 14:02:38 Can we just keep track of the mouse state from the
162 virtual void MouseDown() = 0; 163 virtual void MouseDown() = 0;
163 virtual void MouseUp() = 0; 164 virtual void MouseUp() = 0;
164 virtual void MouseLeave() = 0; 165 virtual void MouseLeave() = 0;
165 166
166 // Stop scrolling the selected layer. Should only be called if ScrollBegin() 167 // Stop scrolling the selected layer. Should only be called if ScrollBegin()
167 // returned SCROLL_STARTED. 168 // returned SCROLL_STARTED.
168 virtual void ScrollEnd(ScrollState* scroll_state) = 0; 169 virtual void ScrollEnd(ScrollState* scroll_state) = 0;
169 170
170 // Requests a callback to UpdateRootLayerStateForSynchronousInputHandler() 171 // Requests a callback to UpdateRootLayerStateForSynchronousInputHandler()
171 // giving the current root scroll and page scale information. 172 // giving the current root scroll and page scale information.
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 InputHandler() {} 225 InputHandler() {}
225 virtual ~InputHandler() {} 226 virtual ~InputHandler() {}
226 227
227 private: 228 private:
228 DISALLOW_COPY_AND_ASSIGN(InputHandler); 229 DISALLOW_COPY_AND_ASSIGN(InputHandler);
229 }; 230 };
230 231
231 } // namespace cc 232 } // namespace cc
232 233
233 #endif // CC_INPUT_INPUT_HANDLER_H_ 234 #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.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698