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

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: Addressing comments - Patch currently being broken up Created 7 years, 6 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.
5 namespace usb { 8 namespace usb {
6 9
7 // Direction, Recipient, RequestType, and TransferType all map to their 10 // Direction, Recipient, RequestType, and TransferType all map to their
8 // namesakes within the USB specification. 11 // namesakes within the USB specification.
9 enum Direction {in, out}; 12 enum Direction {in, out};
10 enum Recipient {device, _interface, endpoint, other}; 13 enum Recipient {device, _interface, endpoint, other};
11 enum RequestType {standard, class, vendor, reserved}; 14 enum RequestType {standard, class, vendor, reserved};
12 enum TransferType {control, interrupt, isochronous, bulk}; 15 enum TransferType {control, interrupt, isochronous, bulk};
13 16
14 // For isochronous mode, SynchronizationType and UsageType map to their 17 // For isochronous mode, SynchronizationType and UsageType map to their
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 // will appear to be disconected and reconnected. 220 // will appear to be disconected and reconnected.
218 // You must call <code>findDevice</code> again to acquire the device. 221 // You must call <code>findDevice</code> again to acquire the device.
219 // 222 //
220 // |device|: An opened device to reset. 223 // |device|: An opened device to reset.
221 // |callback|: Invoked once the device is reset with a boolean indicating 224 // |callback|: Invoked once the device is reset with a boolean indicating
222 // whether the reset is completed successfully. 225 // whether the reset is completed successfully.
223 static void resetDevice(Device device, 226 static void resetDevice(Device device,
224 ResetDeviceCallback callback); 227 ResetDeviceCallback callback);
225 }; 228 };
226 }; 229 };
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/types.json ('k') | chrome/common/extensions/api/web_navigation.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698