OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Bluetooth API. | 5 // Use the <code>chrome.bluetooth</code> module to connect to a Bluetooth |
| 6 // device. |
6 | 7 |
| 8 [availability=dev] |
7 namespace bluetooth { | 9 namespace bluetooth { |
8 dictionary AdapterState { | 10 dictionary AdapterState { |
9 // The address of the adapter, in the format 'XX:XX:XX:XX:XX:XX'. | 11 // The address of the adapter, in the format 'XX:XX:XX:XX:XX:XX'. |
10 DOMString address; | 12 DOMString address; |
11 | 13 |
12 // The human-readable name of the adapter. | 14 // The human-readable name of the adapter. |
13 DOMString name; | 15 DOMString name; |
14 | 16 |
15 // Indicates whether or not the adapter has power. | 17 // Indicates whether or not the adapter has power. |
16 boolean powered; | 18 boolean powered; |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 static void stopDiscovery( | 231 static void stopDiscovery( |
230 optional ResultCallback callback); | 232 optional ResultCallback callback); |
231 }; | 233 }; |
232 | 234 |
233 interface Events { | 235 interface Events { |
234 // Fired when the state of the Bluetooth adapter changes. | 236 // Fired when the state of the Bluetooth adapter changes. |
235 // |state| : The new state of the adapter. | 237 // |state| : The new state of the adapter. |
236 static void onAdapterStateChanged(AdapterState state); | 238 static void onAdapterStateChanged(AdapterState state); |
237 }; | 239 }; |
238 }; | 240 }; |
OLD | NEW |