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

Unified Diff: cc/input/input_handler.h

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 | « cc/base/math_util.cc ('k') | cc/input/layer_scroll_offset_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/input/input_handler.h
diff --git a/cc/input/input_handler.h b/cc/input/input_handler.h
index fde89d265d6f6d7043065d6a6ef9833202b01f55..987f7a672e461cf4a45c1dda0c6e7217bc6ac3a5 100644
--- a/cc/input/input_handler.h
+++ b/cc/input/input_handler.h
@@ -85,7 +85,7 @@ class CC_EXPORT InputHandler {
// to the client.
// Should only be called if ScrollBegin() returned ScrollStarted.
virtual bool ScrollBy(gfx::Point viewport_point,
- gfx::Vector2dF scroll_delta) = 0;
+ const gfx::Vector2dF& scroll_delta) = 0;
virtual bool ScrollVerticallyByPage(
gfx::Point viewport_point,
@@ -95,7 +95,7 @@ class CC_EXPORT InputHandler {
// ScrollIgnored if not.
virtual ScrollStatus FlingScrollBegin() = 0;
- virtual void NotifyCurrentFlingVelocity(gfx::Vector2dF velocity) = 0;
+ virtual void NotifyCurrentFlingVelocity(const gfx::Vector2dF& velocity) = 0;
virtual void MouseMoveAt(gfx::Point mouse_position) = 0;
« no previous file with comments | « cc/base/math_util.cc ('k') | cc/input/layer_scroll_offset_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698