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

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

Issue 2763333002: Convert device sensors structs from Blink to Chromium naming (Closed)
Patch Set: Rebase Created 3 years, 9 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
« no previous file with comments | « device/sensors/data_fetcher_shared_memory_win.cc ('k') | device/sensors/public/cpp/orientation_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/sensors/public/cpp/motion_data.h
diff --git a/device/sensors/public/cpp/motion_data.h b/device/sensors/public/cpp/motion_data.h
index 42a34020929d57e4f021778c221696f06353a457..6b5d5abe62182a5cbf509fa4603f655fb9d16657 100644
--- a/device/sensors/public/cpp/motion_data.h
+++ b/device/sensors/public/cpp/motion_data.h
@@ -15,33 +15,33 @@ class MotionData {
MotionData(const MotionData& other);
~MotionData() {}
- double accelerationX;
- double accelerationY;
- double accelerationZ;
+ double acceleration_x;
+ double acceleration_y;
+ double acceleration_z;
- double accelerationIncludingGravityX;
- double accelerationIncludingGravityY;
- double accelerationIncludingGravityZ;
+ double acceleration_including_gravity_x;
+ double acceleration_including_gravity_y;
+ double acceleration_including_gravity_z;
- double rotationRateAlpha;
- double rotationRateBeta;
- double rotationRateGamma;
+ double rotation_rate_alpha;
+ double rotation_rate_beta;
+ double rotation_rate_gamma;
double interval;
- bool hasAccelerationX : 1;
- bool hasAccelerationY : 1;
- bool hasAccelerationZ : 1;
+ bool has_acceleration_x : 1;
+ bool has_acceleration_y : 1;
+ bool has_acceleration_z : 1;
- bool hasAccelerationIncludingGravityX : 1;
- bool hasAccelerationIncludingGravityY : 1;
- bool hasAccelerationIncludingGravityZ : 1;
+ bool has_acceleration_including_gravity_x : 1;
+ bool has_acceleration_including_gravity_y : 1;
+ bool has_acceleration_including_gravity_z : 1;
- bool hasRotationRateAlpha : 1;
- bool hasRotationRateBeta : 1;
- bool hasRotationRateGamma : 1;
+ bool has_rotation_rate_alpha : 1;
+ bool has_rotation_rate_beta : 1;
+ bool has_rotation_rate_gamma : 1;
- bool allAvailableSensorsAreActive : 1;
+ bool all_available_sensors_are_active : 1;
};
static_assert(sizeof(MotionData) == (10 * sizeof(double) + 2 * sizeof(char)),
« no previous file with comments | « device/sensors/data_fetcher_shared_memory_win.cc ('k') | device/sensors/public/cpp/orientation_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698