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

Unified Diff: runtime/include/dart_api.h

Issue 8588040: Add a mid-sized integration test for the Dart Embedding Api which (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/lib/isolate.cc » ('j') | runtime/lib/isolate.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/include/dart_api.h
===================================================================
--- runtime/include/dart_api.h (revision 1762)
+++ runtime/include/dart_api.h (working copy)
@@ -445,6 +445,16 @@
// TODO(turnidge): Should this be removed from the public api?
/**
+ * Gets the main Dart_Port for the current isolate.
Anton Muhin 2011/11/23 19:28:14 nit: 'main' sounds too generic to me at least.
turnidge 2011/11/23 21:45:37 What do you think it should be called? Open to su
+ */
+DART_EXPORT Dart_Port Dart_GetMainPort();
+
+/**
+ * Does the current isolate have active ports?
+ */
+DART_EXPORT bool Dart_IsolateHasActivePorts();
+
+/**
* Posts a message for some isolate. The message is built from a raw
* array.
*
@@ -473,6 +483,16 @@
*/
DART_EXPORT bool Dart_Post(Dart_Port port, Dart_Handle object);
+/**
+ * Returns a new SendPort with the provided id.
+ */
+DART_EXPORT Dart_Handle Dart_NewSendPort(Dart_Port port);
+
+/**
+ * Returns a new ReceivePort with the provided id.
+ */
+DART_EXPORT Dart_Handle Dart_NewReceivePort(Dart_Port port);
+
// --- Scopes ----
/**
« no previous file with comments | « no previous file | runtime/lib/isolate.cc » ('j') | runtime/lib/isolate.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698