| 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 // Bluetooth API. |
| 6 // TODO(bryeung): mark this API as ChromeOS only (see crbug.com/119398). | 6 // TODO(bryeung): mark this API as ChromeOS only (see crbug.com/119398). |
| 7 | 7 |
| 8 [nodoc] namespace experimental.bluetooth { | 8 [nodoc] namespace experimental.bluetooth { |
| 9 dictionary Device { | 9 dictionary Device { |
| 10 DOMString address; | 10 DOMString address; |
| 11 DOMString name; | 11 DOMString name; |
| 12 }; | 12 }; |
| 13 | 13 |
| 14 dictionary Socket { | 14 dictionary Socket { |
| 15 Device device; |
| 16 DOMString serviceUUID; |
| 15 long id; | 17 long id; |
| 16 }; | 18 }; |
| 17 | 19 |
| 18 // TODO(bryeung): This is a temporary hack until Blobs are supported | 20 // TODO(bryeung): This is a temporary hack until Blobs are supported |
| 19 dictionary Blob { | 21 dictionary Blob { |
| 20 DOMString data; | 22 DOMString data; |
| 21 }; | 23 }; |
| 22 | 24 |
| 23 dictionary OutOfBandPairingData { | 25 dictionary OutOfBandPairingData { |
| 24 // Simple Pairing Hash C | 26 // Simple Pairing Hash C |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 interface Events { | 112 interface Events { |
| 111 // Fired when the availability of bluetooth on the system changes. | 113 // Fired when the availability of bluetooth on the system changes. |
| 112 // |available| : True if bluetooth is available, false otherwise. | 114 // |available| : True if bluetooth is available, false otherwise. |
| 113 static void onAvailabilityChanged(boolean available); | 115 static void onAvailabilityChanged(boolean available); |
| 114 | 116 |
| 115 // Fired when the power state of bluetooth on the system changes. | 117 // Fired when the power state of bluetooth on the system changes. |
| 116 // |powered| : True if bluetooth is powered, false otherwise. | 118 // |powered| : True if bluetooth is powered, false otherwise. |
| 117 static void onPowerChanged(boolean has_power); | 119 static void onPowerChanged(boolean has_power); |
| 118 }; | 120 }; |
| 119 }; | 121 }; |
| OLD | NEW |