| 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 |
| 7 namespace bluetooth { | 8 namespace bluetooth { |
| 8 dictionary AdapterState { | 9 dictionary AdapterState { |
| 9 // The address of the adapter, in the format 'XX:XX:XX:XX:XX:XX'. | 10 // The address of the adapter, in the format 'XX:XX:XX:XX:XX:XX'. |
| 10 DOMString address; | 11 DOMString address; |
| 11 | 12 |
| 12 // The human-readable name of the adapter. | 13 // The human-readable name of the adapter. |
| 13 DOMString name; | 14 DOMString name; |
| 14 | 15 |
| 15 // Indicates whether or not the adapter has power. | 16 // Indicates whether or not the adapter has power. |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 interface Events { | 279 interface Events { |
| 279 // Fired when the state of the Bluetooth adapter changes. | 280 // Fired when the state of the Bluetooth adapter changes. |
| 280 // |state| : The new state of the adapter. | 281 // |state| : The new state of the adapter. |
| 281 static void onAdapterStateChanged(AdapterState state); | 282 static void onAdapterStateChanged(AdapterState state); |
| 282 | 283 |
| 283 // Fired when a connection has been made for a registered profile. | 284 // Fired when a connection has been made for a registered profile. |
| 284 // |socket| : The socket for the connection. | 285 // |socket| : The socket for the connection. |
| 285 static void onConnection(Socket socket); | 286 static void onConnection(Socket socket); |
| 286 }; | 287 }; |
| 287 }; | 288 }; |
| OLD | NEW |