| Index: device/device_sensors/data_fetcher_shared_memory_android.cc
|
| diff --git a/content/browser/device_sensors/data_fetcher_shared_memory_android.cc b/device/device_sensors/data_fetcher_shared_memory_android.cc
|
| similarity index 71%
|
| rename from content/browser/device_sensors/data_fetcher_shared_memory_android.cc
|
| rename to device/device_sensors/data_fetcher_shared_memory_android.cc
|
| index e2676a14d72ef2efe62c5eb41c3334b5ab784c89..07e2e88b98e3aef41b72b00e3d35e047510d0651 100644
|
| --- a/content/browser/device_sensors/data_fetcher_shared_memory_android.cc
|
| +++ b/device/device_sensors/data_fetcher_shared_memory_android.cc
|
| @@ -2,13 +2,13 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "content/browser/device_sensors/data_fetcher_shared_memory.h"
|
| +#include "device/device_sensors/data_fetcher_shared_memory.h"
|
|
|
| #include "base/logging.h"
|
| -#include "content/browser/device_sensors/sensor_manager_android.h"
|
| -#include "content/common/device_sensors/device_light_hardware_buffer.h"
|
| -#include "content/common/device_sensors/device_motion_hardware_buffer.h"
|
| -#include "content/common/device_sensors/device_orientation_hardware_buffer.h"
|
| +#include "device/device_sensors/device_light_hardware_buffer.h"
|
| +#include "device/device_sensors/device_motion_hardware_buffer.h"
|
| +#include "device/device_sensors/device_orientation_hardware_buffer.h"
|
| +#include "device/device_sensors/sensor_manager_android.h"
|
|
|
| namespace content {
|
|
|
| @@ -23,12 +23,11 @@ bool DataFetcherSharedMemory::Start(ConsumerType consumer_type, void* buffer) {
|
|
|
| switch (consumer_type) {
|
| case CONSUMER_TYPE_MOTION:
|
| - return SensorManagerAndroid::GetInstance()->
|
| - StartFetchingDeviceMotionData(
|
| - static_cast<DeviceMotionHardwareBuffer*>(buffer));
|
| + return SensorManagerAndroid::GetInstance()->StartFetchingDeviceMotionData(
|
| + static_cast<DeviceMotionHardwareBuffer*>(buffer));
|
| case CONSUMER_TYPE_ORIENTATION:
|
| - return SensorManagerAndroid::GetInstance()->
|
| - StartFetchingDeviceOrientationData(
|
| + return SensorManagerAndroid::GetInstance()
|
| + ->StartFetchingDeviceOrientationData(
|
| static_cast<DeviceOrientationHardwareBuffer*>(buffer));
|
| case CONSUMER_TYPE_LIGHT:
|
| return SensorManagerAndroid::GetInstance()->StartFetchingDeviceLightData(
|
|
|