| 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 2922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2933 * \param library The library into which to import another library. | 2933 * \param library The library into which to import another library. |
| 2934 * \param import The library to import. | 2934 * \param import The library to import. |
| 2935 * \param prefix The prefix under which to import. | 2935 * \param prefix The prefix under which to import. |
| 2936 * | 2936 * |
| 2937 * \return A valid handle if no error occurs during the operation. | 2937 * \return A valid handle if no error occurs during the operation. |
| 2938 */ | 2938 */ |
| 2939 DART_EXPORT Dart_Handle Dart_LibraryImportLibrary(Dart_Handle library, | 2939 DART_EXPORT Dart_Handle Dart_LibraryImportLibrary(Dart_Handle library, |
| 2940 Dart_Handle import, | 2940 Dart_Handle import, |
| 2941 Dart_Handle prefix); | 2941 Dart_Handle prefix); |
| 2942 | 2942 |
| 2943 |
| 2944 /** |
| 2945 * Returns a flattened list of pairs. The first element in each pair is the |
| 2946 * importing library and and the second element is the imported library for each |
| 2947 * import in the isolate of a library whose URI's scheme is [scheme]. |
| 2948 * |
| 2949 * Requires there to be a current isolate. |
| 2950 * |
| 2951 * \return A handle to a list of flattened pairs of importer-importee. |
| 2952 */ |
| 2953 DART_EXPORT Dart_Handle Dart_GetImportsOfScheme(Dart_Handle scheme); |
| 2954 |
| 2955 |
| 2943 /** | 2956 /** |
| 2944 * Called by the embedder to provide the source for a "part of" | 2957 * Called by the embedder to provide the source for a "part of" |
| 2945 * directive. This function should be called in response to a | 2958 * directive. This function should be called in response to a |
| 2946 * Dart_kSourceTag tag handler request (See Dart_LibraryTagHandler, | 2959 * Dart_kSourceTag tag handler request (See Dart_LibraryTagHandler, |
| 2947 * above). | 2960 * above). |
| 2948 * | 2961 * |
| 2949 * \param library The library where the "part of" directive occurs. | 2962 * \param library The library where the "part of" directive occurs. |
| 2950 * | 2963 * |
| 2951 * \param url The original url requested for the part. | 2964 * \param url The original url requested for the part. |
| 2952 * | 2965 * |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3186 | 3199 |
| 3187 | 3200 |
| 3188 /** | 3201 /** |
| 3189 * Returns whether the VM only supports running from precompiled snapshots and | 3202 * Returns whether the VM only supports running from precompiled snapshots and |
| 3190 * not from any other kind of snapshot or from source (that is, the VM was | 3203 * not from any other kind of snapshot or from source (that is, the VM was |
| 3191 * compiled with DART_PRECOMPILED_RUNTIME). | 3204 * compiled with DART_PRECOMPILED_RUNTIME). |
| 3192 */ | 3205 */ |
| 3193 DART_EXPORT bool Dart_IsPrecompiledRuntime(); | 3206 DART_EXPORT bool Dart_IsPrecompiledRuntime(); |
| 3194 | 3207 |
| 3195 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 3208 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
| OLD | NEW |