| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef INCLUDE_DART_DEBUGGER_API_H_ | 5 #ifndef INCLUDE_DART_DEBUGGER_API_H_ |
| 6 #define INCLUDE_DART_DEBUGGER_API_H_ | 6 #define INCLUDE_DART_DEBUGGER_API_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 | 9 |
| 10 typedef struct _Dart_Breakpoint* Dart_Breakpoint; | 10 typedef struct _Dart_Breakpoint* Dart_Breakpoint; |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 * given library. | 121 * given library. |
| 122 * | 122 * |
| 123 * Requires there to be a current isolate. | 123 * Requires there to be a current isolate. |
| 124 * | 124 * |
| 125 * \return A handle to a list of string handles. | 125 * \return A handle to a list of string handles. |
| 126 */ | 126 */ |
| 127 DART_EXPORT Dart_Handle Dart_GetScriptURLs(Dart_Handle library_url); | 127 DART_EXPORT Dart_Handle Dart_GetScriptURLs(Dart_Handle library_url); |
| 128 | 128 |
| 129 | 129 |
| 130 /** | 130 /** |
| 131 * DEPRECATED --- use Dart_ScriptGetSource | |
| 132 * | |
| 133 * Returns a string containing the source code of the given script | 131 * Returns a string containing the source code of the given script |
| 134 * in the given library. | 132 * in the given library. |
| 135 * | 133 * |
| 136 * Requires there to be a current isolate. | 134 * Requires there to be a current isolate. |
| 137 * | 135 * |
| 138 * \return A handle to string containing the source text if no error | 136 * \return A handle to string containing the source text if no error |
| 139 * occurs. | 137 * occurs. |
| 140 */ | 138 */ |
| 141 DART_EXPORT Dart_Handle Dart_GetScriptSource( | |
| 142 Dart_Handle library_url_in, | |
| 143 Dart_Handle script_url_in); | |
| 144 | |
| 145 | |
| 146 /** | |
| 147 * Returns a string containing the source code of the given script | |
| 148 * in the given library. | |
| 149 * | |
| 150 * Requires there to be a current isolate. | |
| 151 * | |
| 152 * \return A handle to string containing the source text if no error | |
| 153 * occurs. | |
| 154 */ | |
| 155 DART_EXPORT Dart_Handle Dart_ScriptGetSource( | 139 DART_EXPORT Dart_Handle Dart_ScriptGetSource( |
| 156 intptr_t library_id, | 140 intptr_t library_id, |
| 157 Dart_Handle script_url_in); | 141 Dart_Handle script_url_in); |
| 158 | 142 |
| 159 | 143 |
| 160 /** | 144 /** |
| 161 * Sets a breakpoint at line \line_number in \script_url, or the closest | 145 * Sets a breakpoint at line \line_number in \script_url, or the closest |
| 162 * following line (within the same function) where a breakpoint can be set. | 146 * following line (within the same function) where a breakpoint can be set. |
| 163 * | 147 * |
| 164 * Requires there to be a current isolate. | 148 * Requires there to be a current isolate. |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 * \param request A REST-like string, which uses '/' to separate | 580 * \param request A REST-like string, which uses '/' to separate |
| 597 * parameters. The first parameter is always the status type. | 581 * parameters. The first parameter is always the status type. |
| 598 * | 582 * |
| 599 * \return The requested status as a JSON formatted string, with the | 583 * \return The requested status as a JSON formatted string, with the |
| 600 * contents defined by the status plug-in. The caller is responsible | 584 * contents defined by the status plug-in. The caller is responsible |
| 601 * for freeing this string. | 585 * for freeing this string. |
| 602 */ | 586 */ |
| 603 DART_EXPORT char* Dart_GetVmStatus(const char* request); | 587 DART_EXPORT char* Dart_GetVmStatus(const char* request); |
| 604 | 588 |
| 605 #endif // INCLUDE_DART_DEBUGGER_API_H_ | 589 #endif // INCLUDE_DART_DEBUGGER_API_H_ |
| OLD | NEW |