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 INCLUDE_DART_API_H_ | 7 #ifndef INCLUDE_DART_API_H_ |
8 #define INCLUDE_DART_API_H_ | 8 #define INCLUDE_DART_API_H_ |
9 | 9 |
10 /** \mainpage Dart Embedding API Reference | 10 /** \mainpage Dart Embedding API Reference |
(...skipping 2627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2638 * | 2638 * |
2639 * \param library A library | 2639 * \param library A library |
2640 * \param url A url identifying the origin of the patch source | 2640 * \param url A url identifying the origin of the patch source |
2641 * \param source A string of Dart patch source | 2641 * \param source A string of Dart patch source |
2642 */ | 2642 */ |
2643 DART_EXPORT Dart_Handle Dart_LibraryLoadPatch(Dart_Handle library, | 2643 DART_EXPORT Dart_Handle Dart_LibraryLoadPatch(Dart_Handle library, |
2644 Dart_Handle url, | 2644 Dart_Handle url, |
2645 Dart_Handle patch_source); | 2645 Dart_Handle patch_source); |
2646 | 2646 |
2647 | 2647 |
| 2648 /** |
| 2649 * Indicates that all outstanding load requests have been satisfied, |
| 2650 * finalizing classes and completing deferred library futures. |
| 2651 * |
| 2652 * Requires there to be a current isolate. |
| 2653 * |
| 2654 * \return Success if all deferred library futures are completed. |
| 2655 * Otherwise, returns an error. |
| 2656 */ |
| 2657 DART_EXPORT Dart_Handle Dart_FinalizeLoading(); |
| 2658 |
| 2659 |
2648 /* | 2660 /* |
2649 * ===== | 2661 * ===== |
2650 * Peers | 2662 * Peers |
2651 * ===== | 2663 * ===== |
2652 */ | 2664 */ |
2653 | 2665 |
2654 /** | 2666 /** |
2655 * The peer field is a lazily allocated field intendend for storage of | 2667 * The peer field is a lazily allocated field intendend for storage of |
2656 * an uncommonly used values. Most instances types can have a peer | 2668 * an uncommonly used values. Most instances types can have a peer |
2657 * field allocated. The exceptions are subtypes of Null, num, and | 2669 * field allocated. The exceptions are subtypes of Null, num, and |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2774 * NOTE: If multiple callbacks with the same name are registered, only the | 2786 * NOTE: If multiple callbacks with the same name are registered, only the |
2775 * last callback registered will be remembered. | 2787 * last callback registered will be remembered. |
2776 */ | 2788 */ |
2777 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( | 2789 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( |
2778 const char* name, | 2790 const char* name, |
2779 Dart_ServiceRequestCallback callback, | 2791 Dart_ServiceRequestCallback callback, |
2780 void* user_data); | 2792 void* user_data); |
2781 | 2793 |
2782 | 2794 |
2783 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2795 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
OLD | NEW |