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

Unified Diff: device/sensors/data_fetcher_shared_memory_mac.cc

Issue 2646093002: Move //content/browser/device_sensor/ into device/sensors (Closed)
Patch Set: revert formatchanges Created 3 years, 11 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/sensors/data_fetcher_shared_memory_mac.cc
diff --git a/content/browser/device_sensors/data_fetcher_shared_memory_mac.cc b/device/sensors/data_fetcher_shared_memory_mac.cc
similarity index 95%
rename from content/browser/device_sensors/data_fetcher_shared_memory_mac.cc
rename to device/sensors/data_fetcher_shared_memory_mac.cc
index ab455aa6949b9185c7134899a173a8272b2f04ad..abaa975dd8279912368bde06e1f713cce9d540ce 100644
--- a/content/browser/device_sensors/data_fetcher_shared_memory_mac.cc
+++ b/device/sensors/data_fetcher_shared_memory_mac.cc
@@ -2,14 +2,14 @@
// 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/sensors/data_fetcher_shared_memory.h"
#include <stdint.h>
#include "base/logging.h"
#include "base/metrics/histogram_macros.h"
#include "base/single_thread_task_runner.h"
-#include "content/browser/device_sensors/ambient_light_mac.h"
+#include "device/sensors/ambient_light_mac.h"
#include "device/sensors/public/cpp/device_util_mac.h"
#include "third_party/sudden_motion_sensor/sudden_motion_sensor_mac.h"
@@ -17,8 +17,8 @@ namespace {
const double kMeanGravity = 9.80665;
-void FetchLight(content::AmbientLightSensor* sensor,
- content::DeviceLightHardwareBuffer* buffer) {
+void FetchLight(device::AmbientLightSensor* sensor,
blundell 2017/01/30 14:06:04 nit: just put the tests in the device namespace.
ke.he 2017/01/30 15:08:56 The fetchLight() function(s) here is not for test.
blundell 2017/01/30 15:12:35 Oops, I misread. Yes, just move the namespace devi
ke.he 2017/01/30 15:26:22 Thanks, Done:)
+ device::DeviceLightHardwareBuffer* buffer) {
DCHECK(sensor);
DCHECK(buffer);
// Macbook pro has 2 lux values, left and right, we take the average.
@@ -35,7 +35,7 @@ void FetchLight(content::AmbientLightSensor* sensor,
}
void FetchMotion(SuddenMotionSensor* sensor,
- content::DeviceMotionHardwareBuffer* buffer) {
+ device::DeviceMotionHardwareBuffer* buffer) {
DCHECK(sensor);
DCHECK(buffer);
@@ -55,7 +55,7 @@ void FetchMotion(SuddenMotionSensor* sensor,
}
void FetchOrientation(SuddenMotionSensor* sensor,
- content::DeviceOrientationHardwareBuffer* buffer) {
+ device::DeviceOrientationHardwareBuffer* buffer) {
DCHECK(sensor);
DCHECK(buffer);
@@ -113,7 +113,7 @@ void FetchOrientation(SuddenMotionSensor* sensor,
} // namespace
-namespace content {
+namespace device {
DataFetcherSharedMemory::DataFetcherSharedMemory() {
}
@@ -257,4 +257,4 @@ bool DataFetcherSharedMemory::Stop(ConsumerType consumer_type) {
return false;
}
-} // namespace content
+} // namespace device
« no previous file with comments | « device/sensors/data_fetcher_shared_memory_default.cc ('k') | device/sensors/data_fetcher_shared_memory_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698