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

Unified Diff: content/renderer/input/input_handler_proxy.cc

Issue 148453012: Chrome requires WebTouchPoint to store WebFloatPoint, instead of WebPoint. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up. Created 6 years, 9 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: content/renderer/input/input_handler_proxy.cc
diff --git a/content/renderer/input/input_handler_proxy.cc b/content/renderer/input/input_handler_proxy.cc
index 95809a857511b889237d2e7337be62ace6c0be43..13c985091c5e02560ff7000308d33d16b619724a 100644
--- a/content/renderer/input/input_handler_proxy.cc
+++ b/content/renderer/input/input_handler_proxy.cc
@@ -12,6 +12,7 @@
#include "third_party/WebKit/public/web/WebInputEvent.h"
#include "ui/events/latency_info.h"
#include "ui/gfx/frame_time.h"
+#include "ui/gfx/geometry/point_conversions.h"
using blink::WebFloatPoint;
using blink::WebFloatSize;
@@ -228,8 +229,7 @@ InputHandlerProxy::EventDisposition InputHandlerProxy::HandleInputEvent(
if (touch_event.touches[i].state != WebTouchPoint::StatePressed)
continue;
if (input_handler_->HaveTouchEventHandlersAt(
- blink::WebPoint(touch_event.touches[i].position.x,
- touch_event.touches[i].position.y))) {
+ gfx::ToFlooredPoint(touch_event.touches[i].position))) {
jdduke (slow) 2014/03/10 22:03:23 What about changing InputHandler::HaveTouchEventHa
tdresser 2014/03/12 13:54:40 I did that in patch set #4. It felt like it involv
return DID_NOT_HANDLE;
}
}

Powered by Google App Engine
This is Rietveld 408576698