| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 var MAP_BUFFER_FLAG_NONE; | 135 var MAP_BUFFER_FLAG_NONE; |
| 136 | 136 |
| 137 /** | 137 /** |
| 138 * Closes the given |handle|. See MojoClose for more info. | 138 * Closes the given |handle|. See MojoClose for more info. |
| 139 * @param {MojoHandle} Handle to close. | 139 * @param {MojoHandle} Handle to close. |
| 140 * @return {MojoResult} Result code. | 140 * @return {MojoResult} Result code. |
| 141 */ | 141 */ |
| 142 function close(handle) { [native code] } | 142 function close(handle) { [native code] } |
| 143 | 143 |
| 144 /** | 144 /** |
| 145 * Queries the last known signaling state of |handle|. |
| 146 * |
| 147 * @param {MojoHandle} handle Handle to query. |
| 148 * @return {object} An object of the form { |
| 149 * result, // MOJO_RESULT_OK or MOJO_RESULT_INVALID_ARGUMENT |
| 150 * satisfiedSignals, // MojoHandleSignals (see above) |
| 151 * satisfiableSignals, // MojoHandleSignals |
| 152 * } |
| 153 */ |
| 154 function queryHandleSignalsState(handle) { [native code] } |
| 155 |
| 156 /** |
| 145 * Waits on the given handle until a signal indicated by |signals| is | 157 * Waits on the given handle until a signal indicated by |signals| is |
| 146 * satisfied or until |deadline| is passed. See MojoWait for more information. | 158 * satisfied or until |deadline| is passed. See MojoWait for more information. |
| 147 * | 159 * |
| 148 * @param {MojoHandle} handle Handle to wait on. | 160 * @param {MojoHandle} handle Handle to wait on. |
| 149 * @param {MojoHandleSignals} signals Specifies the condition to wait for. | 161 * @param {MojoHandleSignals} signals Specifies the condition to wait for. |
| 150 * @param {MojoDeadline} deadline Stops waiting if this is reached. | 162 * @param {MojoDeadline} deadline Stops waiting if this is reached. |
| 151 * @return {MojoResult} Result code. | 163 * @return {MojoResult} Result code. |
| 152 */ | 164 */ |
| 153 function wait(handle, signals, deadline) { [native code] } | 165 function wait(handle, signals, deadline) { [native code] } |
| 154 | 166 |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 function mapBuffer(buffer_handle, offset, num_bytes, flags) { [native code] } | 316 function mapBuffer(buffer_handle, offset, num_bytes, flags) { [native code] } |
| 305 | 317 |
| 306 /** | 318 /** |
| 307 * Unmaps buffer that was mapped using mapBuffer. | 319 * Unmaps buffer that was mapped using mapBuffer. |
| 308 * See MojoUnmapBuffer for more information including error codes. | 320 * See MojoUnmapBuffer for more information including error codes. |
| 309 * | 321 * |
| 310 * @param {ArrayBuffer} buffer ArrayBuffer. | 322 * @param {ArrayBuffer} buffer ArrayBuffer. |
| 311 * @return {MojoResult} Result code. | 323 * @return {MojoResult} Result code. |
| 312 */ | 324 */ |
| 313 function unmapBuffer(buffer) { [native code] } | 325 function unmapBuffer(buffer) { [native code] } |
| OLD | NEW |