| 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_EVENT_FACTORY_DELEGATE_EVDEV_H_ | 5 #ifndef UI_EVENTS_OZONE_EVENT_FACTORY_DELEGATE_EVDEV_H_ |
| 6 #define UI_EVENTS_OZONE_EVENT_FACTORY_DELEGATE_EVDEV_H_ | 6 #define UI_EVENTS_OZONE_EVENT_FACTORY_DELEGATE_EVDEV_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "ui/events/events_export.h" | 10 #include "ui/events/events_export.h" |
| 11 #include "ui/events/ozone/evdev/event_modifiers.h" | 11 #include "ui/events/ozone/evdev/event_modifiers.h" |
| 12 #include "ui/events/ozone/event_factory_ozone.h" | 12 #include "ui/events/ozone/event_factory_ozone.h" |
| 13 | 13 |
| 14 namespace ui { | 14 namespace ui { |
| 15 | 15 |
| 16 class EventConverterEvdev; |
| 17 |
| 16 // Ozone events implementation for the Linux input subsystem ("evdev"). | 18 // Ozone events implementation for the Linux input subsystem ("evdev"). |
| 17 class EVENTS_EXPORT EventFactoryEvdev : public EventFactoryOzone { | 19 class EVENTS_EXPORT EventFactoryEvdev : public EventFactoryOzone { |
| 18 public: | 20 public: |
| 19 EventFactoryEvdev(); | 21 EventFactoryEvdev(); |
| 20 virtual ~EventFactoryEvdev(); | 22 virtual ~EventFactoryEvdev(); |
| 21 | 23 |
| 22 virtual void StartProcessingEvents() OVERRIDE; | 24 virtual void StartProcessingEvents() OVERRIDE; |
| 23 | 25 |
| 24 private: | 26 private: |
| 25 // Open device at path & starting processing events. | 27 // Open device at path & starting processing events. |
| 26 void AttachInputDevice(const base::FilePath& file_path); | 28 void AttachInputDevice(const base::FilePath& file_path); |
| 27 | 29 |
| 28 EventModifiersEvdev modifiers_; | 30 EventModifiersEvdev modifiers_; |
| 29 | 31 |
| 30 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev); | 32 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev); |
| 31 }; | 33 }; |
| 32 | 34 |
| 33 } // namespace ui | 35 } // namespace ui |
| 34 | 36 |
| 35 #endif // UI_EVENTS_OZONE_EVENT_FACTORY_DELEGATE_EVDEV_H_ | 37 #endif // UI_EVENTS_OZONE_EVENT_FACTORY_DELEGATE_EVDEV_H_ |
| OLD | NEW |