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

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

Issue 130443005: [#5] Pass gfx structs by const ref (gfx::Vector2dF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporated the review comments Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/android/in_process/synchronous_compositor_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 e3616ba613fedf44f45a4c6ffc39c7f9336c99ba..d3071441bcaa22cf34b52492484914e5ebb84382 100644
--- a/content/renderer/input/input_handler_proxy_unittest.cc
+++ b/content/renderer/input/input_handler_proxy_unittest.cc
@@ -47,7 +47,8 @@ class MockInputHandler : public cc::InputHandler {
ScrollStatus(gfx::Point viewport_point,
cc::InputHandler::ScrollInputType type));
MOCK_METHOD2(ScrollBy,
- bool(gfx::Point viewport_point, gfx::Vector2dF scroll_delta));
+ bool(gfx::Point viewport_point,
+ const gfx::Vector2dF& scroll_delta));
MOCK_METHOD2(ScrollVerticallyByPage,
bool(gfx::Point viewport_point,
cc::ScrollDirection direction));
@@ -66,7 +67,8 @@ class MockInputHandler : public cc::InputHandler {
float page_scale,
base::TimeDelta duration) OVERRIDE {}
- virtual void NotifyCurrentFlingVelocity(gfx::Vector2dF velocity) OVERRIDE {}
+ virtual void NotifyCurrentFlingVelocity(
+ const gfx::Vector2dF& velocity) OVERRIDE {}
virtual void MouseMoveAt(gfx::Point mouse_position) OVERRIDE {}
MOCK_METHOD1(HaveTouchEventHandlersAt,
« no previous file with comments | « content/browser/android/in_process/synchronous_compositor_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698