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

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

Issue 140973005: Chrome allows WebTouchPoint to store WebFloatPoint, instead of WebPoint. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use static_cast. Created 6 years, 11 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
« no previous file with comments | « no previous file | content/renderer/render_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d721dcfd6c2ec6f693f26e235222b0816548c0b5..68f3f5c8ccd3db92e7a0560a244ca3a9e212d40e 100644
--- a/content/renderer/input/input_handler_proxy.cc
+++ b/content/renderer/input/input_handler_proxy.cc
@@ -222,9 +222,11 @@ InputHandlerProxy::EventDisposition InputHandlerProxy::HandleInputEvent(
for (size_t i = 0; i < touch_event.touchesLength; ++i) {
if (touch_event.touches[i].state != WebTouchPoint::StatePressed)
continue;
- if (input_handler_->HaveTouchEventHandlersAt(touch_event.touches[i]
- .position))
+ if (input_handler_->HaveTouchEventHandlersAt(
+ blink::WebPoint(touch_event.touches[i].position.x,
+ touch_event.touches[i].position.y))) {
return DID_NOT_HANDLE;
+ }
}
return DROP_EVENT;
} else if (WebInputEvent::isKeyboardEventType(event.type)) {
« no previous file with comments | « no previous file | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698