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

Unified Diff: ui/views/color_chooser/color_chooser_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: ui/views/color_chooser/color_chooser_view.cc
diff --git a/ui/views/color_chooser/color_chooser_view.cc b/ui/views/color_chooser/color_chooser_view.cc
index 31082285bdbe1f1b2143d56fe2c070cbfca612ae..372002e85704091f0b7ea361caaee907217df2b2 100644
--- a/ui/views/color_chooser/color_chooser_view.cc
+++ b/ui/views/color_chooser/color_chooser_view.cc
@@ -67,12 +67,12 @@ class LocatedEventHandlerView : public views::View {
// views::View overrides:
virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE {
- ProcessEventAtLocation(event.location());
+ ProcessEventAtLocation(gfx::ToFlooredPoint(event.location()));
return true;
}
virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE {
- ProcessEventAtLocation(event.location());
+ ProcessEventAtLocation(gfx::ToFlooredPoint(event.location()));
return true;
}
@@ -80,7 +80,7 @@ class LocatedEventHandlerView : public views::View {
if (event->type() == ui::ET_GESTURE_TAP ||
event->type() == ui::ET_GESTURE_TAP_DOWN ||
event->IsScrollGestureEvent()) {
- ProcessEventAtLocation(event->location());
+ ProcessEventAtLocation(gfx::ToFlooredPoint(event->location()));
event->SetHandled();
}
}

Powered by Google App Engine
This is Rietveld 408576698