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

Unified Diff: device/sensors/public/cpp/motion_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/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
« no previous file with comments | « device/sensors/public/cpp/device_orientation_hardware_buffer.h ('k') | device/sensors/public/cpp/motion_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698