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

Unified Diff: device/generic_sensor/generic_sensor_consts.h

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 side-by-side diff with in-line comments
Download patch
Index: device/generic_sensor/generic_sensor_consts.h
diff --git a/device/generic_sensor/generic_sensor_consts.h b/device/generic_sensor/generic_sensor_consts.h
deleted file mode 100644
index ca9b45a4cd1ae78c73cfc9fcb1bc53970b23e9b2..0000000000000000000000000000000000000000
--- a/device/generic_sensor/generic_sensor_consts.h
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef DEVICE_GENERIC_SENSOR_GENERIC_SENSOR_CONSTS_H_
-#define DEVICE_GENERIC_SENSOR_GENERIC_SENSOR_CONSTS_H_
-
-#define _USE_MATH_DEFINES
-#include <math.h>
-
-namespace device {
-
-// Required for conversion from G/s^2 to m/s^2
-constexpr double kMeanGravity = 9.80665;
-
-// Required for conversion from deg to rad
-constexpr double kRadiansInDegrees = M_PI / 180.0;
-
-// Required for conversion from Gauss to uT.
-constexpr double kMicroteslaInGauss = 100.0;
-
-// Required for conversion from Milligauss to Microtesla.
-constexpr double kMicroteslaInMilligauss = 0.1;
-
-// Default rate for returning value of the ambient light sensor.
-constexpr int kDefaultAmbientLightFrequencyHz = 5;
-
-// Default rate for returning value of the accelerometer sensor.
-constexpr int kDefaultAccelerometerFrequencyHz = 10;
-
-// Default rate for returning value of the gyroscope sensor.
-constexpr int kDefaultGyroscopeFrequencyHz = 10;
-
-// Default rate for returning value of the magnetometer sensor.
-constexpr int kDefaultMagnetometerFrequencyHz = 10;
-
-} // namespace device
-
-#endif // DEVICE_GENERIC_SENSOR_GENERIC_SENSOR_CONSTS_H_
« no previous file with comments | « device/generic_sensor/fake_platform_sensor_provider.cc ('k') | device/generic_sensor/generic_sensor_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698