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

Side by Side Diff: mojo/public/js/core.js

Issue 728553002: Update mojo sdk to rev afb4440fd5a10cba980878c326180b7ad7960480 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Module "mojo/public/js/core" 5 // Module "mojo/public/js/core"
6 // 6 //
7 // Note: This file is for documentation purposes only. The code here is not 7 // Note: This file is for documentation purposes only. The code here is not
8 // actually executed. The real module is implemented natively in Mojo. 8 // actually executed. The real module is implemented natively in Mojo.
9 // 9 //
10 // This module provides the JavaScript bindings for mojo/public/c/system/core.h. 10 // This module provides the JavaScript bindings for mojo/public/c/system/core.h.
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 var WRITE_DATA_FLAG_ALL_OR_NONE; 104 var WRITE_DATA_FLAG_ALL_OR_NONE;
105 105
106 /** 106 /**
107 * MojoReadDataFlags: Used to specify different modes to |readData()|. 107 * MojoReadDataFlags: Used to specify different modes to |readData()|.
108 * See core.h for more information. 108 * See core.h for more information.
109 */ 109 */
110 var READ_DATA_FLAG_NONE; 110 var READ_DATA_FLAG_NONE;
111 var READ_DATA_FLAG_ALL_OR_NONE; 111 var READ_DATA_FLAG_ALL_OR_NONE;
112 var READ_DATA_FLAG_DISCARD; 112 var READ_DATA_FLAG_DISCARD;
113 var READ_DATA_FLAG_QUERY; 113 var READ_DATA_FLAG_QUERY;
114 var READ_DATA_FLAG_PEEK;
114 115
115 /** 116 /**
116 * Closes the given |handle|. See MojoClose for more info. 117 * Closes the given |handle|. See MojoClose for more info.
117 * @param {MojoHandle} Handle to close. 118 * @param {MojoHandle} Handle to close.
118 * @return {MojoResult} Result code. 119 * @return {MojoResult} Result code.
119 */ 120 */
120 function close(handle) { [native code] } 121 function close(handle) { [native code] }
121 122
122 /** 123 /**
123 * Waits on the given handle until a signal indicated by |signals| is 124 * Waits on the given handle until a signal indicated by |signals| is
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 * return codes. 221 * return codes.
221 * 222 *
222 * @param {MojoHandle} handle A consumerHandle returned by createDataPipe. 223 * @param {MojoHandle} handle A consumerHandle returned by createDataPipe.
223 * @param {MojoReadDataFlags} flags Flags. 224 * @param {MojoReadDataFlags} flags Flags.
224 * @return {object} An object of the form { 225 * @return {object} An object of the form {
225 * result, // |RESULT_OK| on success, error code otherwise. 226 * result, // |RESULT_OK| on success, error code otherwise.
226 * buffer, // An ArrayBufferView of the data read (only on success). 227 * buffer, // An ArrayBufferView of the data read (only on success).
227 * } 228 * }
228 */ 229 */
229 function readData(handle, flags) { [native code] } 230 function readData(handle, flags) { [native code] }
OLDNEW
« no previous file with comments | « mojo/public/java/system/src/org/chromium/mojo/system/DataPipe.java ('k') | mojo/public/js/core_unittests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698