| 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 import "sensor.mojom"; | 7 import "sensor.mojom"; |
| 8 | 8 |
| 9 struct SensorInitParams { | 9 struct SensorInitParams { |
| 10 // The shared memory handle used to fetch the sensor reading. | 10 // The shared memory handle used to fetch the sensor reading. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 // | 42 // |
| 43 // |init_params| on success will contain the SensorInitParams describing the | 43 // |init_params| on success will contain the SensorInitParams describing the |
| 44 // sensor details, | 44 // sensor details, |
| 45 // contains null on failure. | 45 // contains null on failure. |
| 46 // |client_request| on success contains a request to be bound by the client, | 46 // |client_request| on success contains a request to be bound by the client, |
| 47 // contains null on failure. | 47 // contains null on failure. |
| 48 GetSensor(SensorType type, Sensor& sensor_request) => ( | 48 GetSensor(SensorType type, Sensor& sensor_request) => ( |
| 49 SensorInitParams? init_params, | 49 SensorInitParams? init_params, |
| 50 SensorClient&? client_request); | 50 SensorClient&? client_request); |
| 51 }; | 51 }; |
| OLD | NEW |