diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-05 17:17:34 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-05 17:17:34 +0000 |
commit | cf817fb1eddd3ab76b074029739828c4072b567b (patch) | |
tree | a0b699950f8538305df7b420406b8d7a821768cb /cc/input_handler.h | |
parent | 3c6aa86510b3724b6c3c83c090f22775f8d4fa0e (diff) | |
download | chromium_src-cf817fb1eddd3ab76b074029739828c4072b567b.zip chromium_src-cf817fb1eddd3ab76b074029739828c4072b567b.tar.gz chromium_src-cf817fb1eddd3ab76b074029739828c4072b567b.tar.bz2 |
Revert "cc: Remove all remaining use of WebCore Rect/Point/Size types from the compositor."
This reverts commit a76cb24ab8de742f70b83f6c045c2c23545eaae7.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165949 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/input_handler.h')
-rw-r--r-- | cc/input_handler.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/cc/input_handler.h b/cc/input_handler.h index 6898c1f..5f6a706 100644 --- a/cc/input_handler.h +++ b/cc/input_handler.h @@ -11,11 +11,13 @@ namespace gfx { class Point; -class Vector2d; } namespace cc { +class IntPoint; +class IntSize; + // The InputHandler is a way for the embedders to interact with // the impl thread side of the compositor implementation. // @@ -34,7 +36,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(gfx::Point, 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 @@ -43,17 +45,17 @@ 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(gfx::Point, gfx::Vector2d) = 0; + virtual void scrollBy(const gfx::Point&, const IntSize&) = 0; // Stop scrolling the selected layer. Should only be called if scrollBegin() // returned ScrollStarted. virtual void scrollEnd() = 0; virtual void pinchGestureBegin() = 0; - virtual void pinchGestureUpdate(float magnifyDelta, gfx::Point anchor) = 0; + virtual void pinchGestureUpdate(float magnifyDelta, const IntPoint& anchor) = 0; virtual void pinchGestureEnd() = 0; - virtual void startPageScaleAnimation(gfx::Vector2d targetOffset, + virtual void startPageScaleAnimation(const IntSize& targetPosition, bool anchorPoint, float pageScale, base::TimeTicks startTime, |