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

Unified Diff: cc/input_handler.h

Issue 11367080: cc: Remove all remaining use of WebCore Rect/Point/Size types from the compositor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move ui/gfx changes to cc/geometry.h Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/geometry.h ('k') | cc/layer.h » ('j') | cc/proxy.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/input_handler.h
diff --git a/cc/input_handler.h b/cc/input_handler.h
index f5b2e2336637fbecad780dcd31f79ecd9d100340..cac6ba360183f95f1e8ae444fd3f7dda87d9c038 100644
--- a/cc/input_handler.h
+++ b/cc/input_handler.h
@@ -11,13 +11,11 @@
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.
//
@@ -36,7 +34,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 gfx::Point&, ScrollInputType) = 0;
+ virtual ScrollStatus scrollBegin(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
@@ -45,17 +43,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(const gfx::Point&, const IntSize&) = 0;
+ virtual void scrollBy(gfx::Point, gfx::Vector2d) = 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, const IntPoint& anchor) = 0;
+ virtual void pinchGestureUpdate(float magnifyDelta, gfx::Point anchor) = 0;
virtual void pinchGestureEnd() = 0;
- virtual void startPageScaleAnimation(const IntSize& targetPosition,
+ virtual void startPageScaleAnimation(gfx::Vector2d targetOffset,
bool anchorPoint,
float pageScale,
base::TimeTicks startTime,
« no previous file with comments | « cc/geometry.h ('k') | cc/layer.h » ('j') | cc/proxy.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698