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

Unified Diff: device/device_sensors/type_converters.h

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
« no previous file with comments | « device/device_sensors/sensor_manager_chromeos_unittest.cc ('k') | device/device_sensors/type_converters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/device_sensors/type_converters.h
diff --git a/device/device_sensors/type_converters.h b/device/device_sensors/type_converters.h
new file mode 100644
index 0000000000000000000000000000000000000000..fdecec14b8255946966f2890422443f87b773ff8
--- /dev/null
+++ b/device/device_sensors/type_converters.h
@@ -0,0 +1,27 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef DEVICE_DEVICE_SENSORS_TYPE_CONVERTERS_H_
+#define DEVICE_DEVICE_SENSORS_TYPE_CONVERTERS_H_
+
+#include "base/memory/shared_memory.h"
+#include "device/device_sensors/device_sensors.mojom.h"
+
+namespace mojo {
+
+template <>
+struct TypeConverter<base::SharedMemoryHandle, device::SharedMemoryPtr> {
+ static base::SharedMemoryHandle Convert(
+ const device::SharedMemoryPtr& mojo_mem_ptr);
+};
+
+template <>
+struct TypeConverter<device::SharedMemoryPtr, base::SharedMemoryHandle> {
+ static device::SharedMemoryPtr Convert(
+ const base::SharedMemoryHandle& handle);
+};
+
+} // namespace mojo
+
+#endif // DEVICE_DEVICE_SENSORS_TYPE_CONVERTERS_H_
« no previous file with comments | « device/device_sensors/sensor_manager_chromeos_unittest.cc ('k') | device/device_sensors/type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698