Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: services/device/generic_sensor/linux/sensor_data_linux.cc

Issue 2865263002: Move //device/generic_sensor to be part of the internal implementation of the Device Service. (Closed)
Patch Set: code rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « services/device/generic_sensor/linux/sensor_data_linux.h ('k') | services/device/generic_sensor/linux/sensor_device_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698