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

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

Issue 1093033002: Add sensors application to mojo (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Remove extra constructor Created 5 years, 8 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 | « mojo/services/sensors/public/interfaces/BUILD.gn ('k') | services/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module sensors; 5 module sensors;
6 6
7 enum SensorType { 7 enum SensorType {
8 ACCELEROMETER, 8 ACCELEROMETER,
9 AMBIENT_TEMPERATURE, 9 AMBIENT_TEMPERATURE,
10 GAME_ROTATION_VECTOR, 10 GAME_ROTATION_VECTOR,
(...skipping 22 matching lines...) Expand all
33 }; 33 };
34 34
35 interface SensorListener { 35 interface SensorListener {
36 OnAccuracyChanged(int32 accuracy); 36 OnAccuracyChanged(int32 accuracy);
37 OnSensorChanged(SensorData data); 37 OnSensorChanged(SensorData data);
38 }; 38 };
39 39
40 interface SensorService { 40 interface SensorService {
41 AddListener(SensorType type, SensorListener listener); 41 AddListener(SensorType type, SensorListener listener);
42 }; 42 };
OLDNEW
« no previous file with comments | « mojo/services/sensors/public/interfaces/BUILD.gn ('k') | services/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698