Chromium Code Reviews| 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; |
| }; |