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/device/generic_sensor/linux/sensor_data_linux.h" |
5 #include "base/sys_info.h" | 6 #include "base/sys_info.h" |
6 #include "base/version.h" | 7 #include "base/version.h" |
7 #include "device/generic_sensor/generic_sensor_consts.h" | 8 #include "services/device/generic_sensor/generic_sensor_consts.h" |
8 #include "device/generic_sensor/linux/sensor_data_linux.h" | 9 #include "services/device/public/cpp/generic_sensor/sensor_reading.h" |
9 #include "device/generic_sensor/public/cpp/sensor_reading.h" | |
10 | 10 |
11 namespace device { | 11 namespace device { |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 using mojom::SensorType; | 15 using mojom::SensorType; |
16 | 16 |
17 #if defined(OS_CHROMEOS) | 17 #if defined(OS_CHROMEOS) |
18 // ChromeOS kernel version, when axes were changed to XYZ. Before 3.18, | 18 // ChromeOS kernel version, when axes were changed to XYZ. Before 3.18, |
19 // they were YXZ. | 19 // they were YXZ. |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 device_frequency(sensor_device_frequency), | 203 device_frequency(sensor_device_frequency), |
204 device_scaling_value(sensor_device_scaling_value), | 204 device_scaling_value(sensor_device_scaling_value), |
205 device_offset_value(sensor_device_offset_value), | 205 device_offset_value(sensor_device_offset_value), |
206 reporting_mode(mode), | 206 reporting_mode(mode), |
207 apply_scaling_func(scaling_func), | 207 apply_scaling_func(scaling_func), |
208 device_reading_files(std::move(device_reading_files)) {} | 208 device_reading_files(std::move(device_reading_files)) {} |
209 | 209 |
210 SensorInfoLinux::~SensorInfoLinux() = default; | 210 SensorInfoLinux::~SensorInfoLinux() = default; |
211 | 211 |
212 } // namespace device | 212 } // namespace device |
OLD | NEW |