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

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

Issue 359673002: - Remove Dart_ReceivePortGetId, Dart_GetReceivePort and Dart_PostMessage. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 5 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/bin/socket_patch.dart ('k') | runtime/vm/custom_isolate_test.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) 2012, the Dart project authors. Please see the AUTHORS file 2 * Copyright (c) 2012, 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_API_H_ 7 #ifndef INCLUDE_DART_API_H_
8 #define INCLUDE_DART_API_H_ 8 #define INCLUDE_DART_API_H_
9 9
10 /** \mainpage Dart Embedding API Reference 10 /** \mainpage Dart Embedding API Reference
(...skipping 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after
1170 * 1170 *
1171 * \return True if the message was posted. 1171 * \return True if the message was posted.
1172 */ 1172 */
1173 DART_EXPORT bool Dart_Post(Dart_Port port_id, Dart_Handle object); 1173 DART_EXPORT bool Dart_Post(Dart_Port port_id, Dart_Handle object);
1174 1174
1175 /** 1175 /**
1176 * Returns a new SendPort with the provided port id. 1176 * Returns a new SendPort with the provided port id.
1177 */ 1177 */
1178 DART_EXPORT Dart_Handle Dart_NewSendPort(Dart_Port port_id); 1178 DART_EXPORT Dart_Handle Dart_NewSendPort(Dart_Port port_id);
1179 1179
1180 /**
1181 * Gets the SendPort id for the provided SendPort.
1182 * \param port A SendPort object whose id is desired.
1183 * \param port_id Returns the id of the SendPort.
1184 * \return Success if no error occurs. Otherwise returns
1185 * an error handle.
1186 */
1187 DART_EXPORT Dart_Handle Dart_SendPortGetId(Dart_Handle port,
1188 Dart_Port* port_id);
1180 1189
1181 DART_EXPORT Dart_Handle Dart_ReceivePortGetId(Dart_Handle port,
1182 Dart_Port* port_id);
1183
1184 /**
1185 * Gets the ReceivePort for the provided port id.
1186 * Returns Dart_Null if a port with the provided port id is not associated with
1187 * the current isolate.
1188 *
1189 * Note that there is at most one ReceivePort for a given port id.
1190 */
1191 DART_EXPORT Dart_Handle Dart_GetReceivePort(Dart_Port port_id);
1192
1193
1194 /**
1195 * Posts an object to the send port.
1196 *
1197 * \param send_port A Dart SendPort.
1198 * \param object An object from the current isolate.
1199 *
1200 * \return Success if no error occurs. Otherwise returns an error handle.
1201 */
1202 DART_EXPORT Dart_Handle Dart_PostMessage(Dart_Handle send_port,
1203 Dart_Handle object);
1204 1190
1205 /* 1191 /*
1206 * ====== 1192 * ======
1207 * Scopes 1193 * Scopes
1208 * ====== 1194 * ======
1209 */ 1195 */
1210 1196
1211 /** 1197 /**
1212 * Enters a new scope. 1198 * Enters a new scope.
1213 * 1199 *
(...skipping 1588 matching lines...) Expand 10 before | Expand all | Expand 10 after
2802 * NOTE: If multiple callbacks with the same name are registered, only the 2788 * NOTE: If multiple callbacks with the same name are registered, only the
2803 * last callback registered will be remembered. 2789 * last callback registered will be remembered.
2804 */ 2790 */
2805 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( 2791 DART_EXPORT void Dart_RegisterRootServiceRequestCallback(
2806 const char* name, 2792 const char* name,
2807 Dart_ServiceRequestCallback callback, 2793 Dart_ServiceRequestCallback callback,
2808 void* user_data); 2794 void* user_data);
2809 2795
2810 2796
2811 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 2797 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « runtime/bin/socket_patch.dart ('k') | runtime/vm/custom_isolate_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698