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

Unified Diff: ash/wm/gestures/overview_gesture_handler.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: ash/wm/gestures/overview_gesture_handler.cc
diff --git a/ash/wm/gestures/overview_gesture_handler.cc b/ash/wm/gestures/overview_gesture_handler.cc
index 381941d1fe9a62cbe524f7ffeb0abb3dccdf11e1..7777232ebc7070e585d639af2c9b89e50af467f1 100644
--- a/ash/wm/gestures/overview_gesture_handler.cc
+++ b/ash/wm/gestures/overview_gesture_handler.cc
@@ -82,7 +82,7 @@ bool OverviewGestureHandler::ProcessGestureEvent(
// Detect at the beginning of any gesture whether it begins on the top bezel.
if (event.type() == ui::ET_GESTURE_BEGIN &&
event.details().touch_points() == 1) {
- gfx::Point point_in_screen(event.location());
+ gfx::Point point_in_screen(gfx::ToFlooredPoint(event.location()));
aura::Window* target = static_cast<aura::Window*>(event.target());
wm::ConvertPointToScreen(target, &point_in_screen);
in_top_bezel_gesture_ = !Shell::GetScreen()->GetDisplayNearestPoint(

Powered by Google App Engine
This is Rietveld 408576698