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

Unified Diff: mojo/public/js/bindings/core.js

Issue 345463003: Mojo: MojoWaitFlags -> MojoHandleSignals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
« no previous file with comments | « mojo/public/cpp/utility/run_loop.h ('k') | mojo/public/js/bindings/support.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/js/bindings/core.js
diff --git a/mojo/public/js/bindings/core.js b/mojo/public/js/bindings/core.js
index 389681af2d1ae8fa4d60448c51816f72cf1f0c63..5377533e2f7b0a62d600441bdc6bbb7a235db171 100644
--- a/mojo/public/js/bindings/core.js
+++ b/mojo/public/js/bindings/core.js
@@ -47,8 +47,9 @@ var RESULT_SHOULD_WAIT;
var DEADLINE_INDEFINITE;
/**
- * MojoWaitFlags: Used to specify the state of a handle to wait on (e.g., the
- * ability to read or write to it).
+ * MojoHandleSignals: Used to specify signals that can be waited on for a handle
+ *(and which can be triggered), e.g., the ability to read or write to
+ * the handle.
* See core.h for more information.
*/
var WAIT_FLAG_NONE;
@@ -108,15 +109,15 @@ var READ_DATA_FLAG_QUERY;
function close(handle) { [native code] }
/**
- * Waits on the given handle until the state indicated by |waitFlags| is
+ * Waits on the given handle until a signal indicated by |signals| is
* satisfied or until |deadline| is passed. See MojoWait for more information.
*
* @param {MojoHandle} handle Handle to wait on.
- * @param {MojoWaitFlags} waitFlags Specifies the condition to wait for.
+ * @param {MojoHandleSignals} signals Specifies the condition to wait for.
* @param {MojoDeadline} deadline Stops waiting if this is reached.
* @return {MojoResult} Result code.
*/
-function wait(handle, waitFlags, deadline) { [native code] }
+function wait(handle, signals, deadline) { [native code] }
/**
* Waits on |handles[0]|, ..., |handles[handles.length-1]| for at least one of
@@ -125,12 +126,12 @@ function wait(handle, waitFlags, deadline) { [native code] }
* See MojoWaitMany for more information.
*
* @param {Array.MojoHandle} handles Handles to wait on.
- * @param {Array.MojoWaitFlags} waitFlags Specifies the condition to wait for,
+ * @param {Array.MojoHandleSignals} signals Specifies the condition to wait for,
* for each corresponding handle. Must be the same length as |handles|.
* @param {MojoDeadline} deadline Stops waiting if this is reached.
* @return {MojoResult} Result code.
*/
-function waitMany(handles, waitFlags, deadline) { [native code] }
+function waitMany(handles, signals, deadline) { [native code] }
/**
* Creates a message pipe. This function always succeeds.
« no previous file with comments | « mojo/public/cpp/utility/run_loop.h ('k') | mojo/public/js/bindings/support.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698