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

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

Issue 315713002: Enable unified GR by default in Aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address phajdan.jr's nit. Created 6 years, 6 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 | ui/events/gestures/gesture_recognizer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 fa2c79996dbd61094cd2eb298758820931e46628..5beaa363675cf20374b662621f684746ce971859 100644
--- a/content/public/test/browser_test_utils.cc
+++ b/content/public/test/browser_test_utils.cc
@@ -266,12 +266,13 @@ void SimulateTapAt(WebContents* web_contents, const gfx::Point& point) {
ui::GestureConfiguration::
max_touch_down_duration_in_seconds_for_click());
SyntheticWebTouchEvent touch;
- touch.timeStampSeconds = 0;
+ // Set the timestamp to the base::TimeDelta representing the current time.
+ touch.SetTimestamp(base::TimeTicks::Now() - base::TimeTicks());
touch.PressPoint(point.x(), point.y());
RenderWidgetHostImpl* widget_host =
RenderWidgetHostImpl::From(web_contents->GetRenderViewHost());
widget_host->ForwardTouchEvent(touch);
- touch.timeStampSeconds = kTapDurationSeconds;
+ touch.timeStampSeconds += kTapDurationSeconds;
touch.ReleasePoint(0);
widget_host->ForwardTouchEvent(touch);
}
« no previous file with comments | « no previous file | ui/events/gestures/gesture_recognizer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698