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

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

Issue 255823009: [WIP] ui/window: Master CL. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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_EVENT_FACTORY_EVDEV_H_ 5 #ifndef UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_
6 #define UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ 6 #define UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/task_runner.h" 12 #include "base/task_runner.h"
13 #include "ui/events/events_export.h" 13 #include "ui/events/events_export.h"
14 #include "ui/events/ozone/evdev/event_converter_evdev.h" 14 #include "ui/events/ozone/evdev/event_converter_evdev.h"
15 #include "ui/events/ozone/evdev/event_modifiers_evdev.h" 15 #include "ui/events/ozone/evdev/event_modifiers_evdev.h"
16 #include "ui/events/ozone/event_factory_ozone.h" 16 #include "ui/events/ozone/event_factory_ozone.h"
17 17
18 namespace ui { 18 namespace ui {
19 19
20 class CursorDelegateEvdev; 20 class CursorDelegateEvdev;
21 class DeviceManagerEvdev; 21 class DeviceManagerEvdev;
22 22
23 // Ozone events implementation for the Linux input subsystem ("evdev"). 23 // Ozone events implementation for the Linux input subsystem ("evdev").
24 class EVENTS_EXPORT EventFactoryEvdev : public EventFactoryOzone { 24 class EVENTS_EXPORT EventFactoryEvdev : public EventFactoryOzone,
25 public ui::PlatformEventSource {
25 public: 26 public:
26 EventFactoryEvdev(); 27 EventFactoryEvdev();
27 explicit EventFactoryEvdev(CursorDelegateEvdev* cursor); 28 explicit EventFactoryEvdev(CursorDelegateEvdev* cursor);
28 virtual ~EventFactoryEvdev(); 29 virtual ~EventFactoryEvdev();
29 30
30 void DispatchUiEvent(Event* event); 31 void DispatchUiEvent(Event* event);
31 32
32 // EventFactoryOzone: 33 // EventFactoryOzone:
33 virtual void StartProcessingEvents() OVERRIDE; 34 virtual void StartProcessingEvents() OVERRIDE;
34 virtual void SetFileTaskRunner(scoped_refptr<base::TaskRunner> task_runner) 35 virtual void SetFileTaskRunner(scoped_refptr<base::TaskRunner> task_runner)
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 74
74 // Support weak pointers for attach & detach callbacks. 75 // Support weak pointers for attach & detach callbacks.
75 base::WeakPtrFactory<EventFactoryEvdev> weak_ptr_factory_; 76 base::WeakPtrFactory<EventFactoryEvdev> weak_ptr_factory_;
76 77
77 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev); 78 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev);
78 }; 79 };
79 80
80 } // namespace ui 81 } // namespace ui
81 82
82 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ 83 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698