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

Unified Diff: components/exo/pointer_delegate.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 | « components/exo/keyboard_unittest.cc ('k') | components/exo/pointer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/pointer_delegate.h
diff --git a/components/exo/pointer_delegate.h b/components/exo/pointer_delegate.h
index e9c7193ea3a08ae5742848d944babdebb0283417..182513d2b8571524fa7950be158a193d2ce3d9f2 100644
--- a/components/exo/pointer_delegate.h
+++ b/components/exo/pointer_delegate.h
@@ -40,29 +40,29 @@ class PointerDelegate {
virtual void OnPointerLeave(Surface* surface) = 0;
// Called when pointer moved within the current target surface.
- virtual void OnPointerMotion(base::TimeDelta time_stamp,
+ virtual void OnPointerMotion(base::TimeTicks time_stamp,
const gfx::PointF& location) = 0;
// Called when pointer button state changed. |changed_button_flags| contains
// all buttons that changed. |pressed| is true if buttons entered pressed
// state.
- virtual void OnPointerButton(base::TimeDelta time_stamp,
+ virtual void OnPointerButton(base::TimeTicks time_stamp,
int changed_button_flags,
bool pressed) = 0;
// Called when pointer is scrolling. |offset| contains the direction and
// distance of the change. |discrete| is true if the scrolling is caused
// by a discrete device such as a scroll wheel.
- virtual void OnPointerScroll(base::TimeDelta time_stamp,
+ virtual void OnPointerScroll(base::TimeTicks time_stamp,
const gfx::Vector2dF& offset,
bool discrete) = 0;
// Called when a current kinetic scroll should be canceled.
- virtual void OnPointerScrollCancel(base::TimeDelta time_stamp) = 0;
+ virtual void OnPointerScrollCancel(base::TimeTicks time_stamp) = 0;
// Called when pointer scroll has stopped and a fling is happening (e.g.
// lifting the fingers from the touchpad after scrolling quickly)
- virtual void OnPointerScrollStop(base::TimeDelta time_stamp) = 0;
+ virtual void OnPointerScrollStop(base::TimeTicks time_stamp) = 0;
// Called after all pointer information of this frame has been set and the
// client should evaluate the updated state. No events are being sent before
« no previous file with comments | « components/exo/keyboard_unittest.cc ('k') | components/exo/pointer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698