| 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 // Next MinVersion: 7 | 5 // Next MinVersion: 7 |
| 6 | 6 |
| 7 module arc.mojom; | 7 module arc.mojom; |
| 8 | 8 |
| 9 import "mojo/common/values.mojom"; | 9 import "mojo/common/values.mojom"; |
| 10 | 10 |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 * A BluetoothSdpAttribute contains either a value or a sequence, where a | 265 * A BluetoothSdpAttribute contains either a value or a sequence, where a |
| 266 * sequence is an array of BluetoothSdpAttribute. A multi-layered attribute | 266 * sequence is an array of BluetoothSdpAttribute. A multi-layered attribute |
| 267 * design is intended. Note BluetoothSdpAttribute supports up to depth 32 for | 267 * design is intended. Note BluetoothSdpAttribute supports up to depth 32 for |
| 268 * the attribute with multi-layer sequences. The attributes within a sequence | 268 * the attribute with multi-layer sequences. The attributes within a sequence |
| 269 * which has the depth beyond the maximum supported depth will be invalidated | 269 * which has the depth beyond the maximum supported depth will be invalidated |
| 270 * and ignored. | 270 * and ignored. |
| 271 */ | 271 */ |
| 272 struct BluetoothSdpAttribute { | 272 struct BluetoothSdpAttribute { |
| 273 BluetoothSdpAttributeType type; | 273 BluetoothSdpAttributeType type; |
| 274 uint32 type_size; | 274 uint32 type_size; |
| 275 mojo.common.mojom.ListValue value; | 275 mojo.common.mojom.LegacyListValue value; |
| 276 array<BluetoothSdpAttribute> sequence; | 276 array<BluetoothSdpAttribute> sequence; |
| 277 }; | 277 }; |
| 278 | 278 |
| 279 struct BluetoothSdpRecord { | 279 struct BluetoothSdpRecord { |
| 280 map<uint16, BluetoothSdpAttribute> attrs; | 280 map<uint16, BluetoothSdpAttribute> attrs; |
| 281 }; | 281 }; |
| 282 | 282 |
| 283 struct BluetoothCreateSdpRecordResult { | 283 struct BluetoothCreateSdpRecordResult { |
| 284 BluetoothStatus status; | 284 BluetoothStatus status; |
| 285 uint32 service_handle; | 285 uint32 service_handle; |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 int32 offset, | 448 int32 offset, |
| 449 array<uint8> value) | 449 array<uint8> value) |
| 450 => (BluetoothGattStatus status); | 450 => (BluetoothGattStatus status); |
| 451 | 451 |
| 452 // Bluetooth SDP function | 452 // Bluetooth SDP function |
| 453 [MinVersion=5] OnGetSdpRecords@17(BluetoothStatus status, | 453 [MinVersion=5] OnGetSdpRecords@17(BluetoothStatus status, |
| 454 BluetoothAddress remove_addr, | 454 BluetoothAddress remove_addr, |
| 455 BluetoothUUID target_uuid, | 455 BluetoothUUID target_uuid, |
| 456 array<BluetoothSdpRecord> records); | 456 array<BluetoothSdpRecord> records); |
| 457 }; | 457 }; |
| OLD | NEW |