OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_MUS_INPUT_DEVICES_INPUT_DEVICE_SERVER_H_ | 5 #ifndef SERVICES_UI_INPUT_DEVICES_INPUT_DEVICE_SERVER_H_ |
6 #define COMPONENTS_MUS_INPUT_DEVICES_INPUT_DEVICE_SERVER_H_ | 6 #define SERVICES_UI_INPUT_DEVICES_INPUT_DEVICE_SERVER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "components/mus/public/interfaces/input_devices/input_device_server.moj
om.h" | |
10 #include "mojo/public/cpp/bindings/binding_set.h" | 9 #include "mojo/public/cpp/bindings/binding_set.h" |
11 #include "mojo/public/cpp/bindings/interface_ptr_set.h" | 10 #include "mojo/public/cpp/bindings/interface_ptr_set.h" |
12 #include "services/shell/public/cpp/connection.h" | 11 #include "services/shell/public/cpp/connection.h" |
13 #include "services/shell/public/cpp/interface_factory.h" | 12 #include "services/shell/public/cpp/interface_factory.h" |
| 13 #include "services/ui/public/interfaces/input_devices/input_device_server.mojom.
h" |
14 #include "ui/events/devices/device_data_manager.h" | 14 #include "ui/events/devices/device_data_manager.h" |
15 #include "ui/events/devices/input_device_event_observer.h" | 15 #include "ui/events/devices/input_device_event_observer.h" |
16 | 16 |
17 namespace mus { | 17 namespace mus { |
18 | 18 |
19 // Listens to DeviceDataManager for updates on input-devices and forwards those | 19 // Listens to DeviceDataManager for updates on input-devices and forwards those |
20 // updates to any registered InputDeviceObserverMojo in other processes via | 20 // updates to any registered InputDeviceObserverMojo in other processes via |
21 // Mojo IPC. This runs in the mus-ws process. | 21 // Mojo IPC. This runs in the mus-ws process. |
22 class InputDeviceServer | 22 class InputDeviceServer |
23 : public shell::InterfaceFactory<mojom::InputDeviceServer>, | 23 : public shell::InterfaceFactory<mojom::InputDeviceServer>, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 mojo::InterfacePtrSet<mojom::InputDeviceObserverMojo> observers_; | 59 mojo::InterfacePtrSet<mojom::InputDeviceObserverMojo> observers_; |
60 | 60 |
61 // DeviceDataManager instance we are registered as an observer with. | 61 // DeviceDataManager instance we are registered as an observer with. |
62 ui::DeviceDataManager* manager_ = nullptr; | 62 ui::DeviceDataManager* manager_ = nullptr; |
63 | 63 |
64 DISALLOW_COPY_AND_ASSIGN(InputDeviceServer); | 64 DISALLOW_COPY_AND_ASSIGN(InputDeviceServer); |
65 }; | 65 }; |
66 | 66 |
67 } // namespace mus | 67 } // namespace mus |
68 | 68 |
69 #endif // COMPONENTS_MUS_INPUT_DEVICES_INPUT_DEVICE_SERVER_H_ | 69 #endif // SERVICES_UI_INPUT_DEVICES_INPUT_DEVICE_SERVER_H_ |
OLD | NEW |