OLD | NEW |
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/bindings/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. |
11 // Refer to that file for more detailed documentation for equivalent methods. | 11 // Refer to that file for more detailed documentation for equivalent methods. |
12 | 12 |
13 while (1); | 13 while (1); |
14 | 14 |
15 /** | 15 /** |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 * return codes. | 220 * return codes. |
221 * | 221 * |
222 * @param {MojoHandle} handle A consumerHandle returned by createDataPipe. | 222 * @param {MojoHandle} handle A consumerHandle returned by createDataPipe. |
223 * @param {MojoReadDataFlags} flags Flags. | 223 * @param {MojoReadDataFlags} flags Flags. |
224 * @return {object} An object of the form { | 224 * @return {object} An object of the form { |
225 * result, // |RESULT_OK| on success, error code otherwise. | 225 * result, // |RESULT_OK| on success, error code otherwise. |
226 * buffer, // An ArrayBufferView of the data read (only on success). | 226 * buffer, // An ArrayBufferView of the data read (only on success). |
227 * } | 227 * } |
228 */ | 228 */ |
229 function readData(handle, flags) { [native code] } | 229 function readData(handle, flags) { [native code] } |
OLD | NEW |