| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 EventType GetEventTypeForTouch(const InProgressTouchEvdev& touch); | 76 EventType GetEventTypeForTouch(const InProgressTouchEvdev& touch); |
| 77 | 77 |
| 78 void ReportTouchEvent(const InProgressTouchEvdev& event, | 78 void ReportTouchEvent(const InProgressTouchEvdev& event, |
| 79 EventType event_type, | 79 EventType event_type, |
| 80 base::TimeTicks timestamp); | 80 base::TimeTicks timestamp); |
| 81 void ReportEvents(base::TimeTicks timestamp); | 81 void ReportEvents(base::TimeTicks timestamp); |
| 82 | 82 |
| 83 void UpdateTrackingId(int slot, int tracking_id); | 83 void UpdateTrackingId(int slot, int tracking_id); |
| 84 void ReleaseTouches(); | 84 void ReleaseTouches(); |
| 85 void ReleaseButtons(); | 85 void ReleaseButtons(); |
| 86 void CancelAllTouches(); |
| 86 // Normalize pressure value to [0, 1]. | 87 // Normalize pressure value to [0, 1]. |
| 87 float ScalePressure(int32_t value); | 88 float ScalePressure(int32_t value); |
| 88 | 89 |
| 89 int NextTrackingId(); | 90 int NextTrackingId(); |
| 90 | 91 |
| 91 // Dispatcher for events. | 92 // Dispatcher for events. |
| 92 DeviceEventDispatcherEvdev* dispatcher_; | 93 DeviceEventDispatcherEvdev* dispatcher_; |
| 93 | 94 |
| 94 // Set if we drop events in kernel (SYN_DROPPED) or in process. | 95 // Set if we drop events in kernel (SYN_DROPPED) or in process. |
| 95 bool dropped_events_ = false; | 96 bool dropped_events_ = false; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 142 |
| 142 // Callback to enable/disable palm suppression. | 143 // Callback to enable/disable palm suppression. |
| 143 base::Callback<void(bool)> enable_palm_suppression_callback_; | 144 base::Callback<void(bool)> enable_palm_suppression_callback_; |
| 144 | 145 |
| 145 DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev); | 146 DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev); |
| 146 }; | 147 }; |
| 147 | 148 |
| 148 } // namespace ui | 149 } // namespace ui |
| 149 | 150 |
| 150 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ | 151 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ |
| OLD | NEW |