Change log:e1ef7d4b6b..105c043148Full diff:e1ef7d4b6b..105c043148Roll chromium third_party ab9fbe29c9..6cd8e71424 Change log:ab9fbe29c9..6cd8e71424Changed dependencies: * src/base:03e1bc561f..95c3466bc7* src/build:bb306be407..7ccebdabd9* src/ios:48697bf3a1..a5c76c8f1d* src/testing:6440c4ea3a..7c8625bcae* src/third_party/catapult: https://chromium.googlesource.com/catapult.git/+log/f153b902be..44fc6f687b * src/third_party/depot_tools:1cabdc4643..a28b14f122* src/tools:66f1089d0c..7d0c51bb6eDEPS diff:e1ef7d4b6b..105c043148/DEPS No update to Clang. TBR=buildbot@webrtc.org, BUG=None CQ_INCLUDE_TRYBOTS=master.internal.tryserver.corp.webrtc:linux_internal NO_AUTOIMPORT_DEPS_CHECK=true Change-Id: Ie8d2986265a6a36889068a3f5916408456cdc09c Reviewed-on: https://webrtc-review.googlesource.com/84701 Reviewed-by: WebRTC Buildbot <buildbot@webrtc.org> Commit-Queue: WebRTC Buildbot <buildbot@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23713}
165 lines
4.3 KiB
JavaScript
165 lines
4.3 KiB
JavaScript
// Copyright 2015 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
// This file was generated by:
|
|
// ./tools/json_schema_compiler/compiler.py.
|
|
// NOTE: The format of types has changed. 'FooType' is now
|
|
// 'chrome.bluetoothPrivate.FooType'.
|
|
// Please run the closure compiler before committing changes.
|
|
// See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_compilation.md
|
|
|
|
// IMPORTANT:
|
|
// s/chrome.bluetoothPrivate.bluetooth.Device/chrome.bluetooth.Device/
|
|
|
|
/** @fileoverview Externs generated from namespace: bluetoothPrivate */
|
|
|
|
/**
|
|
* @const
|
|
*/
|
|
chrome.bluetoothPrivate = {};
|
|
|
|
/**
|
|
* @enum {string}
|
|
*/
|
|
chrome.bluetoothPrivate.PairingEventType = {
|
|
REQUEST_PINCODE: 'requestPincode',
|
|
DISPLAY_PINCODE: 'displayPincode',
|
|
REQUEST_PASSKEY: 'requestPasskey',
|
|
DISPLAY_PASSKEY: 'displayPasskey',
|
|
KEYS_ENTERED: 'keysEntered',
|
|
CONFIRM_PASSKEY: 'confirmPasskey',
|
|
REQUEST_AUTHORIZATION: 'requestAuthorization',
|
|
COMPLETE: 'complete',
|
|
};
|
|
|
|
/**
|
|
* @enum {string}
|
|
*/
|
|
chrome.bluetoothPrivate.ConnectResultType = {
|
|
ALREADY_CONNECTED: 'alreadyConnected',
|
|
AUTH_CANCELED: 'authCanceled',
|
|
AUTH_FAILED: 'authFailed',
|
|
AUTH_REJECTED: 'authRejected',
|
|
AUTH_TIMEOUT: 'authTimeout',
|
|
FAILED: 'failed',
|
|
IN_PROGRESS: 'inProgress',
|
|
SUCCESS: 'success',
|
|
UNKNOWN_ERROR: 'unknownError',
|
|
UNSUPPORTED_DEVICE: 'unsupportedDevice',
|
|
};
|
|
|
|
/**
|
|
* @enum {string}
|
|
*/
|
|
chrome.bluetoothPrivate.PairingResponse = {
|
|
CONFIRM: 'confirm',
|
|
REJECT: 'reject',
|
|
CANCEL: 'cancel',
|
|
};
|
|
|
|
/**
|
|
* @enum {string}
|
|
*/
|
|
chrome.bluetoothPrivate.TransportType = {
|
|
LE: 'le',
|
|
BREDR: 'bredr',
|
|
DUAL: 'dual',
|
|
};
|
|
|
|
/**
|
|
* @typedef {{
|
|
* pairing: !chrome.bluetoothPrivate.PairingEventType,
|
|
* device: !chrome.bluetooth.Device,
|
|
* pincode: (string|undefined),
|
|
* passkey: (number|undefined),
|
|
* enteredKey: (number|undefined)
|
|
* }}
|
|
*/
|
|
chrome.bluetoothPrivate.PairingEvent;
|
|
|
|
/**
|
|
* @typedef {{
|
|
* name: (string|undefined),
|
|
* powered: (boolean|undefined),
|
|
* discoverable: (boolean|undefined)
|
|
* }}
|
|
*/
|
|
chrome.bluetoothPrivate.NewAdapterState;
|
|
|
|
/**
|
|
* @typedef {{
|
|
* device: !chrome.bluetooth.Device,
|
|
* response: !chrome.bluetoothPrivate.PairingResponse,
|
|
* pincode: (string|undefined),
|
|
* passkey: (number|undefined)
|
|
* }}
|
|
*/
|
|
chrome.bluetoothPrivate.SetPairingResponseOptions;
|
|
|
|
/**
|
|
* @typedef {{
|
|
* transport: (!chrome.bluetoothPrivate.TransportType|undefined),
|
|
* uuids: ((string|!Array<string>)|undefined),
|
|
* rssi: (number|undefined),
|
|
* pathloss: (number|undefined)
|
|
* }}
|
|
*/
|
|
chrome.bluetoothPrivate.DiscoveryFilter;
|
|
|
|
/**
|
|
* Changes the state of the Bluetooth adapter.
|
|
* @param {!chrome.bluetoothPrivate.NewAdapterState} adapterState
|
|
* @param {function():void=} callback
|
|
*/
|
|
chrome.bluetoothPrivate.setAdapterState = function(adapterState, callback) {};
|
|
|
|
/**
|
|
* @param {!chrome.bluetoothPrivate.SetPairingResponseOptions} options
|
|
* @param {function():void=} callback
|
|
*/
|
|
chrome.bluetoothPrivate.setPairingResponse = function(options, callback) {};
|
|
|
|
/**
|
|
* Tears down all connections to the given device.
|
|
* @param {string} deviceAddress
|
|
* @param {function():void=} callback
|
|
*/
|
|
chrome.bluetoothPrivate.disconnectAll = function(deviceAddress, callback) {};
|
|
|
|
/**
|
|
* Forgets the given device.
|
|
* @param {string} deviceAddress
|
|
* @param {function():void=} callback
|
|
*/
|
|
chrome.bluetoothPrivate.forgetDevice = function(deviceAddress, callback) {};
|
|
|
|
/**
|
|
* Set or clear discovery filter.
|
|
* @param {!chrome.bluetoothPrivate.DiscoveryFilter} discoveryFilter
|
|
* @param {function():void=} 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
|
|
*/
|
|
chrome.bluetoothPrivate.connect = function(deviceAddress, callback) {};
|
|
|
|
/**
|
|
* Pairs the given device.
|
|
* @param {string} deviceAddress
|
|
* @param {function():void=} callback
|
|
*/
|
|
chrome.bluetoothPrivate.pair = function(deviceAddress, callback) {};
|
|
|
|
/**
|
|
* Fired when a pairing event occurs.
|
|
* @type {!ChromeEvent}
|
|
*/
|
|
chrome.bluetoothPrivate.onPairing;
|