OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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.hid</code> API to interact with connected HID devices. | 5 // Use the <code>chrome.hid</code> API to interact with connected HID devices. |
6 // This API provides access to HID operations from within the context of an app. | 6 // This API provides access to HID operations from within the context of an app. |
7 // Using this API, apps can function as drivers for hardware devices. | 7 // Using this API, apps can function as drivers for hardware devices. |
8 namespace hid { | 8 namespace hid { |
9 // HID top-level collection attributes. | 9 // HID top-level collection attributes. |
10 // Each enumerated device interface exposes an array of these objects. | 10 // Each enumerated device interface exposes an array of these objects. |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 // |connectionId|: The connection to read Input report from. | 121 // |connectionId|: The connection to read Input report from. |
122 // |reportId|: The report ID to use, or <code>0</code> if none. | 122 // |reportId|: The report ID to use, or <code>0</code> if none. |
123 // |data|: The report data. | 123 // |data|: The report data. |
124 // |callback|: The callback to invoke once the write is finished. | 124 // |callback|: The callback to invoke once the write is finished. |
125 static void sendFeatureReport(long connectionId, | 125 static void sendFeatureReport(long connectionId, |
126 long reportId, | 126 long reportId, |
127 ArrayBuffer data, | 127 ArrayBuffer data, |
128 SendCallback callback); | 128 SendCallback callback); |
129 }; | 129 }; |
130 }; | 130 }; |
OLD | NEW |