| 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 | |
| 5 // Bluetooth API. | |
| 6 // TODO(bryeung): mark this API as ChromeOS only (see crbug.com/119398). | 4 // TODO(bryeung): mark this API as ChromeOS only (see crbug.com/119398). |
| 7 | 5 |
| 8 [nodoc] namespace experimental.bluetooth { | 6 [nodoc] namespace experimental.bluetooth { |
| 9 dictionary Device { | 7 dictionary Device { |
| 10 DOMString address; | 8 DOMString address; |
| 11 DOMString name; | 9 DOMString name; |
| 12 }; | 10 }; |
| 13 | 11 |
| 14 dictionary Socket { | 12 dictionary Socket { |
| 15 Device device; | 13 Device device; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 interface Events { | 104 interface Events { |
| 107 // Fired when the availability of bluetooth on the system changes. | 105 // Fired when the availability of bluetooth on the system changes. |
| 108 // |available| : True if bluetooth is available, false otherwise. | 106 // |available| : True if bluetooth is available, false otherwise. |
| 109 static void onAvailabilityChanged(boolean available); | 107 static void onAvailabilityChanged(boolean available); |
| 110 | 108 |
| 111 // Fired when the power state of bluetooth on the system changes. | 109 // Fired when the power state of bluetooth on the system changes. |
| 112 // |powered| : True if bluetooth is powered, false otherwise. | 110 // |powered| : True if bluetooth is powered, false otherwise. |
| 113 static void onPowerChanged(boolean has_power); | 111 static void onPowerChanged(boolean has_power); |
| 114 }; | 112 }; |
| 115 }; | 113 }; |
| OLD | NEW |