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

Side by Side Diff: ui/events/ozone/evdev/event_converter_evdev_impl.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: rebase Created 4 years, 6 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 <bitset> 8 #include <bitset>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 std::vector<DomCode> allowed_keys) override; 46 std::vector<DomCode> allowed_keys) override;
47 void OnDisabled() override; 47 void OnDisabled() override;
48 48
49 void ProcessEvents(const struct input_event* inputs, int count); 49 void ProcessEvents(const struct input_event* inputs, int count);
50 50
51 private: 51 private:
52 void ConvertKeyEvent(const input_event& input); 52 void ConvertKeyEvent(const input_event& input);
53 void ConvertMouseMoveEvent(const input_event& input); 53 void ConvertMouseMoveEvent(const input_event& input);
54 void OnKeyChange(unsigned int key, 54 void OnKeyChange(unsigned int key,
55 bool down, 55 bool down,
56 const base::TimeDelta& timestamp); 56 const base::TimeTicks& timestamp);
57 void ReleaseKeys(); 57 void ReleaseKeys();
58 void ReleaseMouseButtons(); 58 void ReleaseMouseButtons();
59 void OnLostSync(); 59 void OnLostSync();
60 void DispatchMouseButton(const input_event& input); 60 void DispatchMouseButton(const input_event& input);
61 void OnButtonChange(int code, bool down, const base::TimeDelta& timestamp); 61 void OnButtonChange(int code, bool down, base::TimeTicks timestamp);
62 62
63 // Flush events delimited by EV_SYN. This is useful for handling 63 // Flush events delimited by EV_SYN. This is useful for handling
64 // non-axis-aligned movement properly. 64 // non-axis-aligned movement properly.
65 void FlushEvents(const input_event& input); 65 void FlushEvents(const input_event& input);
66 66
67 // Input modalities for this device. 67 // Input modalities for this device.
68 bool has_keyboard_; 68 bool has_keyboard_;
69 bool has_touchpad_; 69 bool has_touchpad_;
70 70
71 // LEDs for this device. 71 // LEDs for this device.
(...skipping 24 matching lines...) Expand all
96 // Callbacks for dispatching events. 96 // Callbacks for dispatching events.
97 DeviceEventDispatcherEvdev* dispatcher_; 97 DeviceEventDispatcherEvdev* dispatcher_;
98 98
99 DISALLOW_COPY_AND_ASSIGN(EventConverterEvdevImpl); 99 DISALLOW_COPY_AND_ASSIGN(EventConverterEvdevImpl);
100 }; 100 };
101 101
102 } // namespace ui 102 } // namespace ui
103 103
104 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_IMPL_H_ 104 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_IMPL_H_
105 105
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/event_converter_evdev.cc ('k') | ui/events/ozone/evdev/event_converter_evdev_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698