| 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();
|
| }
|
| }
|
|
|