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

Side by Side Diff: ui/events/ozone/evdev/touch_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_TOUCH_EVENT_CONVERTER_EVDEV_H_ 5 #ifndef UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_
6 #define UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ 6 #define UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_
7 7
8 #include <bitset> 8 #include <bitset>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/message_loop/message_pump_libevent.h" 12 #include "base/message_loop/message_pump_libevent.h"
13 #include "ui/events/event_constants.h" 13 #include "ui/events/event_constants.h"
14 #include "ui/events/events_export.h" 14 #include "ui/events/events_export.h"
15 #include "ui/events/ozone/evdev/event_converter_evdev.h" 15 #include "ui/events/ozone/evdev/event_converter_evdev.h"
16 #include "ui/events/ozone/evdev/event_device_info.h" 16 #include "ui/events/ozone/evdev/event_device_info.h"
17 17
18 namespace ui { 18 namespace ui {
19 19
20 class TouchEvent; 20 class TouchEvent;
21 21
22 class EVENTS_EXPORT TouchEventConverterEvdev 22 class EVENTS_EXPORT TouchEventConverterEvdev
23 : public EventConverterEvdev, 23 : public EventConverterEvdev,
24 base::MessagePumpLibevent::Watcher { 24 public base::MessagePumpLibevent::Watcher {
25 public: 25 public:
26 enum { 26 enum {
27 MAX_FINGERS = 11 27 MAX_FINGERS = 11
28 }; 28 };
29 TouchEventConverterEvdev(int fd, 29 TouchEventConverterEvdev(int fd,
30 base::FilePath path, 30 base::FilePath path,
31 const EventDeviceInfo& info); 31 const EventDeviceInfo& info);
32 virtual ~TouchEventConverterEvdev(); 32 virtual ~TouchEventConverterEvdev();
33 33
34 // Start & stop watching for events. 34 // Start & stop watching for events.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // Controller for watching the input fd. 91 // Controller for watching the input fd.
92 base::MessagePumpLibevent::FileDescriptorWatcher controller_; 92 base::MessagePumpLibevent::FileDescriptorWatcher controller_;
93 93
94 DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev); 94 DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev);
95 }; 95 };
96 96
97 } // namespace ui 97 } // namespace ui
98 98
99 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_ 99 #endif // UI_EVENTS_OZONE_EVDEV_TOUCH_EVENT_CONVERTER_EVDEV_H_
100 100
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/key_event_converter_evdev.cc ('k') | ui/events/ozone/evdev/touch_event_converter_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698