| 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 arc.mojom; | 5 module arc.mojom; |
| 6 | 6 |
| 7 [Extensible] | 7 [Extensible] |
| 8 enum BluetoothAdapterState { | 8 enum BluetoothAdapterState { |
| 9 OFF = 0, | 9 OFF = 0, |
| 10 ON | 10 ON |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 struct BluetoothGattServiceID { | 158 struct BluetoothGattServiceID { |
| 159 BluetoothGattID id; | 159 BluetoothGattID id; |
| 160 uint8 is_primary; | 160 uint8 is_primary; |
| 161 }; | 161 }; |
| 162 | 162 |
| 163 struct BluetoothGattValue { | 163 struct BluetoothGattValue { |
| 164 BluetoothGattStatus status; | 164 BluetoothGattStatus status; |
| 165 array<uint8> value; | 165 array<uint8> value; |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 const int8 kUnknownPower = 127; |
| 169 |
| 168 // Copy from Bluetooth Assigned Numbers Document, Generic Access Profile | 170 // Copy from Bluetooth Assigned Numbers Document, Generic Access Profile |
| 169 // https://www.bluetooth.com/specifications/assigned-numbers/generic-access-prof
ile | 171 // https://www.bluetooth.com/specifications/assigned-numbers/generic-access-prof
ile |
| 170 [Extensible] | 172 [Extensible] |
| 171 enum BluetoothAdvertisingDataType { | 173 enum BluetoothAdvertisingDataType { |
| 172 DATA_TYPE_FLAGS = 0x01, | 174 DATA_TYPE_FLAGS = 0x01, |
| 173 DATA_TYPE_SERVICE_UUIDS_128_BIT_COMPLETE = 0x07, | 175 DATA_TYPE_SERVICE_UUIDS_128_BIT_COMPLETE = 0x07, |
| 174 DATA_TYPE_LOCAL_NAME_COMPLETE = 0x09, | 176 DATA_TYPE_LOCAL_NAME_COMPLETE = 0x09, |
| 175 DATA_TYPE_TX_POWER_LEVEL = 0x0A, | 177 DATA_TYPE_TX_POWER_LEVEL = 0x0A, |
| 176 DATA_TYPE_SERVICE_DATA = 0x16, | 178 DATA_TYPE_SERVICE_DATA = 0x16, |
| 177 DATA_TYPE_MANUFACTURER_SPECIFIC_DATA = 0xff, | 179 DATA_TYPE_MANUFACTURER_SPECIFIC_DATA = 0xff, |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 int32 attribute_handle, | 363 int32 attribute_handle, |
| 362 int32 offset, | 364 int32 offset, |
| 363 bool is_long) | 365 bool is_long) |
| 364 => (BluetoothGattStatus status, array<uint8> value); | 366 => (BluetoothGattStatus status, array<uint8> value); |
| 365 [MinVersion=3] RequestGattWrite@15(BluetoothAddress address, | 367 [MinVersion=3] RequestGattWrite@15(BluetoothAddress address, |
| 366 int32 attribute_handle, | 368 int32 attribute_handle, |
| 367 int32 offset, | 369 int32 offset, |
| 368 array<uint8> value) | 370 array<uint8> value) |
| 369 => (BluetoothGattStatus status); | 371 => (BluetoothGattStatus status); |
| 370 }; | 372 }; |
| OLD | NEW |