| OLD | NEW |
| 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 Loading... |
| 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 base::TimeTicks timestamp); |
| 77 void ReportEvents(base::TimeDelta delta); | 77 void ReportEvents(base::TimeTicks timestamp); |
| 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 Loading... |
| 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_ |
| OLD | NEW |