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

Side by Side Diff: mojo/services/sensors/public/interfaces/sensors.mojom

Issue 1394303004: Move //mojo/services/X/public/... to //mojo/services/X/... (part 3). (Closed) Base URL: https://github.com/domokit/mojo.git@no_public_2-x-no_public_1
Patch Set: Created 5 years, 2 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 [DartPackage="mojo_services"]
6 module sensors;
7
8 enum SensorType {
9 ACCELEROMETER,
10 AMBIENT_TEMPERATURE,
11 GAME_ROTATION_VECTOR,
12 GEOMAGNETIC_ROTATION_VECTOR,
13 GRAVITY,
14 GYROSCOPE,
15 GYROSCOPE_UNCALIBRATED,
16 HEART_RATE,
17 LIGHT,
18 LINEAR_ACCELERATION,
19 MAGNETIC_FIELD,
20 MAGNETIC_FIELD_UNCALIBRATED,
21 PRESSURE,
22 PROXIMITY,
23 RELATIVE_HUMIDITY,
24 ROTATION_VECTOR,
25 SIGNIFICANT_MOTION,
26 STEP_COUNTER,
27 STEP_DETECTOR,
28 };
29
30 struct SensorData {
31 int32 accuracy;
32 int64 time_stamp;
33 array<float> values;
34 };
35
36 interface SensorListener {
37 OnAccuracyChanged(int32 accuracy);
38 OnSensorChanged(SensorData data);
39 };
40
41 interface SensorService {
42 AddListener(SensorType type, SensorListener listener);
43 };
OLDNEW
« no previous file with comments | « mojo/services/sensors/public/interfaces/BUILD.gn ('k') | mojo/services/service_registry/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698