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

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

Issue 2896583005: Reland: Refactor DeviceMotionEventPump to use //device/generic_sensor instead of //device/sensors (Closed)
Patch Set: updated test code Created 3 years, 7 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 2bd49c34baad8cbf2828d6ea85eeafc90b442c6b..a546612cd44947bb291a07e60af221cd6349b60a 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.interval());
}
-DeviceMotionData* DeviceMotionData::Create(const device::MotionData& data) {
+DeviceMotionData* DeviceMotionData::Create(const WebDeviceMotionData& data) {
return DeviceMotionData::Create(
DeviceMotionData::Acceleration::Create(
data.has_acceleration_x, data.acceleration_x, data.has_acceleration_y,

Powered by Google App Engine
This is Rietveld 408576698