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

Unified Diff: content/renderer/input/input_handler_proxy_unittest.cc

Issue 185653013: [#8] Pass gfx::Point by const ref. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed build errors on other platforms Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/input/input_handler_proxy_unittest.cc
diff --git a/content/renderer/input/input_handler_proxy_unittest.cc b/content/renderer/input/input_handler_proxy_unittest.cc
index 4a63128cca3864ae9f697fd19671749f802d8b8e..86eaee415f153a8603aa6f5e688fb535fd0baeb8 100644
--- a/content/renderer/input/input_handler_proxy_unittest.cc
+++ b/content/renderer/input/input_handler_proxy_unittest.cc
@@ -38,19 +38,19 @@ class MockInputHandler : public cc::InputHandler {
MOCK_METHOD0(PinchGestureBegin, void());
MOCK_METHOD2(PinchGestureUpdate,
- void(float magnify_delta, gfx::Point anchor));
+ void(float magnify_delta, const gfx::Point& anchor));
MOCK_METHOD0(PinchGestureEnd, void());
MOCK_METHOD0(ScheduleAnimation, void());
MOCK_METHOD2(ScrollBegin,
- ScrollStatus(gfx::Point viewport_point,
+ ScrollStatus(const gfx::Point& viewport_point,
cc::InputHandler::ScrollInputType type));
MOCK_METHOD2(ScrollBy,
- bool(gfx::Point viewport_point,
+ bool(const gfx::Point& viewport_point,
const gfx::Vector2dF& scroll_delta));
MOCK_METHOD2(ScrollVerticallyByPage,
- bool(gfx::Point viewport_point,
+ bool(const gfx::Point& viewport_point,
cc::ScrollDirection direction));
MOCK_METHOD0(ScrollEnd, void());
MOCK_METHOD0(FlingScrollBegin, cc::InputHandler::ScrollStatus());
@@ -69,10 +69,9 @@ class MockInputHandler : public cc::InputHandler {
virtual void NotifyCurrentFlingVelocity(
const gfx::Vector2dF& velocity) OVERRIDE {}
- virtual void MouseMoveAt(gfx::Point mouse_position) OVERRIDE {}
+ virtual void MouseMoveAt(const gfx::Point& mouse_position) OVERRIDE {}
- MOCK_METHOD1(HaveTouchEventHandlersAt,
- bool(gfx::Point point));
+ MOCK_METHOD1(HaveTouchEventHandlersAt, bool(const gfx::Point& point));
virtual void SetRootLayerScrollOffsetDelegate(
cc::LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate)
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698