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

Unified Diff: ash/shelf/shelf_bezel_event_filter.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/shelf/shelf_bezel_event_filter.cc
diff --git a/ash/shelf/shelf_bezel_event_filter.cc b/ash/shelf/shelf_bezel_event_filter.cc
index 513a94908ce3853d9dfad047bd8e4f5f2580924c..dde66b93ee93aea3b31d7a2b343ef9c46d5b13f4 100644
--- a/ash/shelf/shelf_bezel_event_filter.cc
+++ b/ash/shelf/shelf_bezel_event_filter.cc
@@ -24,7 +24,7 @@ ShelfBezelEventFilter::~ShelfBezelEventFilter() {
void ShelfBezelEventFilter::OnGestureEvent(
ui::GestureEvent* event) {
- 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);
gfx::Rect screen =

Powered by Google App Engine
This is Rietveld 408576698