OLD | NEW |
1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc.
Note: | 1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc.
Note: |
2 1) The <head> information in this page is significant, should be uniform | 2 1) The <head> information in this page is significant, should be uniform |
3 across api docs and should be edited only with knowledge of the | 3 across api docs and should be edited only with knowledge of the |
4 templating mechanism. | 4 templating mechanism. |
5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a | 5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a |
6 browser, it will be re-generated from the template, json schema and | 6 browser, it will be re-generated from the template, json schema and |
7 authored overview content. | 7 authored overview content. |
8 4) The <body>.innerHTML is also generated by an offline step so that this | 8 4) The <body>.innerHTML is also generated by an offline step so that this |
9 page may easily be indexed by search engines. | 9 page may easily be indexed by search engines. |
10 --><html xmlns="http://www.w3.org/1999/xhtml"><head> | 10 --><html xmlns="http://www.w3.org/1999/xhtml"><head> |
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
747 </dl> | 747 </dl> |
748 <!-- CALLBACK --> | 748 <!-- CALLBACK --> |
749 <!-- MIN_VERSION --> | 749 <!-- MIN_VERSION --> |
750 </div> <!-- /description --> | 750 </div> <!-- /description --> |
751 </div><div class="apiItem"> | 751 </div><div class="apiItem"> |
752 <a name="method-read"></a> <!-- method-anchor --> | 752 <a name="method-read"></a> <!-- method-anchor --> |
753 <h4>read</h4> | 753 <h4>read</h4> |
754 <div class="summary"> | 754 <div class="summary"> |
755 <!-- Note: intentionally longer 80 columns --> | 755 <!-- Note: intentionally longer 80 columns --> |
756 <span>chrome.experimental.serial.read</span>(<span class="null
"><span>integer</span> | 756 <span>chrome.experimental.serial.read</span>(<span class="null
"><span>integer</span> |
757 <var><span>connectionId</span></var></span><span class="nu
ll"><span>, </span><span>function</span> | 757 <var><span>connectionId</span></var></span><span class="nu
ll"><span>, </span><span>integer</span> |
| 758 <var><span>bytesToRead</span></var></span><span class="nul
l"><span>, </span><span>function</span> |
758 <var><span>ReadCallback</span></var></span>)</div> | 759 <var><span>ReadCallback</span></var></span>)</div> |
759 <div class="description"> | 760 <div class="description"> |
760 <p>Reads a byte from the given connection.</p> | 761 <p>Reads a byte from the given connection.</p> |
761 <!-- PARAMETERS --> | 762 <!-- PARAMETERS --> |
762 <h4>Parameters</h4> | 763 <h4>Parameters</h4> |
763 <dl> | 764 <dl> |
764 <div> | 765 <div> |
765 <div> | 766 <div> |
766 <dt> | 767 <dt> |
767 <var>connectionId</var> | 768 <var>connectionId</var> |
(...skipping 12 matching lines...) Expand all Loading... |
780 </dt> | 781 </dt> |
781 <dd>The id of the connection.</dd> | 782 <dd>The id of the connection.</dd> |
782 <!-- OBJECT PROPERTIES --> | 783 <!-- OBJECT PROPERTIES --> |
783 <!-- OBJECT METHODS --> | 784 <!-- OBJECT METHODS --> |
784 <!-- OBJECT EVENT FIELDS --> | 785 <!-- OBJECT EVENT FIELDS --> |
785 <!-- FUNCTION PARAMETERS --> | 786 <!-- FUNCTION PARAMETERS --> |
786 </div> | 787 </div> |
787 </div><div> | 788 </div><div> |
788 <div> | 789 <div> |
789 <dt> | 790 <dt> |
| 791 <var>bytesToRead</var> |
| 792 <em> |
| 793 <!-- TYPE --> |
| 794 <div style="display:inline"> |
| 795 ( |
| 796 <span id="typeTemplate"> |
| 797 <span> |
| 798 <span>integer</span> |
| 799 </span> |
| 800 </span> |
| 801 ) |
| 802 </div> |
| 803 </em> |
| 804 </dt> |
| 805 <dd>The number of bytes to read.</dd> |
| 806 <!-- OBJECT PROPERTIES --> |
| 807 <!-- OBJECT METHODS --> |
| 808 <!-- OBJECT EVENT FIELDS --> |
| 809 <!-- FUNCTION PARAMETERS --> |
| 810 </div> |
| 811 </div><div> |
| 812 <div> |
| 813 <dt> |
790 <var>ReadCallback</var> | 814 <var>ReadCallback</var> |
791 <em> | 815 <em> |
792 <!-- TYPE --> | 816 <!-- TYPE --> |
793 <div style="display:inline"> | 817 <div style="display:inline"> |
794 ( | 818 ( |
795 <span id="typeTemplate"> | 819 <span id="typeTemplate"> |
796 <span> | 820 <span> |
797 <span>function</span> | 821 <span>function</span> |
798 </span> | 822 </span> |
799 </span> | 823 </span> |
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1254 ( | 1278 ( |
1255 <span id="typeTemplate"> | 1279 <span id="typeTemplate"> |
1256 <span> | 1280 <span> |
1257 <span>integer</span> | 1281 <span>integer</span> |
1258 </span> | 1282 </span> |
1259 </span> | 1283 </span> |
1260 ) | 1284 ) |
1261 </div> | 1285 </div> |
1262 </em> | 1286 </em> |
1263 </dt> | 1287 </dt> |
1264 <dd>The number of bytes received, or a negative number if an error occ
urred.</dd> | 1288 <dd>The number of bytes received, or a negative number if an error occ
urred. This number will be smaller than the number of bytes requested in the ori
ginal read call if the call would need to block to read that number of bytes.</d
d> |
1265 <!-- OBJECT PROPERTIES --> | 1289 <!-- OBJECT PROPERTIES --> |
1266 <!-- OBJECT METHODS --> | 1290 <!-- OBJECT METHODS --> |
1267 <!-- OBJECT EVENT FIELDS --> | 1291 <!-- OBJECT EVENT FIELDS --> |
1268 <!-- FUNCTION PARAMETERS --> | 1292 <!-- FUNCTION PARAMETERS --> |
1269 </div> | 1293 </div> |
1270 </div><div> | 1294 </div><div> |
1271 <div> | 1295 <div> |
1272 <dt> | 1296 <dt> |
1273 <var>data</var> | 1297 <var>data</var> |
1274 <em> | 1298 <em> |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1524 _uff=0; | 1548 _uff=0; |
1525 urchinTracker(); | 1549 urchinTracker(); |
1526 } | 1550 } |
1527 catch(e) {/* urchinTracker not available. */} | 1551 catch(e) {/* urchinTracker not available. */} |
1528 </script> | 1552 </script> |
1529 <!-- end analytics --> | 1553 <!-- end analytics --> |
1530 </div> | 1554 </div> |
1531 </div> <!-- /gc-footer --> | 1555 </div> <!-- /gc-footer --> |
1532 </div> <!-- /gc-container --> | 1556 </div> <!-- /gc-container --> |
1533 </body></html> | 1557 </body></html> |
OLD | NEW |