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

Unified Diff: ui/events/ozone/evdev/touch_noise/touch_noise_finder.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/touch_noise_finder.h
diff --git a/ui/events/ozone/evdev/touch_noise/touch_noise_finder.h b/ui/events/ozone/evdev/touch_noise/touch_noise_finder.h
index 4b14e4ba3a010ca715367eaa2db3fe290dadfdab..f19b37718da47b9c1a35f8b6fb246bc6f1af89d4 100644
--- a/ui/events/ozone/evdev/touch_noise/touch_noise_finder.h
+++ b/ui/events/ozone/evdev/touch_noise/touch_noise_finder.h
@@ -28,14 +28,14 @@ class EVENTS_OZONE_EVDEV_EXPORT TouchNoiseFinder {
// in-progress touches at |time| (including noisy touches).
// |touches| should have at most one entry per ABS_MT_SLOT.
void HandleTouches(const std::vector<InProgressTouchEvdev>& touches,
- base::TimeDelta time);
+ base::TimeTicks time);
// Returns whether the in-progress touch at ABS_MT_SLOT |slot| is noise.
bool SlotHasNoise(size_t slot) const;
private:
// Records how frequently noisy touches occur to UMA.
- void RecordUMA(bool had_noise, base::TimeDelta time);
+ void RecordUMA(bool had_noise, base::TimeTicks time);
friend class TouchEventConverterEvdevTouchNoiseTest;
@@ -43,7 +43,7 @@ class EVENTS_OZONE_EVDEV_EXPORT TouchNoiseFinder {
std::bitset<kNumTouchEvdevSlots> slots_with_noise_;
// The time of the previous noise occurence in any of the slots.
- base::TimeDelta last_noise_time_;
+ base::TimeTicks last_noise_time_;
std::vector<TouchNoiseFilter*> filters_;
« no previous file with comments | « ui/events/ozone/evdev/touch_noise/touch_noise_filter.h ('k') | ui/events/ozone/evdev/touch_noise/touch_noise_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698