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 // Use the <code>chrome.bluetooth</code> API to connect to a Bluetooth | 5 // Use the <code>chrome.bluetooth</code> API to connect to a Bluetooth |
6 // device. All functions report failures via chrome.runtime.lastError. | 6 // device. All functions report failures via chrome.runtime.lastError. |
7 namespace bluetooth { | 7 namespace bluetooth { |
8 // Allocation authorities for Vendor IDs. | 8 // Allocation authorities for Vendor IDs. |
9 enum VendorIdSource {bluetooth, usb}; | 9 enum VendorIdSource {bluetooth, usb}; |
10 | 10 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 | 147 |
148 // Fired when information about a known Bluetooth device has changed. | 148 // Fired when information about a known Bluetooth device has changed. |
149 static void onDeviceChanged(Device device); | 149 static void onDeviceChanged(Device device); |
150 | 150 |
151 // Fired when a Bluetooth device that was previously discovered has been | 151 // Fired when a Bluetooth device that was previously discovered has been |
152 // out of range for long enough to be considered unavailable again, and | 152 // out of range for long enough to be considered unavailable again, and |
153 // when a paired device is removed. | 153 // when a paired device is removed. |
154 static void onDeviceRemoved(Device device); | 154 static void onDeviceRemoved(Device device); |
155 }; | 155 }; |
156 }; | 156 }; |
OLD | NEW |