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

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

Issue 742103002: Ozone keyboard layout (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lite-code
Patch Set: reeeeebase Created 6 years 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
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 <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 29 matching lines...) Expand all
40 40
41 #if defined(USE_EVDEV_GESTURES) 41 #if defined(USE_EVDEV_GESTURES)
42 class GesturePropertyProvider; 42 class GesturePropertyProvider;
43 #endif 43 #endif
44 44
45 // Ozone events implementation for the Linux input subsystem ("evdev"). 45 // Ozone events implementation for the Linux input subsystem ("evdev").
46 class EVENTS_OZONE_EVDEV_EXPORT EventFactoryEvdev : public DeviceEventObserver, 46 class EVENTS_OZONE_EVDEV_EXPORT EventFactoryEvdev : public DeviceEventObserver,
47 public PlatformEventSource { 47 public PlatformEventSource {
48 public: 48 public:
49 EventFactoryEvdev(CursorDelegateEvdev* cursor, 49 EventFactoryEvdev(CursorDelegateEvdev* cursor,
50 DeviceManager* device_manager); 50 DeviceManager* device_manager,
51 KeyboardLayoutEngine* keyboard_layout_engine);
51 ~EventFactoryEvdev() override; 52 ~EventFactoryEvdev() override;
52 53
53 // Get a list of device ids that matches a device type. Return true if the 54 // Get a list of device ids that matches a device type. Return true if the
54 // list is not empty. |device_ids| can be NULL. 55 // list is not empty. |device_ids| can be NULL.
55 bool GetDeviceIdsByType(const EventDeviceType type, 56 bool GetDeviceIdsByType(const EventDeviceType type,
56 std::vector<int>* device_ids); 57 std::vector<int>* device_ids);
57 58
58 void WarpCursorTo(gfx::AcceleratedWidget widget, 59 void WarpCursorTo(gfx::AcceleratedWidget widget,
59 const gfx::PointF& location); 60 const gfx::PointF& location);
60 61
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 129
129 // Support weak pointers for attach & detach callbacks. 130 // Support weak pointers for attach & detach callbacks.
130 base::WeakPtrFactory<EventFactoryEvdev> weak_ptr_factory_; 131 base::WeakPtrFactory<EventFactoryEvdev> weak_ptr_factory_;
131 132
132 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev); 133 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev);
133 }; 134 };
134 135
135 } // namespace ui 136 } // namespace ui
136 137
137 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ 138 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc ('k') | ui/events/ozone/evdev/event_factory_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698