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

Unified Diff: content/renderer/browser_plugin/browser_plugin.cc

Issue 557863002: Remove references to WebTouchEvent.targetTouches (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor tweaks Created 6 years, 3 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 | « content/content_tests.gypi ('k') | content/renderer/pepper/event_conversion.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/browser_plugin/browser_plugin.cc
diff --git a/content/renderer/browser_plugin/browser_plugin.cc b/content/renderer/browser_plugin/browser_plugin.cc
index d7ba64b88e5514c9cb2d25e06f651a7e6968d74a..cfabfdbedb29f15f7e19cbcf28d38886fbc2c89b 100644
--- a/content/renderer/browser_plugin/browser_plugin.cc
+++ b/content/renderer/browser_plugin/browser_plugin.cc
@@ -579,7 +579,10 @@ bool BrowserPlugin::handleInputEvent(const blink::WebInputEvent& event,
const blink::WebInputEvent* modified_event = &event;
scoped_ptr<blink::WebTouchEvent> touch_event;
- if (blink::WebInputEvent::isTouchEventType(event.type)) {
+ // TODO(jdduke): Remove this branch when Blink starts forwarding
+ // WebTouchEvents with a fully populated |touches| field.
+ if (blink::WebInputEvent::isTouchEventType(event.type) &&
+ static_cast<const blink::WebTouchEvent*>(&event)->changedTouchesLength) {
const blink::WebTouchEvent* orig_touch_event =
static_cast<const blink::WebTouchEvent*>(&event);
« no previous file with comments | « content/content_tests.gypi ('k') | content/renderer/pepper/event_conversion.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698