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

Unified Diff: chrome/browser/ui/views/panels/panel_frame_view.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: chrome/browser/ui/views/panels/panel_frame_view.cc
diff --git a/chrome/browser/ui/views/panels/panel_frame_view.cc b/chrome/browser/ui/views/panels/panel_frame_view.cc
index a22164971ab1d3e065afddff1912ad4a284814a1..f880bb485e495d85aaaa33a5151481f857a98e2d 100644
--- a/chrome/browser/ui/views/panels/panel_frame_view.cc
+++ b/chrome/browser/ui/views/panels/panel_frame_view.cc
@@ -561,7 +561,7 @@ bool PanelFrameView::OnMousePressed(const ui::MouseEvent& event) {
if (event.IsOnlyLeftMouseButton()) {
// |event.location| is in the view's coordinate system. Convert it to the
// screen coordinate system.
- gfx::Point mouse_location = event.location();
+ gfx::Point mouse_location = gfx::ToFlooredPoint(event.location());
views::View::ConvertPointToScreen(this, &mouse_location);
// If the mouse location falls within the resizing area of the titlebar,
@@ -583,7 +583,7 @@ bool PanelFrameView::OnMouseDragged(const ui::MouseEvent& event) {
#else
// |event.location| is in the view's coordinate system. Convert it to the
// screen coordinate system.
- gfx::Point mouse_location = event.location();
+ gfx::Point mouse_location = gfx::ToFlooredPoint(event.location());
views::View::ConvertPointToScreen(this, &mouse_location);
#endif

Powered by Google App Engine
This is Rietveld 408576698