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

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

Issue 149503003: Remove common EventConverterOzone class & move to EventConverterEvdev (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/DispatchEventHelper/DispatchEventTask/ Created 6 years, 10 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
« no previous file with comments | « ui/events/ozone/evdev/event_converter.cc ('k') | ui/events/ozone/evdev/event_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_converter.h"
11 #include "ui/events/ozone/evdev/event_modifiers.h" 12 #include "ui/events/ozone/evdev/event_modifiers.h"
12 #include "ui/events/ozone/event_factory_ozone.h" 13 #include "ui/events/ozone/event_factory_ozone.h"
13 14
14 namespace ui { 15 namespace ui {
15 16
16 // Ozone events implementation for the Linux input subsystem ("evdev"). 17 // Ozone events implementation for the Linux input subsystem ("evdev").
17 class EVENTS_EXPORT EventFactoryEvdev : public EventFactoryOzone { 18 class EVENTS_EXPORT EventFactoryEvdev : public EventFactoryOzone {
18 public: 19 public:
19 EventFactoryEvdev(); 20 EventFactoryEvdev();
20 virtual ~EventFactoryEvdev(); 21 virtual ~EventFactoryEvdev();
21 22
22 virtual void StartProcessingEvents() OVERRIDE; 23 virtual void StartProcessingEvents() OVERRIDE;
23 24
24 private: 25 private:
25 // Open device at path & starting processing events. 26 // Open device at path & starting processing events.
26 void AttachInputDevice(const base::FilePath& file_path); 27 void AttachInputDevice(const base::FilePath& file_path);
27 28
28 // Owned per-device event converters (by path). 29 // Owned per-device event converters (by path).
29 std::map<base::FilePath, EventConverterOzone*> converters_; 30 std::map<base::FilePath, EventConverterEvdev*> converters_;
30 31
31 EventModifiersEvdev modifiers_; 32 EventModifiersEvdev modifiers_;
32 33
33 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev); 34 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev);
34 }; 35 };
35 36
36 } // namespace ui 37 } // namespace ui
37 38
38 #endif // UI_EVENTS_OZONE_EVENT_FACTORY_DELEGATE_EVDEV_H_ 39 #endif // UI_EVENTS_OZONE_EVENT_FACTORY_DELEGATE_EVDEV_H_
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/event_converter.cc ('k') | ui/events/ozone/evdev/event_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698