| 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 /** |  | 
| 157  * Waits on the given handle until a signal indicated by |signals| is | 145  * Waits on the given handle until a signal indicated by |signals| is | 
| 158  * satisfied or until |deadline| is passed. See MojoWait for more information. | 146  * satisfied or until |deadline| is passed. See MojoWait for more information. | 
| 159  * | 147  * | 
| 160  * @param {MojoHandle} handle Handle to wait on. | 148  * @param {MojoHandle} handle Handle to wait on. | 
| 161  * @param {MojoHandleSignals} signals Specifies the condition to wait for. | 149  * @param {MojoHandleSignals} signals Specifies the condition to wait for. | 
| 162  * @param {MojoDeadline} deadline Stops waiting if this is reached. | 150  * @param {MojoDeadline} deadline Stops waiting if this is reached. | 
| 163  * @return {MojoResult} Result code. | 151  * @return {MojoResult} Result code. | 
| 164  */ | 152  */ | 
| 165 function wait(handle, signals, deadline) { [native code] } | 153 function wait(handle, signals, deadline) { [native code] } | 
| 166 | 154 | 
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 316 function mapBuffer(buffer_handle, offset, num_bytes, flags) { [native code] } | 304 function mapBuffer(buffer_handle, offset, num_bytes, flags) { [native code] } | 
| 317 | 305 | 
| 318 /** | 306 /** | 
| 319  * Unmaps buffer that was mapped using mapBuffer. | 307  * Unmaps buffer that was mapped using mapBuffer. | 
| 320  * See MojoUnmapBuffer for more information including error codes. | 308  * See MojoUnmapBuffer for more information including error codes. | 
| 321  * | 309  * | 
| 322  * @param {ArrayBuffer} buffer ArrayBuffer. | 310  * @param {ArrayBuffer} buffer ArrayBuffer. | 
| 323  * @return {MojoResult} Result code. | 311  * @return {MojoResult} Result code. | 
| 324  */ | 312  */ | 
| 325 function unmapBuffer(buffer) { [native code] } | 313 function unmapBuffer(buffer) { [native code] } | 
| OLD | NEW | 
|---|