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

Side by Side Diff: services/device/sensors/device_sensors_consts.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_DEVICE_SENSORS_CONSTS_H_ 5 #ifndef SERVICES_DEVICE_SENSORS_DEVICE_SENSORS_CONSTS_H_
6 #define DEVICE_SENSORS_DEVICE_SENSORS_CONSTS_H_ 6 #define SERVICES_DEVICE_SENSORS_DEVICE_SENSORS_CONSTS_H_
7 7
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 9
10 namespace device { 10 namespace device {
11 11
12 // Constants related to the Device {Motion|Orientation|Light} APIs. 12 // Constants related to the Device {Motion|Orientation|Light} APIs.
13 13
14 // A Java counterpart will be generated for this enum. 14 // A Java counterpart will be generated for this enum.
15 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.device.sensors 15 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.device.sensors
16 enum ConsumerType { 16 enum ConsumerType {
(...skipping 12 matching lines...) Expand all
29 base::Time::kMicrosecondsPerSecond / kDeviceSensorSamplingRateHz; 29 base::Time::kMicrosecondsPerSecond / kDeviceSensorSamplingRateHz;
30 30
31 // Corresponding |kDefaultLightPumpFrequencyHz| is in 31 // Corresponding |kDefaultLightPumpFrequencyHz| is in
32 // content/renderer/device_sensors/device_light_event_pump.cc. 32 // content/renderer/device_sensors/device_light_event_pump.cc.
33 const int kLightSensorSamplingRateHz = 5; 33 const int kLightSensorSamplingRateHz = 5;
34 const int kLightSensorIntervalMicroseconds = 34 const int kLightSensorIntervalMicroseconds =
35 base::Time::kMicrosecondsPerSecond / kLightSensorSamplingRateHz; 35 base::Time::kMicrosecondsPerSecond / kLightSensorSamplingRateHz;
36 36
37 } // namespace device 37 } // namespace device
38 38
39 #endif // DEVICE_SENSORS_DEVICE_SENSORS_CONSTS_H_ 39 #endif // SERVICES_DEVICE_SENSORS_DEVICE_SENSORS_CONSTS_H_
OLDNEW
« no previous file with comments | « services/device/sensors/device_sensor_service_unittest.cc ('k') | services/device/sensors/sensor_manager_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698