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

Unified Diff: mojo/converters/input_events/input_events_type_converters.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, 7 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: mojo/converters/input_events/input_events_type_converters.cc
diff --git a/mojo/converters/input_events/input_events_type_converters.cc b/mojo/converters/input_events/input_events_type_converters.cc
index 3bf8a2799b73225eee6d7543fe691cb58aecc5a4..7c07cb4652ecc5115f3e5fcc07102f65fbe87fa0 100644
--- a/mojo/converters/input_events/input_events_type_converters.cc
+++ b/mojo/converters/input_events/input_events_type_converters.cc
@@ -383,7 +383,7 @@ TypeConverter<std::unique_ptr<ui::Event>, mus::mojom::EventPtr>::Convert(
std::unique_ptr<ui::TouchEvent> touch_event(new ui::TouchEvent(
MojoTouchEventTypeToUIEvent(input), gfx::Point(),
ui::EventFlags(input->flags), input->pointer_data->pointer_id,
- base::TimeDelta::FromInternalValue(input->time_stamp),
+ base::TimeTicks::FromInternalValue(input->time_stamp),
input->pointer_data->brush_data->width,
input->pointer_data->brush_data->height, 0,
input->pointer_data->brush_data->pressure));

Powered by Google App Engine
This is Rietveld 408576698