| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 device.mojom; | 5 module device.mojom; |
| 6 | 6 |
| 7 // Types of supported sensors | 7 // Types of supported sensors |
| 8 // When adding new sensor type, update the documentation of sensor data values | 8 // When adding new sensor type, update the documentation of sensor data values |
| 9 // in SensorReading struct at sensor_reading.h file. | 9 // in SensorReading struct at sensor_reading.h file. |
| 10 enum SensorType { | 10 enum SensorType { |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 // Interface that client of the Sensor interface must implement to observe | 82 // Interface that client of the Sensor interface must implement to observe |
| 83 // sensor reading changes and error conditions. | 83 // sensor reading changes and error conditions. |
| 84 interface SensorClient { | 84 interface SensorClient { |
| 85 // Signals SensorClient when there is an error. | 85 // Signals SensorClient when there is an error. |
| 86 RaiseError(); | 86 RaiseError(); |
| 87 | 87 |
| 88 // Signals SensorClient when reading has been changed (only for sensors with | 88 // Signals SensorClient when reading has been changed (only for sensors with |
| 89 // ReportingMode::ON_CHANGE). | 89 // ReportingMode::ON_CHANGE). |
| 90 SensorReadingChanged(); | 90 SensorReadingChanged(); |
| 91 }; | 91 }; |
| OLD | NEW |