| OLD | NEW |
| 1 [ | 1 [ |
| 2 { | 2 { |
| 3 "namespace": "bluetoothPrivate", | 3 "namespace": "bluetoothPrivate", |
| 4 "description": " Use the <code>chrome.bluetoothPrivate</code> API to control
the Bluetooth\n adapter state and handle device pairing.", | 4 "description": " Use the <code>chrome.bluetoothPrivate</code> API to control
the Bluetooth\n adapter state and handle device pairing.", |
| 5 "compiler_options": { | 5 "compiler_options": { |
| 6 "implemented_in": "chrome/browser/extensions/api/bluetooth/bluetooth_priva
te_api.h" | 6 "implemented_in": "chrome/browser/extensions/api/bluetooth/bluetooth_priva
te_api.h" |
| 7 }, | 7 }, |
| 8 "functions": [ | 8 "functions": [ |
| 9 { | 9 { |
| 10 "name": "setAdapterState", |
| 11 "type": "function", |
| 10 "description": "Changes the state of the Bluetooth adapter.", | 12 "description": "Changes the state of the Bluetooth adapter.", |
| 11 "parameters": [ | 13 "parameters": [ |
| 12 { | 14 { |
| 13 "name": "adapterState", | 15 "name": "adapterState", |
| 14 "$ref": "NewAdapterState" | 16 "$ref": "NewAdapterState" |
| 15 }, | 17 }, |
| 16 { | 18 { |
| 19 "name": "callback", |
| 17 "type": "function", | 20 "type": "function", |
| 18 "name": "callback", | |
| 19 "parameters": [] | 21 "parameters": [] |
| 20 } | 22 } |
| 21 ], | 23 ] |
| 22 "name": "setAdapterState", | |
| 23 "type": "function" | |
| 24 }, | 24 }, |
| 25 { | 25 { |
| 26 "name": "setPairingResponse", |
| 27 "type": "function", |
| 26 "parameters": [ | 28 "parameters": [ |
| 27 { | 29 { |
| 28 "name": "options", | 30 "name": "options", |
| 29 "$ref": "SetPairingResponseOptions" | 31 "$ref": "SetPairingResponseOptions" |
| 30 }, | 32 }, |
| 31 { | 33 { |
| 34 "name": "callback", |
| 32 "type": "function", | 35 "type": "function", |
| 33 "name": "callback", | |
| 34 "parameters": [] | 36 "parameters": [] |
| 35 } | 37 } |
| 36 ], | 38 ] |
| 37 "name": "setPairingResponse", | |
| 38 "type": "function" | |
| 39 } | 39 } |
| 40 ], | 40 ], |
| 41 "events": [ | 41 "events": [ |
| 42 { | 42 { |
| 43 "name": "onPairing", |
| 44 "type": "function", |
| 43 "description": "Fired when a pairing event occurs.", | 45 "description": "Fired when a pairing event occurs.", |
| 44 "parameters": [ | 46 "parameters": [ |
| 45 { | 47 { |
| 48 "name": "pairingEvent", |
| 46 "description": "A pairing event.", | 49 "description": "A pairing event.", |
| 47 "name": "pairingEvent", | |
| 48 "$ref": "PairingEvent" | 50 "$ref": "PairingEvent" |
| 49 } | 51 } |
| 50 ], | 52 ], |
| 51 "options": | 53 "options": |
| 52 { | 54 { |
| 53 "maxListeners": 1 | 55 "maxListeners": 1 |
| 54 }, | 56 } |
| 55 "name": "onPairing", | |
| 56 "type": "function" | |
| 57 } | 57 } |
| 58 ], | 58 ], |
| 59 "types": [ | 59 "types": [ |
| 60 { | 60 { |
| 61 "type": "string", | 61 "type": "string", |
| 62 "id": "PairingEventType", | 62 "id": "PairingEventType", |
| 63 "description": "Events that can occur during pairing. The method used fo
r pairing varies depending on the capability of the two devices.", | 63 "description": "Events that can occur during pairing. The method used fo
r pairing varies depending on the capability of the two devices.", |
| 64 "enum": [ | 64 "enum": [ |
| 65 { | 65 { |
| 66 "name": "requestPincode", | 66 "name": "requestPincode", |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 "type": "integer" | 131 "type": "integer" |
| 132 } | 132 } |
| 133 } | 133 } |
| 134 }, | 134 }, |
| 135 { | 135 { |
| 136 "type": "object", | 136 "type": "object", |
| 137 "id": "NewAdapterState", | 137 "id": "NewAdapterState", |
| 138 "properties": { | 138 "properties": { |
| 139 "name": { | 139 "name": { |
| 140 "optional": true, | 140 "optional": true, |
| 141 "description": "The human-readable name of the adapter.", | |
| 142 "name": "name", | 141 "name": "name", |
| 143 "type": "string" | 142 "type": "string", |
| 143 "description": "The human-readable name of the adapter." |
| 144 }, | 144 }, |
| 145 "powered": { | 145 "powered": { |
| 146 "optional": true, | 146 "optional": true, |
| 147 "description": "Whether or not the adapter has power.", | |
| 148 "name": "powered", | 147 "name": "powered", |
| 149 "type": "boolean" | 148 "type": "boolean", |
| 149 "description": "Whether or not the adapter has power." |
| 150 }, | 150 }, |
| 151 "discoverable": { | 151 "discoverable": { |
| 152 "optional": true, | 152 "optional": true, |
| 153 "description": "Whether the adapter is discoverable by other devices
.", | |
| 154 "name": "discoverable", | 153 "name": "discoverable", |
| 155 "type": "boolean" | 154 "type": "boolean", |
| 155 "description": "Whether the adapter is discoverable by other devices
." |
| 156 } | 156 } |
| 157 } | 157 } |
| 158 }, | 158 }, |
| 159 { | 159 { |
| 160 "type": "object", | 160 "type": "object", |
| 161 "id": "SetPairingResponseOptions", | 161 "id": "SetPairingResponseOptions", |
| 162 "properties": { | 162 "properties": { |
| 163 "device": { | 163 "device": { |
| 164 "name": "device", | 164 "name": "device", |
| 165 "$ref": "bluetooth.Device", | 165 "$ref": "bluetooth.Device", |
| (...skipping 15 matching lines...) Expand all Loading... |
| 181 "optional": true, | 181 "optional": true, |
| 182 "name": "passkey", | 182 "name": "passkey", |
| 183 "type": "integer", | 183 "type": "integer", |
| 184 "description": "An integer between 0-999999 set in response to <code
>requestPasskey</code>." | 184 "description": "An integer between 0-999999 set in response to <code
>requestPasskey</code>." |
| 185 } | 185 } |
| 186 } | 186 } |
| 187 } | 187 } |
| 188 ] | 188 ] |
| 189 } | 189 } |
| 190 ] | 190 ] |
| OLD | NEW |