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

Unified Diff: chrome/common/extensions/docs/extensions/experimental.serial.html

Issue 10827123: Add serial bulk reads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge help. Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/extensions/experimental.serial.html
diff --git a/chrome/common/extensions/docs/extensions/experimental.serial.html b/chrome/common/extensions/docs/extensions/experimental.serial.html
index 5f68b9fbcb11216572a7c199b0e6ae7eafdfa72b..98be0f9c0012721c6e9cf37992d2ce236194d95e 100644
--- a/chrome/common/extensions/docs/extensions/experimental.serial.html
+++ b/chrome/common/extensions/docs/extensions/experimental.serial.html
@@ -984,7 +984,8 @@
<div class="summary">
<!-- Note: intentionally longer 80 columns -->
<span>chrome.experimental.serial.read</span>(<span class="null"><span>integer</span>
- <var><span>connectionId</span></var></span><span class="null"><span>, </span><span>function</span>
+ <var><span>connectionId</span></var></span><span class="null"><span>, </span><span>integer</span>
+ <var><span>bytesToRead</span></var></span><span class="null"><span>, </span><span>function</span>
<var><span>ReadCallback</span></var></span>)</div>
<div class="description">
<p>Reads a byte from the given connection.</p>
@@ -1017,6 +1018,29 @@
</div><div>
<div>
<dt>
+ <var>bytesToRead</var>
+ <em>
+ <!-- TYPE -->
+ <div style="display:inline">
+ (
+ <span id="typeTemplate">
+ <span>
+ <span>integer</span>
+ </span>
+ </span>
+ )
+ </div>
+ </em>
+ </dt>
+ <dd>The number of bytes to read.</dd>
+ <!-- OBJECT PROPERTIES -->
+ <!-- OBJECT METHODS -->
+ <!-- OBJECT EVENT FIELDS -->
+ <!-- FUNCTION PARAMETERS -->
+ </div>
+ </div><div>
+ <div>
+ <dt>
<var>ReadCallback</var>
<em>
<!-- TYPE -->
@@ -1608,7 +1632,7 @@
</div>
</em>
</dt>
- <dd>The number of bytes received, or a negative number if an error occurred.</dd>
+ <dd>The number of bytes received, or a negative number if an error occurred. This number will be smaller than the number of bytes requested in the original read call if the call would need to block to read that number of bytes.</dd>
<!-- OBJECT PROPERTIES -->
<!-- OBJECT METHODS -->
<!-- OBJECT EVENT FIELDS -->
« no previous file with comments | « chrome/common/extensions/docs/extensions/experimental.html ('k') | chrome/common/extensions/docs/extensions/samples.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698