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

Unified Diff: ash/system/tray/actionable_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: ash/system/tray/actionable_view.cc
diff --git a/ash/system/tray/actionable_view.cc b/ash/system/tray/actionable_view.cc
index dc26cde928da8d473876362597d568829251b19e..874d274cd78977070a1e4d816518e95797efcaa1 100644
--- a/ash/system/tray/actionable_view.cc
+++ b/ash/system/tray/actionable_view.cc
@@ -50,7 +50,8 @@ bool ActionableView::OnMousePressed(const ui::MouseEvent& event) {
}
void ActionableView::OnMouseReleased(const ui::MouseEvent& event) {
- if (has_capture_ && GetLocalBounds().Contains(event.location()))
+ if (has_capture_ &&
+ GetLocalBounds().Contains(gfx::ToFlooredPoint(event.location())))
PerformAction(event);
}

Powered by Google App Engine
This is Rietveld 408576698