Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // This file was generated by: | 5 // This file was generated by: |
| 6 // ./tools/json_schema_compiler/compiler.py. | 6 // ./tools/json_schema_compiler/compiler.py. |
| 7 // NOTE: The format of types has changed. 'FooType' is now | 7 // NOTE: The format of types has changed. 'FooType' is now |
| 8 // 'chrome.bluetoothPrivate.FooType'. | 8 // 'chrome.bluetoothPrivate.FooType'. |
| 9 // Please run the closure compiler before committing changes. | 9 // Please run the closure compiler before committing changes. |
| 10 // See https://code.google.com/p/chromium/wiki/ClosureCompilation. | 10 // See https://code.google.com/p/chromium/wiki/ClosureCompilation. |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 32 CONFIRM_PASSKEY: 'confirmPasskey', | 32 CONFIRM_PASSKEY: 'confirmPasskey', |
| 33 REQUEST_AUTHORIZATION: 'requestAuthorization', | 33 REQUEST_AUTHORIZATION: 'requestAuthorization', |
| 34 COMPLETE: 'complete', | 34 COMPLETE: 'complete', |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 /** | 37 /** |
| 38 * @enum {string} | 38 * @enum {string} |
| 39 * @see https://developer.chrome.com/extensions/bluetoothPrivate#type-ConnectRes ultType | 39 * @see https://developer.chrome.com/extensions/bluetoothPrivate#type-ConnectRes ultType |
| 40 */ | 40 */ |
| 41 chrome.bluetoothPrivate.ConnectResultType = { | 41 chrome.bluetoothPrivate.ConnectResultType = { |
| 42 SUCCESS: 'success', | 42 SUCCESS: 'success', |
|
scheib
2015/11/26 00:02:51
Sort alphabetically.
Kai Jiang
2015/11/29 10:40:52
Done.
| |
| 43 UNKNOWN_ERROR: 'unknownError', | 43 UNKNOWN_ERROR: 'unknownError', |
| 44 IN_PROGRESS: 'inProgress', | 44 IN_PROGRESS: 'inProgress', |
| 45 ALREADY_CONNECTED: 'alreadyConnected', | 45 ALREADY_CONNECTED: 'alreadyConnected', |
| 46 FAILED: 'failed', | 46 FAILED: 'failed', |
| 47 AUTH_FAILED: 'authFailed', | 47 AUTH_FAILED: 'authFailed', |
| 48 AUTH_CANCELED: 'authCanceled', | 48 AUTH_CANCELED: 'authCanceled', |
| 49 AUTH_REJECTED: 'authRejected', | 49 AUTH_REJECTED: 'authRejected', |
| 50 AUTH_TIMEOUT: 'authTimeout', | 50 AUTH_TIMEOUT: 'authTimeout', |
| 51 UNSUPPORTED_DEVICE: 'unsupportedDevice', | 51 UNSUPPORTED_DEVICE: 'unsupportedDevice', |
| 52 ATTRIBUTE_LENGTH_INVALID: 'attributeLengthInvalid', | |
| 53 CONNECTION_CONGESTED: 'connectionCongested', | |
| 54 INSUFFICIENT_ENCRYPTION: 'insufficientEncryption', | |
| 55 OFFSET_INVALID: 'offsetInvalid', | |
| 56 READ_FAILED: 'readFailed', | |
|
scheib
2015/11/26 00:02:51
Use 'not permitted' instead of 'failed'.
Kai Jiang
2015/11/29 10:40:52
Done.
| |
| 57 REQUEST_NOT_SUPPORTED: 'requestNotSupported', | |
| 58 WRITE_FAILED: 'writeFailed', | |
|
scheib
2015/11/26 00:02:51
Use 'not permitted' instead of 'failed'.
Kai Jiang
2015/11/29 10:40:52
Done.
| |
| 52 }; | 59 }; |
| 53 | 60 |
| 54 /** | 61 /** |
| 55 * @enum {string} | 62 * @enum {string} |
| 56 * @see https://developer.chrome.com/extensions/bluetoothPrivate#type-PairingRes ponse | 63 * @see https://developer.chrome.com/extensions/bluetoothPrivate#type-PairingRes ponse |
| 57 */ | 64 */ |
| 58 chrome.bluetoothPrivate.PairingResponse = { | 65 chrome.bluetoothPrivate.PairingResponse = { |
| 59 CONFIRM: 'confirm', | 66 CONFIRM: 'confirm', |
| 60 REJECT: 'reject', | 67 REJECT: 'reject', |
| 61 CANCEL: 'cancel', | 68 CANCEL: 'cancel', |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 171 * @see https://developer.chrome.com/extensions/bluetoothPrivate#method-pair | 178 * @see https://developer.chrome.com/extensions/bluetoothPrivate#method-pair |
| 172 */ | 179 */ |
| 173 chrome.bluetoothPrivate.pair = function(deviceAddress, callback) {}; | 180 chrome.bluetoothPrivate.pair = function(deviceAddress, callback) {}; |
| 174 | 181 |
| 175 /** | 182 /** |
| 176 * Fired when a pairing event occurs. | 183 * Fired when a pairing event occurs. |
| 177 * @type {!ChromeEvent} | 184 * @type {!ChromeEvent} |
| 178 * @see https://developer.chrome.com/extensions/bluetoothPrivate#event-onPairing | 185 * @see https://developer.chrome.com/extensions/bluetoothPrivate#event-onPairing |
| 179 */ | 186 */ |
| 180 chrome.bluetoothPrivate.onPairing; | 187 chrome.bluetoothPrivate.onPairing; |
| OLD | NEW |