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

Unified Diff: content/public/test/browser_test_utils.cc

Issue 375863005: Touch emulator: allow multiple touch streams. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed comments, switched to sequence_count Created 6 years, 5 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/public/test/browser_test_utils.cc
diff --git a/content/public/test/browser_test_utils.cc b/content/public/test/browser_test_utils.cc
index 0af7c636bc733af8f87b95e5a560e1bba92b43a1..182f135650149c0afcac60a96a7a87d7da6c913f 100644
--- a/content/public/test/browser_test_utils.cc
+++ b/content/public/test/browser_test_utils.cc
@@ -305,10 +305,10 @@ void SimulateTapAt(WebContents* web_contents, const gfx::Point& point) {
touch.PressPoint(point.x(), point.y());
RenderWidgetHostImpl* widget_host =
RenderWidgetHostImpl::From(web_contents->GetRenderViewHost());
- widget_host->ForwardTouchEvent(touch);
+ widget_host->ForwardTouchEventWithLatencyInfo(touch, ui::LatencyInfo());
touch.timeStampSeconds += kTapDurationSeconds;
touch.ReleasePoint(0);
- widget_host->ForwardTouchEvent(touch);
+ widget_host->ForwardTouchEventWithLatencyInfo(touch, ui::LatencyInfo());
}
void SimulateKeyPress(WebContents* web_contents,

Powered by Google App Engine
This is Rietveld 408576698