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

Unified Diff: ui/aura/client/window_move_client.h

Issue 11269022: Add Vector2d classes that represent offsets, instead of using Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more vector use fixes Created 8 years, 2 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
Index: ui/aura/client/window_move_client.h
diff --git a/ui/aura/client/window_move_client.h b/ui/aura/client/window_move_client.h
index 2d2a8cb167c8642ea4be2c07e33c6603bdcc3221..0315841dc593669787bd2e9188435a78ab95cf24 100644
--- a/ui/aura/client/window_move_client.h
+++ b/ui/aura/client/window_move_client.h
@@ -6,6 +6,7 @@
#define UI_AURA_CLIENT_WINDOW_MOVE_CLIENT_H_
#include "ui/aura/aura_export.h"
+#include "ui/gfx/vector2d.h"
namespace gfx {
class Point;
@@ -29,7 +30,7 @@ class AURA_EXPORT WindowMoveClient {
// Returns MOVE_SUCCESSFUL if the move has completed successfully, or
// MOVE_CANCELED otherwise.
virtual WindowMoveResult RunMoveLoop(Window* window,
- const gfx::Point& drag_offset) = 0;
+ const gfx::Vector2d& drag_offset) = 0;
// Ends a previously started move loop.
virtual void EndMoveLoop() = 0;

Powered by Google App Engine
This is Rietveld 408576698