Chromium Code Reviews| Index: runtime/include/dart_debugger_api.h |
| =================================================================== |
| --- runtime/include/dart_debugger_api.h (revision 8015) |
| +++ runtime/include/dart_debugger_api.h (working copy) |
| @@ -44,6 +44,8 @@ |
| /** |
| + * DEPRECATED -- use Gart_GetLibraryIds instead. |
| + * |
| * Returns a list of urls (strings) of all the libraries loaded in the |
| * current isolate. |
| * |
| @@ -55,6 +57,17 @@ |
| /** |
| + * Returns a list of ids (integers) of all the libraries loaded in the |
| + * current isolate. |
| + * |
| + * Requires there to be a current isolate. |
| + * |
| + * \return A handle to a list of library ids. |
| + */ |
| +DART_EXPORT Dart_Handle Dart_GetLibraryIds(); |
| + |
| + |
| +/** |
| * Returns a list of urls (strings) of all the scripts loaded in the |
| * given library. |
| * |
| @@ -345,7 +358,7 @@ |
| */ |
| DART_EXPORT Dart_Handle Dart_GetClassInfo(intptr_t class_id, |
| Dart_Handle* class_name, |
| - Dart_Handle* library, |
| + intptr_t* library_id, |
| intptr_t* super_class_id, |
| Dart_Handle* static_fields); |
| @@ -380,4 +393,44 @@ |
| DART_EXPORT Dart_Handle Dart_GetStaticFields(Dart_Handle cls); |
| +/** |
| + * Returns an array containing all variable names and values of |
| + * the given library \library_id. |
| + * |
| + * Requires there to be a current isolate. |
| + * |
| + * \return A handle to an array containing variable names and |
| + * corresponding values. The array is empty if the library has |
| + * no variables. If non-empty, variable names are at array offsets 2*n, |
| + * values at offset 2*n+1. Variable values may also be a handle to an |
| + * error object if an error was encountered evaluating the value. |
| + */ |
| +DART_EXPORT Dart_Handle Dart_GetLibraryFields(intptr_t library_id); |
| + |
| + |
| +/** |
| + * Returns an array containing all imported libraries of |
| + * the given library \library_id. |
| + * |
| + * Requires there to be a current isolate. |
| + * |
| + * \return A handle to an array containing prefix names and |
| + * library ids. The array is empty if the library has |
| + * no imports. If non-empty, import prefixes are at array offsets 2*n, |
| + * corresponding library ids at offset 2*n+1. Prefixes may be null |
| + * in which case the respective library is imported without a prefix. |
|
siva
2012/05/29 18:07:53
which indicates the respective library has been im
hausner
2012/05/29 19:48:18
Done.
|
| + */ |
| +DART_EXPORT Dart_Handle Dart_GetLibraryImports(intptr_t library_id); |
| + |
| + |
| +/** |
| +* Returns the url of the library \library_id. |
| +* |
| +* Requires there to be a current isolate. |
| +* |
| +* \return A string handle containing the URL of the library. |
| +*/ |
| +DART_EXPORT Dart_Handle Dart_GetLibraryURL(intptr_t library_id); |
| + |
| + |
| #endif // INCLUDE_DART_DEBUGGER_API_H_ |