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

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

Issue 243973002: - Add a minimal implementation of Capability. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 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
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 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after
1091 * \return True if the message was posted. 1091 * \return True if the message was posted.
1092 */ 1092 */
1093 DART_EXPORT bool Dart_Post(Dart_Port port_id, Dart_Handle object); 1093 DART_EXPORT bool Dart_Post(Dart_Port port_id, Dart_Handle object);
1094 1094
1095 /** 1095 /**
1096 * Returns a new SendPort with the provided port id. 1096 * Returns a new SendPort with the provided port id.
1097 */ 1097 */
1098 DART_EXPORT Dart_Handle Dart_NewSendPort(Dart_Port port_id); 1098 DART_EXPORT Dart_Handle Dart_NewSendPort(Dart_Port port_id);
1099 1099
1100 1100
1101 DART_EXPORT Dart_Handle Dart_PortGetId(Dart_Handle port, Dart_Port* port_id); 1101 DART_EXPORT Dart_Handle Dart_ReceivePortGetId(Dart_Handle port,
1102 Dart_Port* port_id);
1102 1103
1103 /** 1104 /**
1104 * Gets the ReceivePort for the provided port id. 1105 * Gets the ReceivePort for the provided port id.
1105 * Returns Dart_Null if a port with the provided port id is not associated with 1106 * Returns Dart_Null if a port with the provided port id is not associated with
1106 * the current isolate. 1107 * the current isolate.
1107 * 1108 *
1108 * Note that there is at most one ReceivePort for a given port id. 1109 * Note that there is at most one ReceivePort for a given port id.
1109 */ 1110 */
1110 DART_EXPORT Dart_Handle Dart_GetReceivePort(Dart_Port port_id); 1111 DART_EXPORT Dart_Handle Dart_GetReceivePort(Dart_Port port_id);
1111 1112
(...skipping 1456 matching lines...) Expand 10 before | Expand all | Expand 10 after
2568 * NOTE: If multiple callbacks with the same name are registered, only the 2569 * NOTE: If multiple callbacks with the same name are registered, only the
2569 * last callback registered will be remembered. 2570 * last callback registered will be remembered.
2570 */ 2571 */
2571 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( 2572 DART_EXPORT void Dart_RegisterRootServiceRequestCallback(
2572 const char* name, 2573 const char* name,
2573 Dart_ServiceRequestCallback callback, 2574 Dart_ServiceRequestCallback callback,
2574 void* user_data); 2575 void* user_data);
2575 2576
2576 2577
2577 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 2578 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « runtime/bin/io_service.cc ('k') | runtime/lib/isolate.cc » ('j') | runtime/lib/isolate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698