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

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

Issue 889673004: ozone: evdev: Use kernel timestamps for mouse events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on MouseEvent timestamp changes & fix stime feedback Created 5 years, 10 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_EVENT_CONVERTER_EVDEV_IMPL_H_ 5 #ifndef UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_IMPL_H_
6 #define UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_IMPL_H_ 6 #define UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 private: 49 private:
50 void ConvertKeyEvent(const input_event& input); 50 void ConvertKeyEvent(const input_event& input);
51 51
52 void ConvertMouseMoveEvent(const input_event& input); 52 void ConvertMouseMoveEvent(const input_event& input);
53 53
54 void DispatchMouseButton(const input_event& input); 54 void DispatchMouseButton(const input_event& input);
55 55
56 // Flush events delimited by EV_SYN. This is useful for handling 56 // Flush events delimited by EV_SYN. This is useful for handling
57 // non-axis-aligned movement properly. 57 // non-axis-aligned movement properly.
58 void FlushEvents(); 58 void FlushEvents(const input_event& input);
59 59
60 // Input modalities for this device. 60 // Input modalities for this device.
61 bool has_keyboard_; 61 bool has_keyboard_;
62 bool has_touchpad_; 62 bool has_touchpad_;
63 63
64 // Save x-axis events of relative devices to be flushed at EV_SYN time. 64 // Save x-axis events of relative devices to be flushed at EV_SYN time.
65 int x_offset_; 65 int x_offset_;
66 66
67 // Save y-axis events of relative devices to be flushed at EV_SYN time. 67 // Save y-axis events of relative devices to be flushed at EV_SYN time.
68 int y_offset_; 68 int y_offset_;
(...skipping 11 matching lines...) Expand all
80 // Callbacks for dispatching events. 80 // Callbacks for dispatching events.
81 DeviceEventDispatcherEvdev* dispatcher_; 81 DeviceEventDispatcherEvdev* dispatcher_;
82 82
83 DISALLOW_COPY_AND_ASSIGN(EventConverterEvdevImpl); 83 DISALLOW_COPY_AND_ASSIGN(EventConverterEvdevImpl);
84 }; 84 };
85 85
86 } // namespace ui 86 } // namespace ui
87 87
88 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_IMPL_H_ 88 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_IMPL_H_
89 89
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698