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

Unified Diff: device/sensors/public/cpp/orientation_data.h

Issue 2885203004: Refactor content/renderer/device_sensors to use device/generic_sensor instead of device/sensors (Closed)
Patch Set: updated content/renderer/BUILD.gn 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/sensors/public/cpp/orientation_data.h
diff --git a/device/sensors/public/cpp/orientation_data.h b/device/sensors/public/cpp/orientation_data.h
deleted file mode 100644
index 22cc9652ece66e57473c464becb44032e759949f..0000000000000000000000000000000000000000
--- a/device/sensors/public/cpp/orientation_data.h
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2013 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_SENSORS_PUBLIC_CPP_ORIENTATION_DATA_H_
-#define DEVICE_SENSORS_PUBLIC_CPP_ORIENTATION_DATA_H_
-
-namespace device {
-
-#pragma pack(push, 1)
-
-class OrientationData {
- public:
- OrientationData();
- ~OrientationData() {}
-
- double alpha;
- double beta;
- double gamma;
-
- bool has_alpha : 1;
- bool has_beta : 1;
- bool has_gamma : 1;
-
- bool absolute : 1;
-
- bool all_available_sensors_are_active : 1;
-};
-
-static_assert(sizeof(OrientationData) ==
- (3 * sizeof(double) + 1 * sizeof(char)),
- "OrientationData has wrong size");
-
-#pragma pack(pop)
-
-} // namespace device
-
-#endif // DEVICE_SENSORS_PUBLIC_CPP_ORIENTATION_DATA_H_

Powered by Google App Engine
This is Rietveld 408576698