Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: extensions/common/api/bluetooth.idl

Issue 1841483002: [Extensions] Convert APIs to use movable types [11] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 };
OLDNEW
« no previous file with comments | « extensions/browser/api/hid/hid_device_manager.cc ('k') | extensions/common/api/bluetooth_private.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698