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

Unified Diff: ui/events/ozone/evdev/touch_noise/far_apart_taps_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: 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/touch_noise/far_apart_taps_touch_noise_filter.h
diff --git a/ui/events/ozone/evdev/touch_noise/far_apart_taps_touch_noise_filter.h b/ui/events/ozone/evdev/touch_noise/far_apart_taps_touch_noise_filter.h
index d21d99dd268b347a4e2ffb8046e6f34bc98e8237..06a84188947ec098df5394ed437c25ae68829278 100644
--- a/ui/events/ozone/evdev/touch_noise/far_apart_taps_touch_noise_filter.h
+++ b/ui/events/ozone/evdev/touch_noise/far_apart_taps_touch_noise_filter.h
@@ -18,19 +18,19 @@ class FarApartTapsTouchNoiseFilter : public TouchNoiseFilter {
// TouchNoiseFilter:
void Filter(const std::vector<InProgressTouchEvdev>& touches,
- base::TimeDelta time,
+ base::TimeTicks time,
std::bitset<kNumTouchEvdevSlots>* slots_with_noise) override;
private:
struct Tap {
Tap() : x(0), y(0) {}
- Tap(base::TimeDelta start, int x, int y)
+ Tap(base::TimeTicks start, int x, int y)
: start(start), x(x), y(y) {}
- bool is_valid() const { return !start.is_zero(); }
- void Invalidate() { start = base::TimeDelta(); }
+ bool is_valid() const { return start != base::TimeTicks(); }
miu 2016/05/16 20:05:35 !start.is_null()
majidvp 2016/05/21 01:38:00 Done.
+ void Invalidate() { start = base::TimeTicks(); }
- base::TimeDelta start;
+ base::TimeTicks start;
float x;
float y;
};

Powered by Google App Engine
This is Rietveld 408576698