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

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

Issue 336313007: Mojo: Rename MOJO_WAIT_FLAG_... -> MOJO_HANDLE_SIGNAL_.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 6 months 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 | Annotate | Revision Log
« no previous file with comments | « mojo/public/js/bindings/connector.js ('k') | mojo/spy/spy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/bindings/core" 5 // Module "mojo/public/js/bindings/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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 * See core.h for more information. 45 * See core.h for more information.
46 */ 46 */
47 var DEADLINE_INDEFINITE; 47 var DEADLINE_INDEFINITE;
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 WAIT_FLAG_NONE; 55 var HANDLE_SIGNAL_NONE;
56 var WAIT_FLAG_READABLE; 56 var HANDLE_SIGNAL_READABLE;
57 var WAIT_FLAG_WRITABLE; 57 var HANDLE_SIGNAL_WRITABLE;
58 var WAIT_FLAG_EVERYTHING; 58 var HANDLE_SIGNAL_EVERYTHING;
59 59
60 /* 60 /*
61 * MojoWriteMessageFlags: Used to specify different modes to |writeMessage()|. 61 * MojoWriteMessageFlags: Used to specify different modes to |writeMessage()|.
62 * See core.h for more information. 62 * See core.h for more information.
63 */ 63 */
64 var WRITE_MESSAGE_FLAG_NONE; 64 var WRITE_MESSAGE_FLAG_NONE;
65 65
66 /** 66 /**
67 * MojoReadMessageFlags: Used to specify different modes to |readMessage()|. 67 * MojoReadMessageFlags: Used to specify different modes to |readMessage()|.
68 * See core.h for more information. 68 * See core.h for more information.
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 * return codes. 207 * return codes.
208 * 208 *
209 * @param {MojoHandle} handle A consumerHandle returned by createDataPipe. 209 * @param {MojoHandle} handle A consumerHandle returned by createDataPipe.
210 * @param {MojoReadDataFlags} flags Flags. 210 * @param {MojoReadDataFlags} flags Flags.
211 * @return {object} An object of the form { 211 * @return {object} An object of the form {
212 * result, // |RESULT_OK| on success, error code otherwise. 212 * result, // |RESULT_OK| on success, error code otherwise.
213 * buffer, // An ArrayBufferView of the data read (only on success). 213 * buffer, // An ArrayBufferView of the data read (only on success).
214 * } 214 * }
215 */ 215 */
216 function readData(handle, flags) { [native code] } 216 function readData(handle, flags) { [native code] }
OLDNEW
« no previous file with comments | « mojo/public/js/bindings/connector.js ('k') | mojo/spy/spy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698