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

Unified Diff: chrome/browser/ui/views/location_bar/bubble_icon_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/location_bar/bubble_icon_view.cc
diff --git a/chrome/browser/ui/views/location_bar/bubble_icon_view.cc b/chrome/browser/ui/views/location_bar/bubble_icon_view.cc
index 68949b4b160a48130c4fb31599daf7028c4684b2..d541f2b39b05061da610216415f4740414071796 100644
--- a/chrome/browser/ui/views/location_bar/bubble_icon_view.cc
+++ b/chrome/browser/ui/views/location_bar/bubble_icon_view.cc
@@ -49,7 +49,8 @@ void BubbleIconView::OnMouseReleased(const ui::MouseEvent& event) {
return;
}
- if (event.IsOnlyLeftMouseButton() && HitTestPoint(event.location())) {
+ if (event.IsOnlyLeftMouseButton() &&
+ HitTestPoint(gfx::ToFlooredPoint(event.location()))) {
OnExecuting(EXECUTE_SOURCE_MOUSE);
command_updater_->ExecuteCommand(command_id_);
}

Powered by Google App Engine
This is Rietveld 408576698