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

Unified Diff: ui/events/ozone/evdev/touch_noise/single_position_touch_noise_filter.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
Index: ui/events/ozone/evdev/touch_noise/single_position_touch_noise_filter.h
diff --git a/ui/events/ozone/evdev/touch_noise/single_position_touch_noise_filter.h b/ui/events/ozone/evdev/touch_noise/single_position_touch_noise_filter.h
index f6ee06d5dfb5a6c9ae4d763cfdac096a1121a062..2942d3cb200381bbf95dc712ab4e9720e5575a99 100644
--- a/ui/events/ozone/evdev/touch_noise/single_position_touch_noise_filter.h
+++ b/ui/events/ozone/evdev/touch_noise/single_position_touch_noise_filter.h
@@ -20,7 +20,7 @@ class SinglePositionTouchNoiseFilter : public TouchNoiseFilter {
// TouchNoiseFilter:
void Filter(const std::vector<InProgressTouchEvdev>& touches,
- base::TimeDelta time,
+ base::TimeTicks time,
std::bitset<kNumTouchEvdevSlots>* slots_with_noise) override;
private:
@@ -32,8 +32,8 @@ class SinglePositionTouchNoiseFilter : public TouchNoiseFilter {
size_t slot;
int x;
int y;
- base::TimeDelta begin;
- base::TimeDelta end;
+ base::TimeTicks begin;
+ base::TimeTicks end;
// The age of the oldest touch at the same location as this TrackedTouch.
// Logged to UMA when we stop tracking the TrackedTouch.
@@ -42,7 +42,7 @@ class SinglePositionTouchNoiseFilter : public TouchNoiseFilter {
void StopTrackingTouch(size_t index);
void TrackTouch(const InProgressTouchEvdev& touch,
- base::TimeDelta time);
+ base::TimeTicks time);
// A mapping of slot to tracked touch index in |tracked_touches_|.
size_t tracked_slots_[kNumTouchEvdevSlots];

Powered by Google App Engine
This is Rietveld 408576698