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 #include "services/ui/input_devices/input_device_server.h" | 5 #include "services/ui/input_devices/input_device_server.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "mojo/public/cpp/bindings/array.h" | 10 #include "mojo/public/cpp/bindings/array.h" |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 95 |
96 void InputDeviceServer::SendDeviceListsComplete( | 96 void InputDeviceServer::SendDeviceListsComplete( |
97 mojom::InputDeviceObserverMojo* observer) { | 97 mojom::InputDeviceObserverMojo* observer) { |
98 DCHECK(manager_->AreDeviceListsComplete()); | 98 DCHECK(manager_->AreDeviceListsComplete()); |
99 | 99 |
100 observer->OnDeviceListsComplete( | 100 observer->OnDeviceListsComplete( |
101 manager_->GetKeyboardDevices(), manager_->GetTouchscreenDevices(), | 101 manager_->GetKeyboardDevices(), manager_->GetTouchscreenDevices(), |
102 manager_->GetMouseDevices(), manager_->GetTouchpadDevices()); | 102 manager_->GetMouseDevices(), manager_->GetTouchpadDevices()); |
103 } | 103 } |
104 | 104 |
105 void InputDeviceServer::Create(shell::Connection* connection, | 105 void InputDeviceServer::Create(const shell::Identity& remote_identity, |
106 mojom::InputDeviceServerRequest request) { | 106 mojom::InputDeviceServerRequest request) { |
107 bindings_.AddBinding(this, std::move(request)); | 107 bindings_.AddBinding(this, std::move(request)); |
108 } | 108 } |
109 | 109 |
110 } // namespace ui | 110 } // namespace ui |
OLD | NEW |