| 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 bluetooth.mojom; | 5 module bluetooth.mojom; |
| 6 | 6 |
| 7 import "device/bluetooth/public/interfaces/uuid.mojom"; | 7 import "device/bluetooth/public/interfaces/uuid.mojom"; |
| 8 | 8 |
| 9 // Values representing the possible properties of a characteristic, which | 9 // Values representing the possible properties of a characteristic, which |
| 10 // define how the characteristic can be used. Each of these properties serve | 10 // define how the characteristic can be used. Each of these properties serve |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 Disconnect(); | 63 Disconnect(); |
| 64 | 64 |
| 65 // Gets basic information about the device. Returns null, if no device is | 65 // Gets basic information about the device. Returns null, if no device is |
| 66 // available. | 66 // available. |
| 67 GetInfo() => (DeviceInfo? info); | 67 GetInfo() => (DeviceInfo? info); |
| 68 | 68 |
| 69 // Gets the GATT Services in this device's GATT Server. | 69 // Gets the GATT Services in this device's GATT Server. |
| 70 GetServices() => (array<ServiceInfo> services); | 70 GetServices() => (array<ServiceInfo> services); |
| 71 | 71 |
| 72 // Gets the GATT Characteristics in the GATT Service with |service_id|. | 72 // Gets the GATT Characteristics in the GATT Service with |service_id|. |
| 73 // If |characteristics| is null, an error occured while attempting to retrieve |
| 74 // the array of characteristics. If |characteristics| is empty, this simply |
| 75 // means that no characteristics were found. |
| 73 GetCharacteristics(string service_id) => | 76 GetCharacteristics(string service_id) => |
| 74 (array<CharacteristicInfo> characteristics); | 77 (array<CharacteristicInfo>? characteristics); |
| 75 }; | 78 }; |
| OLD | NEW |