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

Side by Side Diff: cc/input_handler.h

Issue 11975007: Implement one-page-at-a-time mousewheel scrolling in the impl thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/layer.h » ('j') | cc/layer_tree_host_impl.cc » ('J')
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_HANDLER_H_ 5 #ifndef CC_INPUT_HANDLER_H_
6 #define CC_INPUT_HANDLER_H_ 6 #define CC_INPUT_HANDLER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "cc/cc_export.h" 10 #include "cc/cc_export.h"
(...skipping 28 matching lines...) Expand all
39 39
40 // Scroll the selected layer starting at the given position. If the scroll 40 // Scroll the selected layer starting at the given position. If the scroll
41 // type given to scrollBegin was a gesture, then the scroll point and delta 41 // type given to scrollBegin was a gesture, then the scroll point and delta
42 // should be in viewport (logical pixel) coordinates. Otherwise they are in 42 // should be in viewport (logical pixel) coordinates. Otherwise they are in
43 // scrolling layer's (logical pixel) space. If there is no room to move the 43 // scrolling layer's (logical pixel) space. If there is no room to move the
44 // layer in the requested direction, its first ancestor layer that can be 44 // layer in the requested direction, its first ancestor layer that can be
45 // scrolled will be moved instead. If no layer can be moved in the requested 45 // scrolled will be moved instead. If no layer can be moved in the requested
46 // direction at all, then false is returned. If any layer is moved, then 46 // direction at all, then false is returned. If any layer is moved, then
47 // true is returned. 47 // true is returned.
48 // Should only be called if scrollBegin() returned ScrollStarted. 48 // Should only be called if scrollBegin() returned ScrollStarted.
49 virtual bool scrollBy(const gfx::Point&, const gfx::Vector2d&) = 0; 49 virtual bool scrollBy(const gfx::Point&,
50 const gfx::Vector2d&,
51 bool scrollByPage) = 0;
50 52
51 // Stop scrolling the selected layer. Should only be called if scrollBegin() 53 // Stop scrolling the selected layer. Should only be called if scrollBegin()
52 // returned ScrollStarted. 54 // returned ScrollStarted.
53 virtual void scrollEnd() = 0; 55 virtual void scrollEnd() = 0;
54 56
55 virtual void pinchGestureBegin() = 0; 57 virtual void pinchGestureBegin() = 0;
56 virtual void pinchGestureUpdate(float magnifyDelta, gfx::Point anchor) = 0; 58 virtual void pinchGestureUpdate(float magnifyDelta, gfx::Point anchor) = 0;
57 virtual void pinchGestureEnd() = 0; 59 virtual void pinchGestureEnd() = 0;
58 60
59 virtual void startPageScaleAnimation(gfx::Vector2d targetOffset, 61 virtual void startPageScaleAnimation(gfx::Vector2d targetOffset,
(...skipping 26 matching lines...) Expand all
86 protected: 88 protected:
87 InputHandler() { } 89 InputHandler() { }
88 90
89 private: 91 private:
90 DISALLOW_COPY_AND_ASSIGN(InputHandler); 92 DISALLOW_COPY_AND_ASSIGN(InputHandler);
91 }; 93 };
92 94
93 } 95 }
94 96
95 #endif // CC_INPUT_HANDLER_H_ 97 #endif // CC_INPUT_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layer.h » ('j') | cc/layer_tree_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698