| 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_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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |