summaryrefslogtreecommitdiffstats
path: root/cc/input_handler.h
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-02 00:19:06 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-02 00:19:06 +0000
commitd455d55745439727d00254ef85a5386290a51cd3 (patch)
treecc1f7dd184a8fa7565c9fc45961e553deb4b8834 /cc/input_handler.h
parentc2b20d05b32184ffa24102ea70a14a456f16f581 (diff)
downloadchromium_src-d455d55745439727d00254ef85a5386290a51cd3.zip
chromium_src-d455d55745439727d00254ef85a5386290a51cd3.tar.gz
chromium_src-d455d55745439727d00254ef85a5386290a51cd3.tar.bz2
Remove most remaining webcore points and sizes.
The remaining sizes should all be becoming vectors. Some or all of the remaining points should as well. The only Int/Float Point/Size types left are in the scrolling and page scaling code, or in the LayerTilingData. R=enne BUG=147395 Review URL: https://codereview.chromium.org/11358050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165569 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/input_handler.h')
-rw-r--r--cc/input_handler.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/cc/input_handler.h b/cc/input_handler.h
index def6c39..0e27bad 100644
--- a/cc/input_handler.h
+++ b/cc/input_handler.h
@@ -8,6 +8,10 @@
#include "base/basictypes.h"
#include "base/time.h"
+namespace gfx {
+class Point;
+}
+
namespace cc {
class IntPoint;
@@ -31,7 +35,7 @@ public:
// can be scrolled, ScrollOnMainThread if the scroll event should instead be
// delegated to the main thread, or ScrollIgnored if there is nothing to be
// scrolled at the given coordinates.
- virtual ScrollStatus scrollBegin(const IntPoint&, ScrollInputType) = 0;
+ virtual ScrollStatus scrollBegin(const gfx::Point&, ScrollInputType) = 0;
// Scroll the selected layer starting at the given position. If the scroll
// type given to scrollBegin was a gesture, then the scroll point and delta
@@ -40,7 +44,7 @@ public:
// layer in the requested direction, its first ancestor layer that can be
// scrolled will be moved instead. Should only be called if scrollBegin()
// returned ScrollStarted.
- virtual void scrollBy(const IntPoint&, const IntSize&) = 0;
+ virtual void scrollBy(const gfx::Point&, const IntSize&) = 0;
// Stop scrolling the selected layer. Should only be called if scrollBegin()
// returned ScrollStarted.