Index: device/sensors/public/cpp/motion_data.h |
diff --git a/third_party/WebKit/public/platform/modules/device_orientation/WebDeviceMotionData.h b/device/sensors/public/cpp/motion_data.h |
similarity index 84% |
rename from third_party/WebKit/public/platform/modules/device_orientation/WebDeviceMotionData.h |
rename to device/sensors/public/cpp/motion_data.h |
index 4fbb253e6075eb86ff6fd05630cb25e41f8367a9..4e0a16ee8524721f9b47b841c5401d992c4505fb 100644 |
--- a/third_party/WebKit/public/platform/modules/device_orientation/WebDeviceMotionData.h |
+++ b/device/sensors/public/cpp/motion_data.h |
@@ -28,19 +28,18 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#ifndef WebDeviceMotionData_h |
-#define WebDeviceMotionData_h |
+#ifndef MotionData_h |
+#define MotionData_h |
-#include "public/platform/WebCommon.h" |
- |
-namespace blink { |
+namespace device { |
#pragma pack(push, 1) |
-class WebDeviceMotionData { |
+class MotionData { |
public: |
- BLINK_PLATFORM_EXPORT WebDeviceMotionData(); |
- ~WebDeviceMotionData() {} |
+ MotionData(); |
+ MotionData(const MotionData& other); |
blundell
2016/10/14 07:32:52
Had to define the default copy constructor out-of-
|
+ ~MotionData() {} |
double accelerationX; |
double accelerationY; |
@@ -71,12 +70,11 @@ class WebDeviceMotionData { |
bool allAvailableSensorsAreActive : 1; |
}; |
-static_assert(sizeof(WebDeviceMotionData) == |
- (10 * sizeof(double) + 2 * sizeof(char)), |
- "WebDeviceMotionData has wrong size"); |
+static_assert(sizeof(MotionData) == (10 * sizeof(double) + 2 * sizeof(char)), |
+ "MotionData has wrong size"); |
#pragma pack(pop) |
-} // namespace blink |
+} // namespace device |
-#endif // WebDeviceMotionData_h |
+#endif // MotionData_h |