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

Side by Side Diff: ui/events/ozone/evdev/key_event_converter_evdev.h

Issue 231643005: ozone: Remove the libevent message-pump. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge Created 6 years, 8 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 | Annotate | Revision Log
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_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_evdev.h" 12 #include "ui/events/ozone/evdev/event_converter_evdev.h"
13 #include "ui/events/ozone/evdev/event_modifiers_evdev.h" 13 #include "ui/events/ozone/evdev/event_modifiers_evdev.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 EventConverterEvdev, 20 : public EventConverterEvdev,
21 base::MessagePumpLibevent::Watcher { 21 public 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 // Start & stop watching for events. 28 // Start & stop watching for events.
29 virtual void Start() OVERRIDE; 29 virtual void Start() OVERRIDE;
30 virtual void Stop() OVERRIDE; 30 virtual void Stop() OVERRIDE;
31 31
(...skipping 18 matching lines...) Expand all
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
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/device_manager_udev.cc ('k') | ui/events/ozone/evdev/key_event_converter_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698