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

Unified Diff: ui/events/test/events_test_utils_x11.cc

Issue 1975533002: Change ui::Event::time_stamp from TimeDelta to TimeTicks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 | « ui/events/test/events_test_utils.h ('k') | ui/events/win/events_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/test/events_test_utils_x11.cc
diff --git a/ui/events/test/events_test_utils_x11.cc b/ui/events/test/events_test_utils_x11.cc
index f4320db0bbf938d6c210670ce5db2a5caa06a9a7..cb961398aea4c0e3bf468fd207a16492a1683acb 100644
--- a/ui/events/test/events_test_utils_x11.cc
+++ b/ui/events/test/events_test_utils_x11.cc
@@ -294,7 +294,7 @@ void ScopedXI2Event::InitTouchEvent(int deviceid,
std::vector<Valuator> valuators_with_time = valuators;
valuators_with_time.push_back(
Valuator(DeviceDataManagerX11::DT_TOUCH_RAW_TIMESTAMP,
- (ui::EventTimeForNow()).InMicroseconds()));
+ (ui::EventTimeForNow() - base::TimeTicks()).InMicroseconds()));
SetUpValuators(valuators_with_time);
}
« no previous file with comments | « ui/events/test/events_test_utils.h ('k') | ui/events/win/events_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698