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

Unified Diff: content/renderer/device_sensors/device_motion_event_pump.cc

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: content/renderer/device_sensors/device_motion_event_pump.cc
diff --git a/content/renderer/device_sensors/device_motion_event_pump.cc b/content/renderer/device_sensors/device_motion_event_pump.cc
index d8b4f1790575ec0f35b4dad5bfcde05a31c73290..2f7392a88b89bce60607c7c23c77651b6bfa5b7a 100644
--- a/content/renderer/device_sensors/device_motion_event_pump.cc
+++ b/content/renderer/device_sensors/device_motion_event_pump.cc
@@ -19,7 +19,7 @@ DeviceMotionEventPump::~DeviceMotionEventPump() {
void DeviceMotionEventPump::FireEvent() {
DCHECK(listener());
- blink::WebDeviceMotionData data;
+ device::MotionData data;
if (reader_->GetLatestData(&data) && data.allAvailableSensorsAreActive)
listener()->didChangeDeviceMotion(data);
}
@@ -31,8 +31,7 @@ bool DeviceMotionEventPump::InitializeReader(base::SharedMemoryHandle handle) {
}
void DeviceMotionEventPump::SendFakeDataForTesting(void* fake_data) {
- blink::WebDeviceMotionData data =
- *static_cast<blink::WebDeviceMotionData*>(fake_data);
+ device::MotionData data = *static_cast<device::MotionData*>(fake_data);
listener()->didChangeDeviceMotion(data);
}

Powered by Google App Engine
This is Rietveld 408576698