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

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

Issue 2361203003: Removed unused LayerTreeHostImpl::ScrollVerticallyByPage (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // room to move the layer in the requested direction, its first ancestor layer 141 // room to move the layer in the requested direction, its first ancestor layer
142 // that can be scrolled will be moved instead. The return value's |did_scroll| 142 // that can be scrolled will be moved instead. The return value's |did_scroll|
143 // field is set to false if no layer can be moved in the requested direction 143 // field is set to false if no layer can be moved in the requested direction
144 // at all, and set to true if any layer is moved. If the scroll delta hits the 144 // at all, and set to true if any layer is moved. If the scroll delta hits the
145 // root layer, and the layer can no longer move, the root overscroll 145 // root layer, and the layer can no longer move, the root overscroll
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 virtual bool ScrollVerticallyByPage(const gfx::Point& viewport_point,
152 ScrollDirection direction) = 0;
153
154 // Returns SCROLL_STARTED if a layer was actively being scrolled, 151 // Returns SCROLL_STARTED if a layer was actively being scrolled,
155 // SCROLL_IGNORED if not. 152 // SCROLL_IGNORED if not.
156 virtual ScrollStatus FlingScrollBegin() = 0; 153 virtual ScrollStatus FlingScrollBegin() = 0;
157 154
158 virtual void MouseMoveAt(const gfx::Point& mouse_position) = 0; 155 virtual void MouseMoveAt(const gfx::Point& mouse_position) = 0;
159 156
160 // Stop scrolling the selected layer. Should only be called if ScrollBegin() 157 // Stop scrolling the selected layer. Should only be called if ScrollBegin()
161 // returned SCROLL_STARTED. 158 // returned SCROLL_STARTED.
162 virtual void ScrollEnd(ScrollState* scroll_state) = 0; 159 virtual void ScrollEnd(ScrollState* scroll_state) = 0;
163 160
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 InputHandler() {} 209 InputHandler() {}
213 virtual ~InputHandler() {} 210 virtual ~InputHandler() {}
214 211
215 private: 212 private:
216 DISALLOW_COPY_AND_ASSIGN(InputHandler); 213 DISALLOW_COPY_AND_ASSIGN(InputHandler);
217 }; 214 };
218 215
219 } // namespace cc 216 } // namespace cc
220 217
221 #endif // CC_INPUT_INPUT_HANDLER_H_ 218 #endif // CC_INPUT_INPUT_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698