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

Unified Diff: ash/wm/workspace/multi_window_resize_controller.cc

Issue 139983009: ui::LocatedEvent location() returns gfx::PointF (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Undo accidental change. Created 6 years, 8 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: ash/wm/workspace/multi_window_resize_controller.cc
diff --git a/ash/wm/workspace/multi_window_resize_controller.cc b/ash/wm/workspace/multi_window_resize_controller.cc
index 347b1175f48bc529f1cfeeadca952be155af033c..59a08311e5033cde9eb8f2d0df20d041e7595100 100644
--- a/ash/wm/workspace/multi_window_resize_controller.cc
+++ b/ash/wm/workspace/multi_window_resize_controller.cc
@@ -78,13 +78,13 @@ class MultiWindowResizeController::ResizeView : public views::View {
canvas->DrawImageInt(*image_, 0, 0);
}
virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE {
- gfx::Point location(event.location());
+ gfx::Point location(gfx::ToFlooredPoint(event.location()));
views::View::ConvertPointToScreen(this, &location);
controller_->StartResize(location);
return true;
}
virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE {
- gfx::Point location(event.location());
+ gfx::Point location(gfx::ToFlooredPoint(event.location()));
views::View::ConvertPointToScreen(this, &location);
controller_->Resize(location, event.flags());
return true;

Powered by Google App Engine
This is Rietveld 408576698