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

Side by Side 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, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef DEVICE_DEVICE_SENSORS_TYPE_CONVERTERS_H_
6 #define DEVICE_DEVICE_SENSORS_TYPE_CONVERTERS_H_
7
8 #include "base/memory/shared_memory.h"
9 #include "device/device_sensors/device_sensors.mojom.h"
10
11 namespace mojo {
12
13 template <>
14 struct TypeConverter<base::SharedMemoryHandle, device::SharedMemoryPtr> {
15 static base::SharedMemoryHandle Convert(
16 const device::SharedMemoryPtr& mojo_mem_ptr);
17 };
18
19 template <>
20 struct TypeConverter<device::SharedMemoryPtr, base::SharedMemoryHandle> {
21 static device::SharedMemoryPtr Convert(
22 const base::SharedMemoryHandle& handle);
23 };
24
25 } // namespace mojo
26
27 #endif // DEVICE_DEVICE_SENSORS_TYPE_CONVERTERS_H_
OLDNEW
« 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