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

Side by Side Diff: runtime/include/dart_native_api.h

Issue 1130753006: Hide Isolate pointer from embedder (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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 | « runtime/include/dart_debugger_api.h ('k') | runtime/lib/isolate.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 /* 1 /*
2 * Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 2 * Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
3 * for details. All rights reserved. Use of this source code is governed by a 3 * for details. All rights reserved. Use of this source code is governed by a
4 * BSD-style license that can be found in the LICENSE file. 4 * BSD-style license that can be found in the LICENSE file.
5 */ 5 */
6 6
7 #ifndef INCLUDE_DART_NATIVE_API_H_ 7 #ifndef INCLUDE_DART_NATIVE_API_H_
8 #define INCLUDE_DART_NATIVE_API_H_ 8 #define INCLUDE_DART_NATIVE_API_H_
9 9
10 #include "include/dart_api.h" 10 #include "include/dart_api.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 * Creates a new native port. When messages are received on this 116 * Creates a new native port. When messages are received on this
117 * native port, then they will be dispatched to the provided native 117 * native port, then they will be dispatched to the provided native
118 * message handler. 118 * message handler.
119 * 119 *
120 * \param name The name of this port in debugging messages. 120 * \param name The name of this port in debugging messages.
121 * \param handler The C handler to run when messages arrive on the port. 121 * \param handler The C handler to run when messages arrive on the port.
122 * \param handle_concurrently Is it okay to process requests on this 122 * \param handle_concurrently Is it okay to process requests on this
123 * native port concurrently? 123 * native port concurrently?
124 * 124 *
125 * \return If successful, returns the port id for the native port. In 125 * \return If successful, returns the port id for the native port. In
126 * case of error, returns ILLEGAL_PORT. 126 * case of error, returns DART_ILLEGAL_PORT.
127 */ 127 */
128 DART_EXPORT Dart_Port Dart_NewNativePort(const char* name, 128 DART_EXPORT Dart_Port Dart_NewNativePort(const char* name,
129 Dart_NativeMessageHandler handler, 129 Dart_NativeMessageHandler handler,
130 bool handle_concurrently); 130 bool handle_concurrently);
131 /* TODO(turnidge): Currently handle_concurrently is ignored. */ 131 /* TODO(turnidge): Currently handle_concurrently is ignored. */
132 132
133 /** 133 /**
134 * Closes the native port with the given id. 134 * Closes the native port with the given id.
135 * 135 *
136 * The port must have been allocated by a call to Dart_NewNativePort. 136 * The port must have been allocated by a call to Dart_NewNativePort.
(...skipping 13 matching lines...) Expand all
150 150
151 /** 151 /**
152 * Forces all loaded classes and functions to be compiled eagerly in 152 * Forces all loaded classes and functions to be compiled eagerly in
153 * the current isolate.. 153 * the current isolate..
154 * 154 *
155 * TODO(turnidge): Document. 155 * TODO(turnidge): Document.
156 */ 156 */
157 DART_EXPORT Dart_Handle Dart_CompileAll(); 157 DART_EXPORT Dart_Handle Dart_CompileAll();
158 158
159 #endif /* INCLUDE_DART_NATIVE_API_H_ */ /* NOLINT */ 159 #endif /* INCLUDE_DART_NATIVE_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « runtime/include/dart_debugger_api.h ('k') | runtime/lib/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698