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

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: 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/mojo/struct_traits_unittest.cc ('k') | ui/events/ozone/evdev/device_event_dispatcher_evdev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 909465f7a6fdc2dfa8e8949aed88aac51da64c11..c70234be2d3014886870671db9b0123bfcc8ccaa 100644
--- a/ui/events/ozone/evdev/device_event_dispatcher_evdev.h
+++ b/ui/events/ozone/evdev/device_event_dispatcher_evdev.h
@@ -24,7 +24,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();
@@ -32,21 +32,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 {
@@ -56,7 +56,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();
@@ -66,21 +66,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 {
@@ -88,7 +88,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();
@@ -96,7 +96,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 {
@@ -106,7 +106,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();
@@ -116,7 +116,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 {
@@ -125,7 +125,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();
@@ -134,7 +134,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.
« no previous file with comments | « ui/events/mojo/struct_traits_unittest.cc ('k') | ui/events/ozone/evdev/device_event_dispatcher_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698