| 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 [use_movable_types=true] 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 |
| 11 // Common device types recognized by Chrome. | 11 // Common device types recognized by Chrome. |
| 12 enum DeviceType {computer, phone, modem, audio, carAudio, video, peripheral, | 12 enum DeviceType {computer, phone, modem, audio, carAudio, video, peripheral, |
| 13 joystick, gamepad, keyboard, mouse, tablet, | 13 joystick, gamepad, keyboard, mouse, tablet, |
| 14 keyboardMouseCombo}; | 14 keyboardMouseCombo}; |
| 15 | 15 |
| 16 // Information about the state of the Bluetooth adapter. | 16 // Information about the state of the Bluetooth adapter. |
| 17 dictionary AdapterState { | 17 dictionary AdapterState { |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 | 146 |
| 147 // Fired when information about a known Bluetooth device has changed. | 147 // Fired when information about a known Bluetooth device has changed. |
| 148 static void onDeviceChanged(Device device); | 148 static void onDeviceChanged(Device device); |
| 149 | 149 |
| 150 // Fired when a Bluetooth device that was previously discovered has been | 150 // Fired when a Bluetooth device that was previously discovered has been |
| 151 // out of range for long enough to be considered unavailable again, and | 151 // out of range for long enough to be considered unavailable again, and |
| 152 // when a paired device is removed. | 152 // when a paired device is removed. |
| 153 static void onDeviceRemoved(Device device); | 153 static void onDeviceRemoved(Device device); |
| 154 }; | 154 }; |
| 155 }; | 155 }; |
| OLD | NEW |