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

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

Issue 2741033003: Mojo EDK: Introduce MojoQueryHandleSignalsState API (Closed)
Patch Set: fix stupid bad DCHECK Created 3 years, 9 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: mojo/public/js/core.js
diff --git a/mojo/public/js/core.js b/mojo/public/js/core.js
index ef480eeba5b214df6a790e005d2ebd6af97cc84a..28fdcb77a9ecf7f594517246b1363ac71d9d8457 100644
--- a/mojo/public/js/core.js
+++ b/mojo/public/js/core.js
@@ -142,6 +142,18 @@ var MAP_BUFFER_FLAG_NONE;
function close(handle) { [native code] }
/**
+ * Queries the last known signaling state of |handle|.
+ *
+ * @param {MojoHandle} handle Handle to query.
+ * @return {object} An object of the form {
+ * result, // MOJO_RESULT_OK or MOJO_RESULT_INVALID_ARGUMENT
+ * satisfiedSignals, // MojoHandleSignals (see above)
+ * satisfiableSignals, // MojoHandleSignals
+ * }
+ */
+function queryHandleSignalsState(handle) { [native code] }
+
+/**
* Waits on the given handle until a signal indicated by |signals| is
* satisfied or until |deadline| is passed. See MojoWait for more information.
*
« no previous file with comments | « mojo/public/java/system/src/org/chromium/mojo/system/InvalidHandle.java ('k') | mojo/public/js/tests/core_unittest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698