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

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

Issue 2415083002: Move Device Sensors client files from Blink to //device/sensors client lib (Closed)
Patch Set: Revert licenses change for similarity Created 4 years, 2 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/third_party/WebKit/public/platform/modules/device_orientation/WebDeviceOrientationData.h b/device/sensors/public/cpp/orientation_data.h
similarity index 81%
rename from third_party/WebKit/public/platform/modules/device_orientation/WebDeviceOrientationData.h
rename to device/sensors/public/cpp/orientation_data.h
index 8c1fd8662fcc44aad960f197ebe9ea9abfda2226..0332c6bf4c5fad3ba0683d53a6600eb30912ec88 100644
--- a/third_party/WebKit/public/platform/modules/device_orientation/WebDeviceOrientationData.h
+++ b/device/sensors/public/cpp/orientation_data.h
@@ -28,19 +28,17 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebDeviceOrientationData_h
-#define WebDeviceOrientationData_h
+#ifndef OrientationData_h
+#define OrientationData_h
-#include "public/platform/WebCommon.h"
-
-namespace blink {
+namespace device {
#pragma pack(push, 1)
-class WebDeviceOrientationData {
+class OrientationData {
public:
- BLINK_PLATFORM_EXPORT WebDeviceOrientationData();
- ~WebDeviceOrientationData() {}
+ OrientationData();
+ ~OrientationData() {}
double alpha;
double beta;
@@ -55,12 +53,12 @@ class WebDeviceOrientationData {
bool allAvailableSensorsAreActive : 1;
};
-static_assert(sizeof(WebDeviceOrientationData) ==
+static_assert(sizeof(OrientationData) ==
(3 * sizeof(double) + 1 * sizeof(char)),
- "WebDeviceOrientationData has wrong size");
+ "OrientationData has wrong size");
#pragma pack(pop)
-} // namespace blink
+} // namespace device
-#endif // WebDeviceOrientationData_h
+#endif // OrientationData_h

Powered by Google App Engine
This is Rietveld 408576698