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

Side by Side Diff: ui/events/ozone/evdev/touch_event_converter_evdev.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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ 5 #ifndef UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_
6 #define UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ 6 #define UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 void ProcessKey(const input_event& input); 66 void ProcessKey(const input_event& input);
67 void ProcessAbs(const input_event& input); 67 void ProcessAbs(const input_event& input);
68 void ProcessSyn(const input_event& input); 68 void ProcessSyn(const input_event& input);
69 69
70 // Returns an EventType to dispatch for |touch|. Returns ET_UNKNOWN if an 70 // Returns an EventType to dispatch for |touch|. Returns ET_UNKNOWN if an
71 // event should not be dispatched. 71 // event should not be dispatched.
72 EventType GetEventTypeForTouch(const InProgressTouchEvdev& touch); 72 EventType GetEventTypeForTouch(const InProgressTouchEvdev& touch);
73 73
74 void ReportEvent(const InProgressTouchEvdev& event, 74 void ReportEvent(const InProgressTouchEvdev& event,
75 EventType event_type, 75 EventType event_type,
76 const base::TimeDelta& delta); 76 const base::TimeTicks& delta);
miu 2016/05/16 20:05:35 Pass-by-value here too.
majidvp 2016/05/21 01:38:00 Done.
77 void ReportEvents(base::TimeDelta delta); 77 void ReportEvents(base::TimeTicks delta);
78 78
79 void UpdateTrackingId(int slot, int tracking_id); 79 void UpdateTrackingId(int slot, int tracking_id);
80 void ReleaseTouches(); 80 void ReleaseTouches();
81 81
82 // Normalize pressure value to [0, 1]. 82 // Normalize pressure value to [0, 1].
83 float ScalePressure(int32_t value); 83 float ScalePressure(int32_t value);
84 84
85 int NextTrackingId(); 85 int NextTrackingId();
86 86
87 // Dispatcher for events. 87 // Dispatcher for events.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 // Records the recent touch events. It is used to fill the feedback reports 129 // Records the recent touch events. It is used to fill the feedback reports
130 TouchEventLogEvdev touch_evdev_debug_buffer_; 130 TouchEventLogEvdev touch_evdev_debug_buffer_;
131 131
132 DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev); 132 DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev);
133 }; 133 };
134 134
135 } // namespace ui 135 } // namespace ui
136 136
137 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ 137 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698