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

Side by Side Diff: device/device_sensors/device_sensors.mojom

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
« no previous file with comments | « device/device_sensors/device_sensors.gyp ('k') | device/device_sensors/device_sensors_export.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 module device;
6
7 struct SharedMemory {
8 // For Windows: base::SharedMemoryHandle is defined as HANDLE.
9 uint64 mem_handle;
10 // For Posix: base::SharedMemoryHandle is defined as base::FileDescriptor.
11 int32 fd;
12 };
13
14 interface DeviceSensorsMotion {
15 // Request to start polling, overlapping calls will be ignored.
16 // process_id is caller process id to be used by DeviceSensorsMotion
17 // implementation to share memory handle for caller process.
18 // shared_mem transmits the shared memory handle back.
19 StartPolling(int32 process_id) => (SharedMemory shared_mem);
20 };
21
22 interface DeviceSensorsLight {
23 // Request to start polling, overlapping calls will be ignored.
24 // process_id is caller process id to be used by DeviceSensorsLight
25 // implementation to share memory handle for caller process.
26 // shared_mem transmits the shared memory handle back.
27 StartPolling(int32 process_id) => (SharedMemory shared_mem);
28 };
29
30 interface DeviceSensorsOrientation {
31 // Request to start polling, overlapping calls will be ignored.
32 // process_id is caller process id to be used by DeviceSensorsOrientation
33 // implementation to share memory handle for caller process.
34 // shared_mem transmits the shared memory handle back.
35 StartPolling(int32 process_id) => (SharedMemory shared_mem);
36 };
OLDNEW
« no previous file with comments | « device/device_sensors/device_sensors.gyp ('k') | device/device_sensors/device_sensors_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698