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.usb</code> API to interact with connected USB | 5 // Use the <code>chrome.usb</code> API to interact with connected USB |
6 // devices. This API provides access to USB operations from within the context | 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. | 7 // of an app. Using this API, apps can function as drivers for hardware devices. |
8 namespace usb { | 8 namespace usb { |
9 | 9 |
10 // Direction, Recipient, RequestType, and TransferType all map to their | 10 // Direction, Recipient, RequestType, and TransferType all map to their |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 // In that case you must call |getDevices| or |findDevices| again to acquire | 298 // In that case you must call |getDevices| or |findDevices| again to acquire |
299 // the device. | 299 // the device. |
300 // | 300 // |
301 // |handle|: A connection handle to reset. | 301 // |handle|: A connection handle to reset. |
302 // |callback|: Invoked once the device is reset with a boolean indicating | 302 // |callback|: Invoked once the device is reset with a boolean indicating |
303 // whether the reset is completed successfully. | 303 // whether the reset is completed successfully. |
304 static void resetDevice(ConnectionHandle handle, | 304 static void resetDevice(ConnectionHandle handle, |
305 ResetDeviceCallback callback); | 305 ResetDeviceCallback callback); |
306 }; | 306 }; |
307 }; | 307 }; |
OLD | NEW |