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

Side by Side Diff: chrome/common/extensions/api/usb.idl

Issue 12996003: Dynamically generate a heading for Extension Docs API pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moving logic into availability_data_source Created 7 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.usb</code> module to interact with connected USB
6 // devices. This API provides access to USB operations from within the context
7 // of an app. Using this API, apps can function as drivers for hardware devices.
8
5 namespace usb { 9 namespace usb {
6 10
7 // Direction, Recipient and RequestType all map to their namesakes within the 11 // Direction, Recipient and RequestType all map to their namesakes within the
8 // USB specification. 12 // USB specification.
9 enum Direction {in, out}; 13 enum Direction {in, out};
10 enum Recipient {device, _interface, endpoint, other}; 14 enum Recipient {device, _interface, endpoint, other};
11 enum RequestType {standard, class, vendor, reserved}; 15 enum RequestType {standard, class, vendor, reserved};
12 16
13 // A Device encapsulates everything that is needed to communicate with a USB 17 // A Device encapsulates everything that is needed to communicate with a USB
14 // device. They are returned by findDevice calls and have all of their 18 // device. They are returned by findDevice calls and have all of their
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // Performs an isochronous transfer on the specific device. 170 // Performs an isochronous transfer on the specific device.
167 // |device|: An open device to make the transfer on. 171 // |device|: An open device to make the transfer on.
168 // |transferInfo|: The parameters to the transfer. See 172 // |transferInfo|: The parameters to the transfer. See
169 // IsochronousTransferInfo. 173 // IsochronousTransferInfo.
170 // |callback|: Invoked once the transfer has been completed. 174 // |callback|: Invoked once the transfer has been completed.
171 static void isochronousTransfer(Device device, 175 static void isochronousTransfer(Device device,
172 IsochronousTransferInfo transferInfo, 176 IsochronousTransferInfo transferInfo,
173 TransferCallback callback); 177 TransferCallback callback);
174 }; 178 };
175 }; 179 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698