Chromium Code Reviews| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 151 * | 151 * |
| 152 * \return A handle to string containing the source text if no error | 152 * \return A handle to string containing the source text if no error |
| 153 * occurs. | 153 * occurs. |
| 154 */ | 154 */ |
| 155 DART_EXPORT Dart_Handle Dart_ScriptGetSource( | 155 DART_EXPORT Dart_Handle Dart_ScriptGetSource( |
| 156 intptr_t library_id, | 156 intptr_t library_id, |
| 157 Dart_Handle script_url_in); | 157 Dart_Handle script_url_in); |
| 158 | 158 |
| 159 | 159 |
| 160 /** | 160 /** |
| 161 * Returns a string containing a generated source code of the given script | |
| 162 * in the given library. | |
| 163 * | |
| 164 * Requires there to be a current isolate. | |
| 165 * | |
| 166 * \return A handle to string containing the source text if no error | |
| 167 * occurs. | |
| 168 */ | |
| 169 DART_EXPORT Dart_Handle Dart_GenerateScriptSource(Dart_Handle library_url_in, | |
|
Ivan Posva
2013/03/13 22:30:38
I am questioning the reason behind adding this API
siva
2013/03/14 05:57:34
The existing API will return the source available
| |
| 170 Dart_Handle script_url_in); | |
| 171 | |
| 172 | |
| 173 /** | |
| 161 * Sets a breakpoint at line \line_number in \script_url, or the closest | 174 * 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. | 175 * following line (within the same function) where a breakpoint can be set. |
| 163 * | 176 * |
| 164 * Requires there to be a current isolate. | 177 * Requires there to be a current isolate. |
| 165 * | 178 * |
| 166 * \return A handle containing the breakpoint id, which is an integer | 179 * \return A handle containing the breakpoint id, which is an integer |
| 167 * value, or an error object if a breakpoint could not be set. | 180 * value, or an error object if a breakpoint could not be set. |
| 168 */ | 181 */ |
| 169 DART_EXPORT Dart_Handle Dart_SetBreakpoint( | 182 DART_EXPORT Dart_Handle Dart_SetBreakpoint( |
| 170 Dart_Handle script_url, | 183 Dart_Handle script_url, |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 596 * \param request A REST-like string, which uses '/' to separate | 609 * \param request A REST-like string, which uses '/' to separate |
| 597 * parameters. The first parameter is always the status type. | 610 * parameters. The first parameter is always the status type. |
| 598 * | 611 * |
| 599 * \return The requested status as a JSON formatted string, with the | 612 * \return The requested status as a JSON formatted string, with the |
| 600 * contents defined by the status plug-in. The caller is responsible | 613 * contents defined by the status plug-in. The caller is responsible |
| 601 * for freeing this string. | 614 * for freeing this string. |
| 602 */ | 615 */ |
| 603 DART_EXPORT char* Dart_GetVmStatus(const char* request); | 616 DART_EXPORT char* Dart_GetVmStatus(const char* request); |
| 604 | 617 |
| 605 #endif // INCLUDE_DART_DEBUGGER_API_H_ | 618 #endif // INCLUDE_DART_DEBUGGER_API_H_ |
| OLD | NEW |