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

Unified Diff: device/sensors/device_sensor_host.cc

Issue 2646093002: Move //content/browser/device_sensor/ into device/sensors (Closed)
Patch Set: gn format & code rebase 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
« no previous file with comments | « device/sensors/device_sensor_host.h ('k') | device/sensors/device_sensor_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/sensors/device_sensor_host.cc
diff --git a/content/browser/device_sensors/device_sensor_host.cc b/device/sensors/device_sensor_host.cc
similarity index 74%
rename from content/browser/device_sensors/device_sensor_host.cc
rename to device/sensors/device_sensor_host.cc
index 06c898af88cad1e2f2d40b970df586861c1331db..c0260f4e310ee775b5414a1f2ffbb883468e3572 100644
--- a/content/browser/device_sensors/device_sensor_host.cc
+++ b/device/sensors/device_sensor_host.cc
@@ -2,14 +2,15 @@
// 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/device_sensor_host.h"
+#include "device/sensors/device_sensor_host.h"
#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
-#include "content/browser/device_sensors/device_sensor_service.h"
+#include "device/sensors/device_sensor_export.h"
+#include "device/sensors/device_sensor_service.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
-namespace content {
+namespace device {
template <typename MojoInterface, ConsumerType consumer_type>
void DeviceSensorHost<MojoInterface, consumer_type>::Create(
@@ -60,13 +61,15 @@ void DeviceSensorHost<MojoInterface,
DeviceSensorService::GetInstance()->RemoveConsumer(consumer_type);
}
-template class DeviceSensorHost<device::mojom::LightSensor,
- CONSUMER_TYPE_LIGHT>;
-template class DeviceSensorHost<device::mojom::MotionSensor,
- CONSUMER_TYPE_MOTION>;
-template class DeviceSensorHost<device::mojom::OrientationSensor,
- CONSUMER_TYPE_ORIENTATION>;
-template class DeviceSensorHost<device::mojom::OrientationAbsoluteSensor,
- CONSUMER_TYPE_ORIENTATION_ABSOLUTE>;
+template class DEVICE_SENSOR_EXPORT
+ DeviceSensorHost<device::mojom::LightSensor, CONSUMER_TYPE_LIGHT>;
+template class DEVICE_SENSOR_EXPORT
+ DeviceSensorHost<device::mojom::MotionSensor, CONSUMER_TYPE_MOTION>;
+template class DEVICE_SENSOR_EXPORT
+ DeviceSensorHost<device::mojom::OrientationSensor,
+ CONSUMER_TYPE_ORIENTATION>;
+template class DEVICE_SENSOR_EXPORT
+ DeviceSensorHost<device::mojom::OrientationAbsoluteSensor,
+ CONSUMER_TYPE_ORIENTATION_ABSOLUTE>;
-} // namespace content
+} // namespace device
« no previous file with comments | « device/sensors/device_sensor_host.h ('k') | device/sensors/device_sensor_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698