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

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

Issue 392923002: Add support for MojoCreateMessagePipeOptions struct to JS bindings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « mojo/bindings/js/core_unittests.js ('k') | no next file » | 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 0aff53108331da9dfd0b4412c80a475f08f299db..95d49a5409e35e65cdb51009b02446df87aa653e 100644
--- a/mojo/public/js/bindings/core.js
+++ b/mojo/public/js/bindings/core.js
@@ -56,6 +56,18 @@ var HANDLE_SIGNAL_NONE;
var HANDLE_SIGNAL_READABLE;
var HANDLE_SIGNAL_WRITABLE;
+/**
+ * MojoCreateDataMessageOptions: Used to specify creation parameters for a data
+ * pipe to |createDataMessage()|.
+ * See core.h for more information.
+ */
+dictionary MojoCreateDataMessageOptions {
+ MojoCreateDataMessageOptionsFlags flags; // See below.
+};
+
+// MojoCreateDataMessageOptionsFlags
+var CREATE_MESSAGE_PIPE_OPTIONS_FLAG_NONE;
+
/*
* MojoWriteMessageFlags: Used to specify different modes to |writeMessage()|.
* See core.h for more information.
@@ -136,13 +148,15 @@ function waitMany(handles, signals, deadline) { [native code] }
* Creates a message pipe. This function always succeeds.
* See MojoCreateMessagePipe for more information on message pipes.
*
+ * @param {MojoCreateMessagePipeOptions} optionsDict Options to control the
+ * message pipe parameters. May be null.
* @return {MessagePipe} An object of the form {
* handle0,
* handle1,
* }
* where |handle0| and |handle1| are MojoHandles to each end of the channel.
*/
-function createMessagePipe() { [native code] }
+function createMessagePipe(optionsDict) { [native code] }
/**
* Writes a message to the message pipe endpoint given by |handle|. See
« no previous file with comments | « mojo/bindings/js/core_unittests.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698