| 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 "device/sensors/device_sensor_host.h" | 5 #include "services/device/sensors/device_sensor_host.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "device/sensors/device_sensor_export.h" | |
| 10 #include "device/sensors/device_sensor_service.h" | |
| 11 #include "mojo/public/cpp/bindings/strong_binding.h" | 9 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 10 #include "services/device/sensors/device_sensor_export.h" |
| 11 #include "services/device/sensors/device_sensor_service.h" |
| 12 | 12 |
| 13 namespace device { | 13 namespace device { |
| 14 | 14 |
| 15 template <typename MojoInterface, ConsumerType consumer_type> | 15 template <typename MojoInterface, ConsumerType consumer_type> |
| 16 void DeviceSensorHost<MojoInterface, consumer_type>::Create( | 16 void DeviceSensorHost<MojoInterface, consumer_type>::Create( |
| 17 mojo::InterfaceRequest<MojoInterface> request) { | 17 mojo::InterfaceRequest<MojoInterface> request) { |
| 18 mojo::MakeStrongBinding( | 18 mojo::MakeStrongBinding( |
| 19 base::WrapUnique(new DeviceSensorHost<MojoInterface, consumer_type>), | 19 base::WrapUnique(new DeviceSensorHost<MojoInterface, consumer_type>), |
| 20 std::move(request)); | 20 std::move(request)); |
| 21 } | 21 } |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 template class DEVICE_SENSOR_EXPORT | 64 template class DEVICE_SENSOR_EXPORT |
| 65 DeviceSensorHost<device::mojom::MotionSensor, CONSUMER_TYPE_MOTION>; | 65 DeviceSensorHost<device::mojom::MotionSensor, CONSUMER_TYPE_MOTION>; |
| 66 template class DEVICE_SENSOR_EXPORT | 66 template class DEVICE_SENSOR_EXPORT |
| 67 DeviceSensorHost<device::mojom::OrientationSensor, | 67 DeviceSensorHost<device::mojom::OrientationSensor, |
| 68 CONSUMER_TYPE_ORIENTATION>; | 68 CONSUMER_TYPE_ORIENTATION>; |
| 69 template class DEVICE_SENSOR_EXPORT | 69 template class DEVICE_SENSOR_EXPORT |
| 70 DeviceSensorHost<device::mojom::OrientationAbsoluteSensor, | 70 DeviceSensorHost<device::mojom::OrientationAbsoluteSensor, |
| 71 CONSUMER_TYPE_ORIENTATION_ABSOLUTE>; | 71 CONSUMER_TYPE_ORIENTATION_ABSOLUTE>; |
| 72 | 72 |
| 73 } // namespace device | 73 } // namespace device |
| OLD | NEW |