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

Side by Side Diff: services/device/sensors/sensor_manager_chromeos.h

Issue 2819273006: Move //device/sensor impl to be part of the internal implemenation of the Device Service. (Closed)
Patch Set: Move //device/sensor impl to be part of the internal implemenation of the Device Service Created 3 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 DEVICE_SENSORS_SENSOR_MANAGER_CHROMEOS_H_ 5 #ifndef SERVICES_DEVICE_SENSORS_SENSOR_MANAGER_CHROMEOS_H_
6 #define DEVICE_SENSORS_SENSOR_MANAGER_CHROMEOS_H_ 6 #define SERVICES_DEVICE_SENSORS_SENSOR_MANAGER_CHROMEOS_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/threading/thread_checker.h" 9 #include "base/threading/thread_checker.h"
10 #include "chromeos/accelerometer/accelerometer_reader.h" 10 #include "chromeos/accelerometer/accelerometer_reader.h"
11 #include "chromeos/accelerometer/accelerometer_types.h" 11 #include "chromeos/accelerometer/accelerometer_types.h"
12 #include "device/sensors/device_sensor_export.h" 12 #include "services/device/public/cpp/sensors/device_motion_hardware_buffer.h"
13 #include "device/sensors/public/cpp/device_motion_hardware_buffer.h" 13 #include "services/device/public/cpp/sensors/device_orientation_hardware_buffer. h"
14 #include "device/sensors/public/cpp/device_orientation_hardware_buffer.h" 14 #include "services/device/sensors/device_sensor_export.h"
15 15
16 namespace device { 16 namespace device {
17 17
18 // Observes Chrome OS accelerometer sensors, and provides updated device 18 // Observes Chrome OS accelerometer sensors, and provides updated device
19 // orientation information. 19 // orientation information.
20 class DEVICE_SENSOR_EXPORT SensorManagerChromeOS 20 class DEVICE_SENSOR_EXPORT SensorManagerChromeOS
21 : public chromeos::AccelerometerReader::Observer { 21 : public chromeos::AccelerometerReader::Observer {
22 public: 22 public:
23 SensorManagerChromeOS(); 23 SensorManagerChromeOS();
24 ~SensorManagerChromeOS() override; 24 ~SensorManagerChromeOS() override;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 DeviceOrientationHardwareBuffer* orientation_buffer_; 59 DeviceOrientationHardwareBuffer* orientation_buffer_;
60 60
61 // Verify all work is done on the same thread. 61 // Verify all work is done on the same thread.
62 base::ThreadChecker thread_checker_; 62 base::ThreadChecker thread_checker_;
63 63
64 DISALLOW_COPY_AND_ASSIGN(SensorManagerChromeOS); 64 DISALLOW_COPY_AND_ASSIGN(SensorManagerChromeOS);
65 }; 65 };
66 66
67 } // namespace device 67 } // namespace device
68 68
69 #endif // DEVICE_SENSORS_SENSOR_MANAGER_CHROMEOS_H_ 69 #endif // SERVICES_DEVICE_SENSORS_SENSOR_MANAGER_CHROMEOS_H_
OLDNEW
« no previous file with comments | « services/device/sensors/sensor_manager_android_unittest.cc ('k') | services/device/sensors/sensor_manager_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698