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 2666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2677 * | 2677 * |
2678 * \return If no error occurs, the handler is set for the isolate. | 2678 * \return If no error occurs, the handler is set for the isolate. |
2679 * Otherwise an error handle is returned. | 2679 * Otherwise an error handle is returned. |
2680 * | 2680 * |
2681 * TODO(turnidge): Document. | 2681 * TODO(turnidge): Document. |
2682 */ | 2682 */ |
2683 DART_EXPORT Dart_Handle Dart_SetLibraryTagHandler( | 2683 DART_EXPORT Dart_Handle Dart_SetLibraryTagHandler( |
2684 Dart_LibraryTagHandler handler); | 2684 Dart_LibraryTagHandler handler); |
2685 | 2685 |
2686 /** | 2686 /** |
2687 * Canonicalizes a url with respect to some library. | |
2688 * | |
2689 * The url is resolved with respect to the library's url and some url | |
2690 * normalizations are performed. | |
2691 * | |
2692 * This canonicalization function should be sufficient for most | |
2693 * embedders to implement the Dart_kCanonicalizeUrl tag. | |
2694 * | |
2695 * \param library The library relative to which the url is being | |
2696 * resolved. | |
ahe
2016/05/25 12:44:52
Consider documenting what the Dart type of library
turnidge
2016/05/31 18:25:27
Documented that url is a string handle. The docum
| |
2697 * \param url The url being resolved and canonicalized. | |
2698 * | |
2699 * \return If no error occurs, a String object is returned. Otherwise | |
2700 * an error handle is returned. | |
2701 */ | |
2702 DART_EXPORT Dart_Handle Dart_DefaultCanonicalizeUrl(Dart_Handle library, | |
Cutch
2016/05/24 23:53:46
If we had another variant of this API call that to
turnidge
2016/05/31 18:25:27
Responded on other comment.
| |
2703 Dart_Handle url); | |
2704 | |
2705 /** | |
2687 * Loads the root script for the current isolate. The script can be | 2706 * Loads the root script for the current isolate. The script can be |
2688 * embedded in another file, for example in an html file. | 2707 * embedded in another file, for example in an html file. |
2689 * | 2708 * |
2690 * TODO(turnidge): Document. | 2709 * TODO(turnidge): Document. |
2691 * | 2710 * |
2692 * \line_offset is the number of text lines before the | 2711 * \param line_offset is the number of text lines before the |
2693 * first line of the Dart script in the containing file. | 2712 * first line of the Dart script in the containing file. |
2694 * | 2713 * |
2695 * \col_offset is the number of characters before the first character | 2714 * \param col_offset is the number of characters before the first character |
2696 * in the first line of the Dart script. | 2715 * in the first line of the Dart script. |
2697 */ | 2716 */ |
2698 DART_EXPORT Dart_Handle Dart_LoadScript(Dart_Handle url, | 2717 DART_EXPORT Dart_Handle Dart_LoadScript(Dart_Handle url, |
2699 Dart_Handle source, | 2718 Dart_Handle source, |
2700 intptr_t line_offset, | 2719 intptr_t line_offset, |
2701 intptr_t col_offset); | 2720 intptr_t col_offset); |
2702 | 2721 |
2703 /** | 2722 /** |
2704 * Loads the root script for current isolate from a snapshot. | 2723 * Loads the root script for current isolate from a snapshot. |
2705 * | 2724 * |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3024 /** | 3043 /** |
3025 * Returns whether the VM was initialized with a precompiled snapshot. Only | 3044 * Returns whether the VM was initialized with a precompiled snapshot. Only |
3026 * valid after Dart_Initialize. | 3045 * valid after Dart_Initialize. |
3027 * DEPRECATED. This is currently used to disable Platform.executable and | 3046 * DEPRECATED. This is currently used to disable Platform.executable and |
3028 * Platform.resolvedExecutable under precompilation to prevent process | 3047 * Platform.resolvedExecutable under precompilation to prevent process |
3029 * spawning tests from becoming fork-bombs. | 3048 * spawning tests from becoming fork-bombs. |
3030 */ | 3049 */ |
3031 DART_EXPORT bool Dart_IsRunningPrecompiledCode(); | 3050 DART_EXPORT bool Dart_IsRunningPrecompiledCode(); |
3032 | 3051 |
3033 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 3052 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
OLD | NEW |