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

Side by Side Diff: device/sensors/sensor_factory.mojom

Issue 2051083002: WIP : Generic Sensor API implementation Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 4 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/sensors/sensor.mojom ('k') | mojo/edk/js/core.cc » ('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 2016 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.sensors;
6
7 import "sensor.mojom";
8
9 enum Result {
10 SUCCESS,
11 ERROR
12 };
13
14 enum ReportingMode {
15 ON_CHANGE,
16 CONTINUOUS
17 };
18
19 interface SensorFactory {
20 CreateSensor(SensorType type, Sensor& sensor_request) =>
21 (Result result, handle<shared_buffer>? shmem, uint64 offset, uint64 size, ReportingMode mode);
22 };
OLDNEW
« no previous file with comments | « device/sensors/sensor.mojom ('k') | mojo/edk/js/core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698