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.bluetooth.FooType'. | 8 // 'chrome.bluetooth.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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 * inquiryRssi: (number|undefined), | 75 * inquiryRssi: (number|undefined), |
76 * inquiryTxPower: (number|undefined) | 76 * inquiryTxPower: (number|undefined) |
77 * }} | 77 * }} |
78 * @see https://developer.chrome.com/extensions/bluetooth#type-Device | 78 * @see https://developer.chrome.com/extensions/bluetooth#type-Device |
79 */ | 79 */ |
80 chrome.bluetooth.Device; | 80 chrome.bluetooth.Device; |
81 | 81 |
82 /** | 82 /** |
83 * Get information about the Bluetooth adapter. | 83 * Get information about the Bluetooth adapter. |
84 * @param {function(!chrome.bluetooth.AdapterState):void} callback Called with | 84 * @param {function(!chrome.bluetooth.AdapterState):void} callback Called with |
85 * an AdapterState object describing the adapter state. | 85 * an AdapterState object describing the adapter state. |
86 * @see https://developer.chrome.com/extensions/bluetooth#method-getAdapterState | 86 * @see https://developer.chrome.com/extensions/bluetooth#method-getAdapterState |
87 */ | 87 */ |
88 chrome.bluetooth.getAdapterState = function(callback) {}; | 88 chrome.bluetooth.getAdapterState = function(callback) {}; |
89 | 89 |
90 /** | 90 /** |
91 * Get information about a Bluetooth device known to the system. | 91 * Get information about a Bluetooth device known to the system. |
92 * @param {string} deviceAddress Address of device to get. | 92 * @param {string} deviceAddress Address of device to get. |
93 * @param {function(!chrome.bluetooth.Device):void} callback Called with the | 93 * @param {function(!chrome.bluetooth.Device):void} callback Called with the |
94 * Device object describing the device. | 94 * Device object describing the device. |
95 * @see https://developer.chrome.com/extensions/bluetooth#method-getDevice | 95 * @see https://developer.chrome.com/extensions/bluetooth#method-getDevice |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 chrome.bluetooth.onDeviceChanged; | 147 chrome.bluetooth.onDeviceChanged; |
148 | 148 |
149 /** | 149 /** |
150 * Fired when a Bluetooth device that was previously discovered has been out of | 150 * Fired when a Bluetooth device that was previously discovered has been out of |
151 * range for long enough to be considered unavailable again, and when a paired | 151 * range for long enough to be considered unavailable again, and when a paired |
152 * device is removed. | 152 * device is removed. |
153 * @type {!ChromeEvent} | 153 * @type {!ChromeEvent} |
154 * @see https://developer.chrome.com/extensions/bluetooth#event-onDeviceRemoved | 154 * @see https://developer.chrome.com/extensions/bluetooth#event-onDeviceRemoved |
155 */ | 155 */ |
156 chrome.bluetooth.onDeviceRemoved; | 156 chrome.bluetooth.onDeviceRemoved; |
OLD | NEW |