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

Unified Diff: ui/events/ozone/evdev/device_event_dispatcher_evdev.h

Issue 1975533002: Change ui::Event::time_stamp from TimeDelta to TimeTicks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix gesture recognizer tests 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: ui/events/ozone/evdev/device_event_dispatcher_evdev.h
diff --git a/ui/events/ozone/evdev/device_event_dispatcher_evdev.h b/ui/events/ozone/evdev/device_event_dispatcher_evdev.h
index 164d9f703513f05144ab40669387bdc27a78b9af..3d5e96c3a5ca6e06b09c94503f894dd8d64c5b0c 100644
--- a/ui/events/ozone/evdev/device_event_dispatcher_evdev.h
+++ b/ui/events/ozone/evdev/device_event_dispatcher_evdev.h
@@ -25,7 +25,7 @@ struct EVENTS_OZONE_EVDEV_EXPORT KeyEventParams {
unsigned int code,
bool down,
bool suppress_auto_repeat,
- base::TimeDelta timestamp);
+ base::TimeTicks timestamp);
KeyEventParams(const KeyEventParams& other);
~KeyEventParams();
@@ -33,21 +33,21 @@ struct EVENTS_OZONE_EVDEV_EXPORT KeyEventParams {
unsigned int code;
bool down;
bool suppress_auto_repeat;
- base::TimeDelta timestamp;
+ base::TimeTicks timestamp;
};
struct EVENTS_OZONE_EVDEV_EXPORT MouseMoveEventParams {
MouseMoveEventParams(int device_id,
const gfx::PointF& location,
const PointerDetails& details,
- base::TimeDelta timestamp);
+ base::TimeTicks timestamp);
MouseMoveEventParams(const MouseMoveEventParams& other);
~MouseMoveEventParams();
int device_id;
gfx::PointF location;
PointerDetails pointer_details;
- base::TimeDelta timestamp;
+ base::TimeTicks timestamp;
};
struct EVENTS_OZONE_EVDEV_EXPORT MouseButtonEventParams {
@@ -57,7 +57,7 @@ struct EVENTS_OZONE_EVDEV_EXPORT MouseButtonEventParams {
bool down,
bool allow_remap,
const PointerDetails& details,
- base::TimeDelta timestamp);
+ base::TimeTicks timestamp);
MouseButtonEventParams(const MouseButtonEventParams& other);
~MouseButtonEventParams();
@@ -67,21 +67,21 @@ struct EVENTS_OZONE_EVDEV_EXPORT MouseButtonEventParams {
bool down;
bool allow_remap;
PointerDetails pointer_details;
- base::TimeDelta timestamp;
+ base::TimeTicks timestamp;
};
struct EVENTS_OZONE_EVDEV_EXPORT MouseWheelEventParams {
MouseWheelEventParams(int device_id,
const gfx::PointF& location,
const gfx::Vector2d& delta,
- base::TimeDelta timestamp);
+ base::TimeTicks timestamp);
MouseWheelEventParams(const MouseWheelEventParams& other);
~MouseWheelEventParams();
int device_id;
gfx::PointF location;
gfx::Vector2d delta;
- base::TimeDelta timestamp;
+ base::TimeTicks timestamp;
};
struct EVENTS_OZONE_EVDEV_EXPORT PinchEventParams {
@@ -89,7 +89,7 @@ struct EVENTS_OZONE_EVDEV_EXPORT PinchEventParams {
EventType type,
const gfx::PointF location,
float scale,
- const base::TimeDelta timestamp);
+ const base::TimeTicks timestamp);
PinchEventParams(const PinchEventParams& other);
~PinchEventParams();
@@ -97,7 +97,7 @@ struct EVENTS_OZONE_EVDEV_EXPORT PinchEventParams {
EventType type;
const gfx::PointF location;
float scale;
- const base::TimeDelta timestamp;
+ const base::TimeTicks timestamp;
};
struct EVENTS_OZONE_EVDEV_EXPORT ScrollEventParams {
@@ -107,7 +107,7 @@ struct EVENTS_OZONE_EVDEV_EXPORT ScrollEventParams {
const gfx::Vector2dF& delta,
const gfx::Vector2dF& ordinal_delta,
int finger_count,
- const base::TimeDelta timestamp);
+ const base::TimeTicks timestamp);
ScrollEventParams(const ScrollEventParams& other);
~ScrollEventParams();
@@ -117,7 +117,7 @@ struct EVENTS_OZONE_EVDEV_EXPORT ScrollEventParams {
const gfx::Vector2dF delta;
const gfx::Vector2dF ordinal_delta;
int finger_count;
- const base::TimeDelta timestamp;
+ const base::TimeTicks timestamp;
};
struct EVENTS_OZONE_EVDEV_EXPORT TouchEventParams {
@@ -126,7 +126,7 @@ struct EVENTS_OZONE_EVDEV_EXPORT TouchEventParams {
EventType type,
const gfx::PointF& location,
const PointerDetails& pointer_details,
- const base::TimeDelta& timestamp);
+ const base::TimeTicks& timestamp);
TouchEventParams(const TouchEventParams& other);
~TouchEventParams();
@@ -135,7 +135,7 @@ struct EVENTS_OZONE_EVDEV_EXPORT TouchEventParams {
EventType type;
gfx::PointF location;
PointerDetails pointer_details;
- base::TimeDelta timestamp;
+ base::TimeTicks timestamp;
};
// Interface used by device objects for event dispatch.

Powered by Google App Engine
This is Rietveld 408576698