Chromium Code Reviews| 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. |