| 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_PUBLIC_CPP_INPUT_DEVICES_INPUT_DEVICE_CLIENT_H_ | 5 #ifndef SERVICES_UI_PUBLIC_CPP_INPUT_DEVICES_INPUT_DEVICE_CLIENT_H_ |
| 6 #define COMPONENTS_MUS_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 "components/mus/public/interfaces/input_devices/input_device_server.moj
om.h" | |
| 13 #include "mojo/public/cpp/bindings/array.h" | 12 #include "mojo/public/cpp/bindings/array.h" |
| 14 #include "mojo/public/cpp/bindings/binding.h" | 13 #include "mojo/public/cpp/bindings/binding.h" |
| 14 #include "services/ui/public/interfaces/input_devices/input_device_server.mojom.
h" |
| 15 #include "ui/events/devices/input_device.h" | 15 #include "ui/events/devices/input_device.h" |
| 16 #include "ui/events/devices/input_device_event_observer.h" | 16 #include "ui/events/devices/input_device_event_observer.h" |
| 17 #include "ui/events/devices/input_device_manager.h" | 17 #include "ui/events/devices/input_device_manager.h" |
| 18 #include "ui/events/devices/touchscreen_device.h" | 18 #include "ui/events/devices/touchscreen_device.h" |
| 19 | 19 |
| 20 namespace mus { | 20 namespace mus { |
| 21 | 21 |
| 22 // Allows in-process client code to register as a InputDeviceEventObserver and | 22 // Allows in-process client code to register as a InputDeviceEventObserver and |
| 23 // get information about input-devices. InputDeviceClient itself acts as an | 23 // get information about input-devices. InputDeviceClient itself acts as an |
| 24 // InputDeviceObserverMojo and registers to get updates from InputDeviceServer. | 24 // InputDeviceObserverMojo and registers to get updates from InputDeviceServer. |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 bool device_lists_complete_ = false; | 74 bool device_lists_complete_ = false; |
| 75 | 75 |
| 76 // List of in-process observers. | 76 // List of in-process observers. |
| 77 base::ObserverList<ui::InputDeviceEventObserver> observers_; | 77 base::ObserverList<ui::InputDeviceEventObserver> observers_; |
| 78 | 78 |
| 79 DISALLOW_COPY_AND_ASSIGN(InputDeviceClient); | 79 DISALLOW_COPY_AND_ASSIGN(InputDeviceClient); |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 } // namespace mus | 82 } // namespace mus |
| 83 | 83 |
| 84 #endif // COMPONENTS_MUS_PUBLIC_CPP_INPUT_DEVICES_INPUT_DEVICE_CLIENT_H_ | 84 #endif // SERVICES_UI_PUBLIC_CPP_INPUT_DEVICES_INPUT_DEVICE_CLIENT_H_ |
| OLD | NEW |