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

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

Issue 2388563002: Clean up viewport scrolling methods in CC (Closed)
Patch Set: Fix tests 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
« no previous file with comments | « no previous file | cc/layers/viewport.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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 const gfx::ScrollOffset& root_offset) = 0; 170 const gfx::ScrollOffset& root_offset) = 0;
171 171
172 virtual void PinchGestureBegin() = 0; 172 virtual void PinchGestureBegin() = 0;
173 virtual void PinchGestureUpdate(float magnify_delta, 173 virtual void PinchGestureUpdate(float magnify_delta,
174 const gfx::Point& anchor) = 0; 174 const gfx::Point& anchor) = 0;
175 virtual void PinchGestureEnd() = 0; 175 virtual void PinchGestureEnd() = 0;
176 176
177 // Request another callback to InputHandlerClient::Animate(). 177 // Request another callback to InputHandlerClient::Animate().
178 virtual void SetNeedsAnimateInput() = 0; 178 virtual void SetNeedsAnimateInput() = 0;
179 179
180 // Returns true if there is an active scroll on the inner viewport layer. 180 // Returns true if there is an active scroll on the viewport.
181 virtual bool IsCurrentlyScrollingInnerViewport() const = 0; 181 virtual bool IsCurrentlyScrollingViewport() const = 0;
182 182
183 // Whether the layer under |viewport_point| is the currently scrolling layer. 183 // Whether the layer under |viewport_point| is the currently scrolling layer.
184 virtual bool IsCurrentlyScrollingLayerAt(const gfx::Point& viewport_point, 184 virtual bool IsCurrentlyScrollingLayerAt(const gfx::Point& viewport_point,
185 ScrollInputType type) const = 0; 185 ScrollInputType type) const = 0;
186 186
187 virtual EventListenerProperties GetEventListenerProperties( 187 virtual EventListenerProperties GetEventListenerProperties(
188 EventListenerClass event_class) const = 0; 188 EventListenerClass event_class) const = 0;
189 189
190 // Whether the page should be given the opportunity to suppress scrolling by 190 // Whether the page should be given the opportunity to suppress scrolling by
191 // consuming touch events that started at |viewport_point|. 191 // consuming touch events that started at |viewport_point|.
(...skipping 19 matching lines...) Expand all
211 InputHandler() {} 211 InputHandler() {}
212 virtual ~InputHandler() {} 212 virtual ~InputHandler() {}
213 213
214 private: 214 private:
215 DISALLOW_COPY_AND_ASSIGN(InputHandler); 215 DISALLOW_COPY_AND_ASSIGN(InputHandler);
216 }; 216 };
217 217
218 } // namespace cc 218 } // namespace cc
219 219
220 #endif // CC_INPUT_INPUT_HANDLER_H_ 220 #endif // CC_INPUT_INPUT_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/viewport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698