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

Unified Diff: runtime/include/dart_api.h

Issue 11824067: Support for embedded Dart scripts (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: runtime/include/dart_api.h
===================================================================
--- runtime/include/dart_api.h (revision 16928)
+++ runtime/include/dart_api.h (working copy)
@@ -2609,6 +2609,24 @@
Dart_Handle source);
/**
+ * Loads the root script for the current isolate. The script can be
+ * embedded in another file, for example in an html file.
+ *
+ * TODO(turnidge): Document.
+ *
+ * \line_offset is the number of text lines between before the
siva 2013/01/10 21:17:20 "text lines between before" doesn't read well. May
hausner 2013/01/10 21:46:03 artifact from a previous version of the comment. F
+ * first line of the Dart script in the containing file.
+ *
+ * \col_offset is the number of characters before the first character
+ * in the first line of the Dart script.
+ */
+DART_EXPORT Dart_Handle Dart_LoadEmbeddedScript(
+ Dart_Handle url,
+ Dart_Handle source,
+ intptr_t line_offset,
+ intptr_t col_offset);
+
+/**
* Loads the root script for current isolate from a snapshot.
*
* \param buffer A buffer which contains a snapshot of the script.

Powered by Google App Engine
This is Rietveld 408576698