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

Unified Diff: third_party/WebKit/Source/modules/device_orientation/DeviceMotionData.cpp

Issue 2415083002: Move Device Sensors client files from Blink to //device/sensors client lib (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
Index: third_party/WebKit/Source/modules/device_orientation/DeviceMotionData.cpp
diff --git a/third_party/WebKit/Source/modules/device_orientation/DeviceMotionData.cpp b/third_party/WebKit/Source/modules/device_orientation/DeviceMotionData.cpp
index e0965a8dfc06bb45cba9722f27abbfc6564632ba..1d299ce4749040c0dfb8b64969c11c99e10ddc05 100644
--- a/third_party/WebKit/Source/modules/device_orientation/DeviceMotionData.cpp
+++ b/third_party/WebKit/Source/modules/device_orientation/DeviceMotionData.cpp
@@ -25,10 +25,10 @@
#include "modules/device_orientation/DeviceMotionData.h"
+#include "device/sensors/public/cpp/motion_data.h"
#include "modules/device_orientation/DeviceAccelerationInit.h"
#include "modules/device_orientation/DeviceMotionEventInit.h"
#include "modules/device_orientation/DeviceRotationRateInit.h"
-#include "public/platform/modules/device_orientation/WebDeviceMotionData.h"
namespace blink {
@@ -126,7 +126,7 @@ DeviceMotionData* DeviceMotionData::create(const DeviceMotionEventInit& init) {
init.hasInterval(), init.hasInterval() ? init.interval() : 0);
}
-DeviceMotionData* DeviceMotionData::create(const WebDeviceMotionData& data) {
+DeviceMotionData* DeviceMotionData::create(const device::MotionData& data) {
return DeviceMotionData::create(
DeviceMotionData::Acceleration::create(
data.hasAccelerationX, data.accelerationX, data.hasAccelerationY,

Powered by Google App Engine
This is Rietveld 408576698