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

Side by Side Diff: chrome/common/extensions/docs/static/app_hardware.html

Issue 10828308: Fix typo in USB API documentation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/extensions/docs/server2/templates/articles/app_hardware.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <div id="pageData-name" class="pageData">Accessing Hardware Devices</div> 1 <div id="pageData-name" class="pageData">Accessing Hardware Devices</div>
2 <div id="pageData-showTOC" class="pageData">true</div> 2 <div id="pageData-showTOC" class="pageData">true</div>
3 3
4 <p> 4 <p>
5 This doc shows you how packaged apps can connect to USB devices 5 This doc shows you how packaged apps can connect to USB devices
6 and read from and write to a user's serial ports. 6 and read from and write to a user's serial ports.
7 See also the reference docs for the 7 See also the reference docs for the
8 <a href="experimental.usb.html">USB API</a> 8 <a href="experimental.usb.html">USB API</a>
9 and the 9 and the
10 <a href="experimental.serial.html">Serial API</a>. 10 <a href="experimental.serial.html">Serial API</a>.
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 </tr> 75 </tr>
76 <tr> 76 <tr>
77 <td>eventCallbacks(object)</td> 77 <td>eventCallbacks(object)</td>
78 <td>An object with a single key, "onEvent", 78 <td>An object with a single key, "onEvent",
79 to be called whenever an event occurs on the corresponding device. 79 to be called whenever an event occurs on the corresponding device.
80 This will be the primary method of receiving information from the device. 80 This will be the primary method of receiving information from the device.
81 As the host-initiated USB protocol is complex, read on to learn more. 81 As the host-initiated USB protocol is complex, read on to learn more.
82 </td> 82 </td>
83 </tr> 83 </tr>
84 <tr> 84 <tr>
85 <td>onDevideFoundCallback()</td> 85 <td>onDeviceFoundCallback()</td>
86 <td>Called when the device is found. 86 <td>Called when the device is found.
87 The callback's parameter is an object 87 The callback's parameter is an object
88 with three properties: <code>handle</code>, 88 with three properties: <code>handle</code>,
89 <code>vendorId</code>, 89 <code>vendorId</code>,
90 <code>productId</code>; 90 <code>productId</code>;
91 or <code>NULL</code>, 91 or <code>NULL</code>,
92 if no device is found. 92 if no device is found.
93 Save this object 93 Save this object
94 as it's required to send messages to the device.</td> 94 as it's required to send messages to the device.</td>
95 </tr> 95 </tr>
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 You can flush your serial device buffer by issuing the flush command on the API: 687 You can flush your serial device buffer by issuing the flush command on the API:
688 </p> 688 </p>
689 689
690 <pre> 690 <pre>
691 var flushSerial=function(str) { 691 var flushSerial=function(str) {
692 chrome.experimental.serial.flush(connectionInfo.connectionId, onFlush); 692 chrome.experimental.serial.flush(connectionInfo.connectionId, onFlush);
693 } 693 }
694 </pre> 694 </pre>
695 695
696 <p class="backtotop"><a href="#top">Back to top</a></p> 696 <p class="backtotop"><a href="#top">Back to top</a></p>
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/server2/templates/articles/app_hardware.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698