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_INPUT_DEVICES_INPUT_DEVICE_SERVER_H_ | 5 #ifndef SERVICES_UI_INPUT_DEVICES_INPUT_DEVICE_SERVER_H_ |
6 #define SERVICES_UI_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 "mojo/public/cpp/bindings/binding_set.h" | 9 #include "mojo/public/cpp/bindings/binding_set.h" |
10 #include "mojo/public/cpp/bindings/interface_ptr_set.h" | 10 #include "mojo/public/cpp/bindings/interface_ptr_set.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 void OnTouchscreenDeviceConfigurationChanged() override; | 45 void OnTouchscreenDeviceConfigurationChanged() override; |
46 void OnMouseDeviceConfigurationChanged() override; | 46 void OnMouseDeviceConfigurationChanged() override; |
47 void OnTouchpadDeviceConfigurationChanged() override; | 47 void OnTouchpadDeviceConfigurationChanged() override; |
48 void OnDeviceListsComplete() override; | 48 void OnDeviceListsComplete() override; |
49 | 49 |
50 private: | 50 private: |
51 // Sends the current state of all input-devices to an observer. | 51 // Sends the current state of all input-devices to an observer. |
52 void SendDeviceListsComplete(mojom::InputDeviceObserverMojo* observer); | 52 void SendDeviceListsComplete(mojom::InputDeviceObserverMojo* observer); |
53 | 53 |
54 // mojo::InterfaceFactory<mojom::InputDeviceServer>: | 54 // mojo::InterfaceFactory<mojom::InputDeviceServer>: |
55 void Create(shell::Connection* connection, | 55 void Create(const shell::Identity& remote_identity, |
56 mojom::InputDeviceServerRequest request) override; | 56 mojom::InputDeviceServerRequest request) override; |
57 | 57 |
58 mojo::BindingSet<mojom::InputDeviceServer> bindings_; | 58 mojo::BindingSet<mojom::InputDeviceServer> bindings_; |
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 ui | 67 } // namespace ui |
68 | 68 |
69 #endif // SERVICES_UI_INPUT_DEVICES_INPUT_DEVICE_SERVER_H_ | 69 #endif // SERVICES_UI_INPUT_DEVICES_INPUT_DEVICE_SERVER_H_ |
OLD | NEW |