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

Unified Diff: chrome/browser/ui/views/toolbar/toolbar_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/toolbar/toolbar_origin_chip_view.cc
diff --git a/chrome/browser/ui/views/toolbar/toolbar_origin_chip_view.cc b/chrome/browser/ui/views/toolbar/toolbar_origin_chip_view.cc
index 4c625381205545b29d37154c63e5554a861b2410..d1fa8ade0d4c8d479b0a14ca3c4df3357b8df1d0 100644
--- a/chrome/browser/ui/views/toolbar/toolbar_origin_chip_view.cc
+++ b/chrome/browser/ui/views/toolbar/toolbar_origin_chip_view.cc
@@ -330,8 +330,8 @@ void ToolbarOriginChipView::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