| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3 * for details. All rights reserved. Use of this source code is governed by a | 3 * for details. All rights reserved. Use of this source code is governed by a |
| 4 * BSD-style license that can be found in the LICENSE file. | 4 * BSD-style license that can be found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #ifndef RUNTIME_INCLUDE_DART_API_H_ | 7 #ifndef RUNTIME_INCLUDE_DART_API_H_ |
| 8 #define RUNTIME_INCLUDE_DART_API_H_ | 8 #define RUNTIME_INCLUDE_DART_API_H_ |
| 9 | 9 |
| 10 /** \mainpage Dart Embedding API Reference | 10 /** \mainpage Dart Embedding API Reference |
| (...skipping 2913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2924 DART_EXPORT Dart_Handle Dart_GetClass(Dart_Handle library, | 2924 DART_EXPORT Dart_Handle Dart_GetClass(Dart_Handle library, |
| 2925 Dart_Handle class_name); | 2925 Dart_Handle class_name); |
| 2926 /* TODO(asiva): The above method needs to be removed once all uses | 2926 /* TODO(asiva): The above method needs to be removed once all uses |
| 2927 * of it are removed from the embedder code. */ | 2927 * of it are removed from the embedder code. */ |
| 2928 | 2928 |
| 2929 /** | 2929 /** |
| 2930 * Returns the url from which a library was loaded. | 2930 * Returns the url from which a library was loaded. |
| 2931 */ | 2931 */ |
| 2932 DART_EXPORT Dart_Handle Dart_LibraryUrl(Dart_Handle library); | 2932 DART_EXPORT Dart_Handle Dart_LibraryUrl(Dart_Handle library); |
| 2933 | 2933 |
| 2934 |
| 2935 /** |
| 2936 * \return An array of libraries. |
| 2937 */ |
| 2938 DART_EXPORT Dart_Handle Dart_GetLoadedLibraries(); |
| 2939 |
| 2940 |
| 2934 DART_EXPORT Dart_Handle Dart_LookupLibrary(Dart_Handle url); | 2941 DART_EXPORT Dart_Handle Dart_LookupLibrary(Dart_Handle url); |
| 2935 /* TODO(turnidge): Consider returning Dart_Null() when the library is | 2942 /* TODO(turnidge): Consider returning Dart_Null() when the library is |
| 2936 * not found to distinguish that from a true error case. */ | 2943 * not found to distinguish that from a true error case. */ |
| 2937 | 2944 |
| 2938 | 2945 |
| 2939 /** | 2946 /** |
| 2940 * Report an loading error for the library. | 2947 * Report an loading error for the library. |
| 2941 * | 2948 * |
| 2942 * \param library The library that failed to load. | 2949 * \param library The library that failed to load. |
| 2943 * \param error The Dart error instance containing the load error. | 2950 * \param error The Dart error instance containing the load error. |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3254 | 3261 |
| 3255 | 3262 |
| 3256 /** | 3263 /** |
| 3257 * Returns whether the VM only supports running from precompiled snapshots and | 3264 * Returns whether the VM only supports running from precompiled snapshots and |
| 3258 * not from any other kind of snapshot or from source (that is, the VM was | 3265 * not from any other kind of snapshot or from source (that is, the VM was |
| 3259 * compiled with DART_PRECOMPILED_RUNTIME). | 3266 * compiled with DART_PRECOMPILED_RUNTIME). |
| 3260 */ | 3267 */ |
| 3261 DART_EXPORT bool Dart_IsPrecompiledRuntime(); | 3268 DART_EXPORT bool Dart_IsPrecompiledRuntime(); |
| 3262 | 3269 |
| 3263 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 3270 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
| OLD | NEW |