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

Unified Diff: chrome/common/extensions/docs/apps/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/apps/experimental.serial.html
diff --git a/chrome/common/extensions/docs/apps/experimental.serial.html b/chrome/common/extensions/docs/apps/experimental.serial.html
index 4ed3c8574d71dbc622152e06cb478da95c9a4199..fca807ef1ad550eb7aed10a75fe0e306cc6a953e 100644
--- a/chrome/common/extensions/docs/apps/experimental.serial.html
+++ b/chrome/common/extensions/docs/apps/experimental.serial.html
@@ -754,7 +754,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>
@@ -787,6 +788,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 -->
@@ -1261,7 +1285,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/apps/api_index.html ('k') | chrome/common/extensions/docs/examples/api/notifications.zip » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698