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

Unified Diff: ui/app_list/apps_grid_view.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: rebasefinal 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/app_list/apps_grid_view.cc
diff --git a/ui/app_list/apps_grid_view.cc b/ui/app_list/apps_grid_view.cc
index 574938caebd2ab024297b6eefcaae4d73ee584c9..e81f35c880df68bb3ae5c3c5173afda8232eb064 100644
--- a/ui/app_list/apps_grid_view.cc
+++ b/ui/app_list/apps_grid_view.cc
@@ -169,7 +169,7 @@ void AppsGridView::InitiateDrag(views::View* view,
return;
drag_view_ = view;
- drag_offset_ = event.location();
+ drag_offset_ = event.location().OffsetFromOrigin();
}
void AppsGridView::UpdateDrag(views::View* view,

Powered by Google App Engine
This is Rietveld 408576698