OLD | NEW |
(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 }; |
OLD | NEW |