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

Unified Diff: chrome/browser/ui/views/location_bar/origin_chip_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/origin_chip_view.cc
diff --git a/chrome/browser/ui/views/location_bar/origin_chip_view.cc b/chrome/browser/ui/views/location_bar/origin_chip_view.cc
index dd6c82f563fe7b1b9bd76851cb3b870dfce3c9a5..6516e399332d8b50e4022772b1576afaa4d2b3b2 100644
--- a/chrome/browser/ui/views/location_bar/origin_chip_view.cc
+++ b/chrome/browser/ui/views/location_bar/origin_chip_view.cc
@@ -370,8 +370,8 @@ void OriginChipView::ButtonPressed(views::Button* sender,
location_icon_view_->set_interactive(true);
const ui::LocatedEvent& located_event =
static_cast<const ui::LocatedEvent&>(event);
- if (GetEventHandlerForPoint(located_event.location()) ==
- location_icon_view_) {
+ if (GetEventHandlerForPoint(gfx::ToFlooredPoint(
+ located_event.location())) == location_icon_view_) {
location_icon_view_->page_info_helper()->ProcessEvent(located_event);
location_icon_view_->set_interactive(false);
return;

Powered by Google App Engine
This is Rietveld 408576698