| OLD | NEW | 
|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_KEY_EVENT_CONVERTER_EVDEV_H_ | 5 #ifndef UI_EVENTS_OZONE_EVDEV_KEY_EVENT_CONVERTER_EVDEV_H_ | 
| 6 #define UI_EVENTS_OZONE_EVDEV_KEY_EVENT_CONVERTER_EVDEV_H_ | 6 #define UI_EVENTS_OZONE_EVDEV_KEY_EVENT_CONVERTER_EVDEV_H_ | 
| 7 | 7 | 
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" | 
| 9 #include "base/message_loop/message_pump_libevent.h" | 9 #include "base/message_loop/message_pump_libevent.h" | 
| 10 #include "ui/events/event.h" | 10 #include "ui/events/event.h" | 
| 11 #include "ui/events/events_export.h" | 11 #include "ui/events/events_export.h" | 
|  | 12 #include "ui/events/ozone/evdev/event_converter.h" | 
| 12 #include "ui/events/ozone/evdev/event_modifiers.h" | 13 #include "ui/events/ozone/evdev/event_modifiers.h" | 
| 13 #include "ui/events/ozone/event_converter_ozone.h" |  | 
| 14 | 14 | 
| 15 struct input_event; | 15 struct input_event; | 
| 16 | 16 | 
| 17 namespace ui { | 17 namespace ui { | 
| 18 | 18 | 
| 19 class EVENTS_EXPORT KeyEventConverterEvdev | 19 class EVENTS_EXPORT KeyEventConverterEvdev | 
| 20     : public EventConverterOzone, | 20     : public EventConverterEvdev, | 
| 21       base::MessagePumpLibevent::Watcher { | 21       base::MessagePumpLibevent::Watcher { | 
| 22  public: | 22  public: | 
| 23   KeyEventConverterEvdev(int fd, | 23   KeyEventConverterEvdev(int fd, | 
| 24                          base::FilePath path, | 24                          base::FilePath path, | 
| 25                          EventModifiersEvdev* modifiers); | 25                          EventModifiersEvdev* modifiers); | 
| 26   virtual ~KeyEventConverterEvdev(); | 26   virtual ~KeyEventConverterEvdev(); | 
| 27 | 27 | 
| 28   // Overidden from base::MessagePumpLibevent::Watcher. | 28   // Overidden from base::MessagePumpLibevent::Watcher. | 
| 29   virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; | 29   virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; | 
| 30   virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE; | 30   virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE; | 
| (...skipping 19 matching lines...) Expand all  Loading... | 
| 50 | 50 | 
| 51   void ConvertKeyEvent(int key, int value); | 51   void ConvertKeyEvent(int key, int value); | 
| 52 | 52 | 
| 53   DISALLOW_COPY_AND_ASSIGN(KeyEventConverterEvdev); | 53   DISALLOW_COPY_AND_ASSIGN(KeyEventConverterEvdev); | 
| 54 }; | 54 }; | 
| 55 | 55 | 
| 56 }  // namspace ui | 56 }  // namspace ui | 
| 57 | 57 | 
| 58 #endif  // UI_EVENTS_OZONE_EVDEV_KEY_EVENT_CONVERTER_EVDEV_H_ | 58 #endif  // UI_EVENTS_OZONE_EVDEV_KEY_EVENT_CONVERTER_EVDEV_H_ | 
| 59 | 59 | 
| OLD | NEW | 
|---|