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

Side by Side Diff: ui/events/ozone/evdev/event_converter_evdev.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_H_ 5 #ifndef UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_H_
6 #define UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_H_ 6 #define UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // false, all keys are allowed and |allowed_keys| is ignored. 92 // false, all keys are allowed and |allowed_keys| is ignored.
93 virtual void SetKeyFilter(bool enable_filter, 93 virtual void SetKeyFilter(bool enable_filter,
94 std::vector<DomCode> allowed_keys); 94 std::vector<DomCode> allowed_keys);
95 95
96 // Update caps lock LED state. 96 // Update caps lock LED state.
97 virtual void SetCapsLockLed(bool enabled); 97 virtual void SetCapsLockLed(bool enabled);
98 98
99 // Update touch event logging state. 99 // Update touch event logging state.
100 virtual void SetTouchEventLoggingEnabled(bool enabled); 100 virtual void SetTouchEventLoggingEnabled(bool enabled);
101 101
102 // Helper to generate a base::TimeDelta from an input_event's time 102 // Helper to generate a base::TimeTicks from an input_event's time
103 static base::TimeDelta TimeDeltaFromInputEvent(const input_event& event); 103 static base::TimeTicks TimeTicksFromInputEvent(const input_event& event);
104 104
105 protected: 105 protected:
106 // base::MessagePumpLibevent::Watcher: 106 // base::MessagePumpLibevent::Watcher:
107 void OnFileCanWriteWithoutBlocking(int fd) override; 107 void OnFileCanWriteWithoutBlocking(int fd) override;
108 108
109 // File descriptor to read. 109 // File descriptor to read.
110 int fd_; 110 int fd_;
111 111
112 // Path to input device. 112 // Path to input device.
113 base::FilePath path_; 113 base::FilePath path_;
(...skipping 11 matching lines...) Expand all
125 // Controller for watching the input fd. 125 // Controller for watching the input fd.
126 base::MessagePumpLibevent::FileDescriptorWatcher controller_; 126 base::MessagePumpLibevent::FileDescriptorWatcher controller_;
127 127
128 private: 128 private:
129 DISALLOW_COPY_AND_ASSIGN(EventConverterEvdev); 129 DISALLOW_COPY_AND_ASSIGN(EventConverterEvdev);
130 }; 130 };
131 131
132 } // namespace ui 132 } // namespace ui
133 133
134 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_H_ 134 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_H_
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/device_event_dispatcher_evdev.cc ('k') | ui/events/ozone/evdev/event_converter_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698