| Index: third_party/closure_compiler/externs/bluetooth_private.js
|
| diff --git a/third_party/closure_compiler/externs/bluetooth_private.js b/third_party/closure_compiler/externs/bluetooth_private.js
|
| index 68fbabe91468febd4ffa6171e00a1bc28c9049b8..bdf706bee2a1dd461239af5d7b6f4628853e0e71 100644
|
| --- a/third_party/closure_compiler/externs/bluetooth_private.js
|
| +++ b/third_party/closure_compiler/externs/bluetooth_private.js
|
| @@ -10,7 +10,7 @@
|
| // See https://code.google.com/p/chromium/wiki/ClosureCompilation.
|
|
|
| // IMPORTANT:
|
| -// s/chrome.bluetoothPrivate.bluetooth.device/chrome.bluetooth.device/
|
| +// s/chrome.bluetoothPrivate.bluetooth.Device/chrome.bluetooth.Device/
|
|
|
| /** @fileoverview Externs generated from namespace: bluetoothPrivate */
|
|
|
| @@ -36,6 +36,23 @@ chrome.bluetoothPrivate.PairingEventType = {
|
|
|
| /**
|
| * @enum {string}
|
| + * @see https://developer.chrome.com/extensions/bluetoothPrivate#type-ConnectResultType
|
| + */
|
| +chrome.bluetoothPrivate.ConnectResultType = {
|
| + SUCCESS: 'success',
|
| + UNKNOWN_ERROR: 'unknownError',
|
| + IN_PROGRESS: 'inProgress',
|
| + ALREADY_CONNECTED: 'alreadyConnected',
|
| + FAILED: 'failed',
|
| + AUTH_FAILED: 'authFailed',
|
| + AUTH_CANCELED: 'authCanceled',
|
| + AUTH_REJECTED: 'authRejected',
|
| + AUTH_TIMEOUT: 'authTimeout',
|
| + UNSUPPORTED_DEVICE: 'unsupportedDevice',
|
| +};
|
| +
|
| +/**
|
| + * @enum {string}
|
| * @see https://developer.chrome.com/extensions/bluetoothPrivate#type-PairingResponse
|
| */
|
| chrome.bluetoothPrivate.PairingResponse = {
|
| @@ -45,6 +62,16 @@ chrome.bluetoothPrivate.PairingResponse = {
|
| };
|
|
|
| /**
|
| + * @enum {string}
|
| + * @see https://developer.chrome.com/extensions/bluetoothPrivate#type-TransportType
|
| + */
|
| +chrome.bluetoothPrivate.TransportType = {
|
| + LE: 'le',
|
| + BREDR: 'bredr',
|
| + DUAL: 'dual',
|
| +};
|
| +
|
| +/**
|
| * @typedef {{
|
| * pairing: !chrome.bluetoothPrivate.PairingEventType,
|
| * device: !chrome.bluetooth.Device,
|
| @@ -78,16 +105,6 @@ chrome.bluetoothPrivate.NewAdapterState;
|
| chrome.bluetoothPrivate.SetPairingResponseOptions;
|
|
|
| /**
|
| - * @enum {string}
|
| - * @see https://developer.chrome.com/extensions/bluetoothPrivate#type-TransportType
|
| - */
|
| -chrome.bluetoothPrivate.TransportType = {
|
| - LE: 'le',
|
| - BREDR: 'bredr',
|
| - DUAL: 'dual',
|
| -};
|
| -
|
| -/**
|
| * @typedef {{
|
| * transport: (!chrome.bluetoothPrivate.TransportType|undefined),
|
| * uuids: ((string|!Array<string>)|undefined),
|
| @@ -130,6 +147,16 @@ chrome.bluetoothPrivate.disconnectAll = function(deviceAddress, callback) {};
|
| chrome.bluetoothPrivate.setDiscoveryFilter = function(discoveryFilter, callback) {};
|
|
|
| /**
|
| + * Connects to the given device. This will only throw an error if the device
|
| + * address is invalid or the device is already connected. Otherwise this will
|
| + * succeed and invoke |callback| with ConnectResultType.
|
| + * @param {string} deviceAddress
|
| + * @param {function(!chrome.bluetoothPrivate.ConnectResultType):void=} callback
|
| + * @see https://developer.chrome.com/extensions/bluetoothPrivate#method-connect
|
| + */
|
| +chrome.bluetoothPrivate.connect = function(deviceAddress, callback) {};
|
| +
|
| +/**
|
| * Pairs the given device.
|
| * @param {string} deviceAddress
|
| * @param {function():void=} callback
|
|
|