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

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

Issue 545063006: ozone: evdev: Add gesture property provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase code again. Fix #ifdef. Created 6 years, 2 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
« no previous file with comments | « no previous file | ui/events/ozone/evdev/event_factory_evdev.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 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/ozone/device/device_event_observer.h" 13 #include "ui/events/ozone/device/device_event_observer.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/evdev/events_ozone_evdev_export.h" 16 #include "ui/events/ozone/evdev/events_ozone_evdev_export.h"
17 #include "ui/events/ozone/evdev/keyboard_evdev.h" 17 #include "ui/events/ozone/evdev/keyboard_evdev.h"
18 #include "ui/events/platform/platform_event_source.h" 18 #include "ui/events/platform/platform_event_source.h"
19 #include "ui/gfx/native_widget_types.h" 19 #include "ui/gfx/native_widget_types.h"
20 20
21 namespace gfx { 21 namespace gfx {
22 class PointF; 22 class PointF;
23 } // namespace gfx 23 } // namespace gfx
24 24
25 namespace ui { 25 namespace ui {
26 26
27 class CursorDelegateEvdev; 27 class CursorDelegateEvdev;
28 class DeviceManager; 28 class DeviceManager;
29 29
30 #if defined(USE_EVDEV_GESTURES)
31 class GesturePropertyProvider;
32 #endif
33
30 // Ozone events implementation for the Linux input subsystem ("evdev"). 34 // Ozone events implementation for the Linux input subsystem ("evdev").
31 class EVENTS_OZONE_EVDEV_EXPORT EventFactoryEvdev : public DeviceEventObserver, 35 class EVENTS_OZONE_EVDEV_EXPORT EventFactoryEvdev : public DeviceEventObserver,
32 public PlatformEventSource { 36 public PlatformEventSource {
33 public: 37 public:
34 EventFactoryEvdev(CursorDelegateEvdev* cursor, 38 EventFactoryEvdev(CursorDelegateEvdev* cursor,
35 DeviceManager* device_manager); 39 DeviceManager* device_manager);
36 virtual ~EventFactoryEvdev(); 40 virtual ~EventFactoryEvdev();
37 41
38 void DispatchUiEvent(Event* event); 42 void DispatchUiEvent(Event* event);
39 43
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 80
77 // Modifier key state (shift, ctrl, etc). 81 // Modifier key state (shift, ctrl, etc).
78 EventModifiersEvdev modifiers_; 82 EventModifiersEvdev modifiers_;
79 83
80 // Keyboard state. 84 // Keyboard state.
81 KeyboardEvdev keyboard_; 85 KeyboardEvdev keyboard_;
82 86
83 // Cursor movement. 87 // Cursor movement.
84 CursorDelegateEvdev* cursor_; 88 CursorDelegateEvdev* cursor_;
85 89
90 #if defined(USE_EVDEV_GESTURES)
91 // Gesture library property provider (used by touchpads/mice).
92 scoped_ptr<GesturePropertyProvider> gesture_property_provider_;
93 #endif
94
86 // Support weak pointers for attach & detach callbacks. 95 // Support weak pointers for attach & detach callbacks.
87 base::WeakPtrFactory<EventFactoryEvdev> weak_ptr_factory_; 96 base::WeakPtrFactory<EventFactoryEvdev> weak_ptr_factory_;
88 97
89 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev); 98 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev);
90 }; 99 };
91 100
92 } // namespace ui 101 } // namespace ui
93 102
94 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ 103 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_
OLDNEW
« no previous file with comments | « no previous file | ui/events/ozone/evdev/event_factory_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698