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

Unified Diff: runtime/include/dart_debugger_api.h

Issue 10447045: Introduce library ids and info in the wire protocol (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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
« no previous file with comments | « runtime/bin/dbg_connection.cc ('k') | runtime/vm/debugger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/include/dart_debugger_api.h
===================================================================
--- runtime/include/dart_debugger_api.h (revision 8073)
+++ 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,45 @@
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
+ * which indicates the respective library has been imported without
+ * a prefix.
+ */
+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_
« no previous file with comments | « runtime/bin/dbg_connection.cc ('k') | runtime/vm/debugger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698