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

Unified Diff: device/device_sensors/data_fetcher_shared_memory_android.cc

Issue 1164563003: Extract device_sensors to /device via Mojofication (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: 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(
« no previous file with comments | « device/device_sensors/data_fetcher_shared_memory.h ('k') | device/device_sensors/data_fetcher_shared_memory_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698