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

Unified Diff: content/browser/renderer_host/input/synthetic_touch_driver.cc

Issue 2627463002: Replace touch actions in pointer event tests with pointerActionSequence (Closed)
Patch Set: touch tests Created 3 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/gpu/actions_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/input/synthetic_touch_driver.cc
diff --git a/content/browser/renderer_host/input/synthetic_touch_driver.cc b/content/browser/renderer_host/input/synthetic_touch_driver.cc
index 3adb753c6162b1c65e3a2d338e5aaad29ff77849..2926c575eb6781775ca82b6f4263f7011f6291bc 100644
--- a/content/browser/renderer_host/input/synthetic_touch_driver.cc
+++ b/content/browser/renderer_host/input/synthetic_touch_driver.cc
@@ -22,7 +22,8 @@ SyntheticTouchDriver::~SyntheticTouchDriver() {}
void SyntheticTouchDriver::DispatchEvent(SyntheticGestureTarget* target,
const base::TimeTicks& timestamp) {
touch_event_.setTimeStampSeconds(ConvertTimestampToSeconds(timestamp));
- target->DispatchInputEventToPlatform(touch_event_);
+ if (touch_event_.type() != blink::WebInputEvent::Undefined)
+ target->DispatchInputEventToPlatform(touch_event_);
touch_event_.ResetPoints();
}
« no previous file with comments | « no previous file | content/renderer/gpu/actions_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698