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 SERVICES_UI_PUBLIC_CPP_INPUT_DEVICES_INPUT_DEVICE_CLIENT_H_ | 5 #ifndef SERVICES_UI_PUBLIC_CPP_INPUT_DEVICES_INPUT_DEVICE_CLIENT_H_ |
6 #define SERVICES_UI_PUBLIC_CPP_INPUT_DEVICES_INPUT_DEVICE_CLIENT_H_ | 6 #define SERVICES_UI_PUBLIC_CPP_INPUT_DEVICES_INPUT_DEVICE_CLIENT_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/observer_list.h" | 11 #include "base/observer_list.h" |
12 #include "mojo/public/cpp/bindings/array.h" | |
13 #include "mojo/public/cpp/bindings/binding.h" | 12 #include "mojo/public/cpp/bindings/binding.h" |
14 #include "services/ui/public/interfaces/input_devices/input_device_server.mojom.
h" | 13 #include "services/ui/public/interfaces/input_devices/input_device_server.mojom.
h" |
15 #include "ui/events/devices/input_device.h" | 14 #include "ui/events/devices/input_device.h" |
16 #include "ui/events/devices/input_device_event_observer.h" | 15 #include "ui/events/devices/input_device_event_observer.h" |
17 #include "ui/events/devices/input_device_manager.h" | 16 #include "ui/events/devices/input_device_manager.h" |
18 #include "ui/events/devices/touchscreen_device.h" | 17 #include "ui/events/devices/touchscreen_device.h" |
19 | 18 |
20 namespace ui { | 19 namespace ui { |
21 | 20 |
22 // Allows in-process client code to register as a InputDeviceEventObserver and | 21 // Allows in-process client code to register as a InputDeviceEventObserver and |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 83 |
85 // List of in-process observers. | 84 // List of in-process observers. |
86 base::ObserverList<ui::InputDeviceEventObserver> observers_; | 85 base::ObserverList<ui::InputDeviceEventObserver> observers_; |
87 | 86 |
88 DISALLOW_COPY_AND_ASSIGN(InputDeviceClient); | 87 DISALLOW_COPY_AND_ASSIGN(InputDeviceClient); |
89 }; | 88 }; |
90 | 89 |
91 } // namespace ui | 90 } // namespace ui |
92 | 91 |
93 #endif // SERVICES_UI_PUBLIC_CPP_INPUT_DEVICES_INPUT_DEVICE_CLIENT_H_ | 92 #endif // SERVICES_UI_PUBLIC_CPP_INPUT_DEVICES_INPUT_DEVICE_CLIENT_H_ |
OLD | NEW |