| 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/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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 /** | 49 /** |
| 50 * MojoHandleSignals: Used to specify signals that can be waited on for a handle | 50 * MojoHandleSignals: Used to specify signals that can be waited on for a handle |
| 51 *(and which can be triggered), e.g., the ability to read or write to | 51 *(and which can be triggered), e.g., the ability to read or write to |
| 52 * the handle. | 52 * the handle. |
| 53 * See core.h for more information. | 53 * See core.h for more information. |
| 54 */ | 54 */ |
| 55 var HANDLE_SIGNAL_NONE; | 55 var HANDLE_SIGNAL_NONE; |
| 56 var HANDLE_SIGNAL_READABLE; | 56 var HANDLE_SIGNAL_READABLE; |
| 57 var HANDLE_SIGNAL_WRITABLE; | 57 var HANDLE_SIGNAL_WRITABLE; |
| 58 var HANDLE_SIGNAL_PEER_CLOSED; |
| 58 | 59 |
| 59 /** | 60 /** |
| 60 * MojoCreateDataMessageOptions: Used to specify creation parameters for a data | 61 * MojoCreateDataMessageOptions: Used to specify creation parameters for a data |
| 61 * pipe to |createDataMessage()|. | 62 * pipe to |createDataMessage()|. |
| 62 * See core.h for more information. | 63 * See core.h for more information. |
| 63 */ | 64 */ |
| 64 dictionary MojoCreateDataMessageOptions { | 65 dictionary MojoCreateDataMessageOptions { |
| 65 MojoCreateDataMessageOptionsFlags flags; // See below. | 66 MojoCreateDataMessageOptionsFlags flags; // See below. |
| 66 }; | 67 }; |
| 67 | 68 |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 * return codes. | 222 * return codes. |
| 222 * | 223 * |
| 223 * @param {MojoHandle} handle A consumerHandle returned by createDataPipe. | 224 * @param {MojoHandle} handle A consumerHandle returned by createDataPipe. |
| 224 * @param {MojoReadDataFlags} flags Flags. | 225 * @param {MojoReadDataFlags} flags Flags. |
| 225 * @return {object} An object of the form { | 226 * @return {object} An object of the form { |
| 226 * result, // |RESULT_OK| on success, error code otherwise. | 227 * result, // |RESULT_OK| on success, error code otherwise. |
| 227 * buffer, // An ArrayBufferView of the data read (only on success). | 228 * buffer, // An ArrayBufferView of the data read (only on success). |
| 228 * } | 229 * } |
| 229 */ | 230 */ |
| 230 function readData(handle, flags) { [native code] } | 231 function readData(handle, flags) { [native code] } |
| OLD | NEW |