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

Unified Diff: chrome/browser/ui/panels/panel_drag_controller.cc

Issue 11269022: Add Vector2d classes that represent offsets, instead of using Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: RenderText fixup 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: chrome/browser/ui/panels/panel_drag_controller.cc
diff --git a/chrome/browser/ui/panels/panel_drag_controller.cc b/chrome/browser/ui/panels/panel_drag_controller.cc
index 0919bf3c01842eb3c0609d866909e4f19f5a20d6..37c6848e0ac9f52b42bc2b42dd94807c88fad15c 100644
--- a/chrome/browser/ui/panels/panel_drag_controller.cc
+++ b/chrome/browser/ui/panels/panel_drag_controller.cc
@@ -36,7 +36,7 @@ void PanelDragController::StartDragging(Panel* panel,
last_mouse_location_ = mouse_location;
offset_from_mouse_location_on_drag_start_ =
- mouse_location.Subtract(panel->GetBounds().origin());
+ mouse_location - panel->GetBounds().origin();
dragging_panel_ = panel;
dragging_panel_->SetPreviewMode(true);

Powered by Google App Engine
This is Rietveld 408576698