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

Side by Side Diff: ui/events/ozone/evdev/touch_event_converter_evdev.h

Issue 2653783002: ozone: Cancel all touches once a single touch is cancelled (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | ui/events/ozone/evdev/touch_event_converter_evdev.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 EventType GetEventTypeForTouch(const InProgressTouchEvdev& touch); 77 EventType GetEventTypeForTouch(const InProgressTouchEvdev& touch);
78 78
79 void ReportTouchEvent(const InProgressTouchEvdev& event, 79 void ReportTouchEvent(const InProgressTouchEvdev& event,
80 EventType event_type, 80 EventType event_type,
81 base::TimeTicks timestamp); 81 base::TimeTicks timestamp);
82 void ReportEvents(base::TimeTicks timestamp); 82 void ReportEvents(base::TimeTicks timestamp);
83 83
84 void UpdateTrackingId(int slot, int tracking_id); 84 void UpdateTrackingId(int slot, int tracking_id);
85 void ReleaseTouches(); 85 void ReleaseTouches();
86 void ReleaseButtons(); 86 void ReleaseButtons();
87 void CancelAllTouches();
87 // Normalize pressure value to [0, 1]. 88 // Normalize pressure value to [0, 1].
88 float ScalePressure(int32_t value); 89 float ScalePressure(int32_t value);
89 90
90 int NextTrackingId(); 91 int NextTrackingId();
91 92
92 // Input device file descriptor. 93 // Input device file descriptor.
93 ScopedInputDevice input_device_fd_; 94 ScopedInputDevice input_device_fd_;
94 95
95 // Dispatcher for events. 96 // Dispatcher for events.
96 DeviceEventDispatcherEvdev* dispatcher_; 97 DeviceEventDispatcherEvdev* dispatcher_;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 146
146 // Callback to enable/disable palm suppression. 147 // Callback to enable/disable palm suppression.
147 base::Callback<void(bool)> enable_palm_suppression_callback_; 148 base::Callback<void(bool)> enable_palm_suppression_callback_;
148 149
149 DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev); 150 DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev);
150 }; 151 };
151 152
152 } // namespace ui 153 } // namespace ui
153 154
154 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ 155 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_
OLDNEW
« no previous file with comments | « no previous file | ui/events/ozone/evdev/touch_event_converter_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698