| 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 2674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2685 | 2685 |
| 2686 /** | 2686 /** |
| 2687 * Canonicalizes a url with respect to some library. | 2687 * Canonicalizes a url with respect to some library. |
| 2688 * | 2688 * |
| 2689 * The url is resolved with respect to the library's url and some url | 2689 * The url is resolved with respect to the library's url and some url |
| 2690 * normalizations are performed. | 2690 * normalizations are performed. |
| 2691 * | 2691 * |
| 2692 * This canonicalization function should be sufficient for most | 2692 * This canonicalization function should be sufficient for most |
| 2693 * embedders to implement the Dart_kCanonicalizeUrl tag. | 2693 * embedders to implement the Dart_kCanonicalizeUrl tag. |
| 2694 * | 2694 * |
| 2695 * \param library The library relative to which the url is being | 2695 * \param base_url The base url relative to which the url is |
| 2696 * resolved. | 2696 * being resolved. |
| 2697 * \param url The url being resolved and canonicalized. This | 2697 * \param url The url being resolved and canonicalized. This |
| 2698 * parameter is a string handle. | 2698 * parameter is a string handle. |
| 2699 * | 2699 * |
| 2700 * \return If no error occurs, a String object is returned. Otherwise | 2700 * \return If no error occurs, a String object is returned. Otherwise |
| 2701 * an error handle is returned. | 2701 * an error handle is returned. |
| 2702 */ | 2702 */ |
| 2703 DART_EXPORT Dart_Handle Dart_DefaultCanonicalizeUrl(Dart_Handle library, | 2703 DART_EXPORT Dart_Handle Dart_DefaultCanonicalizeUrl(Dart_Handle base_url, |
| 2704 Dart_Handle url); | 2704 Dart_Handle url); |
| 2705 | 2705 |
| 2706 /** | 2706 /** |
| 2707 * Loads the root script for the current isolate. The script can be | 2707 * Loads the root script for the current isolate. The script can be |
| 2708 * embedded in another file, for example in an html file. | 2708 * embedded in another file, for example in an html file. |
| 2709 * | 2709 * |
| 2710 * TODO(turnidge): Document. | 2710 * TODO(turnidge): Document. |
| 2711 * | 2711 * |
| 2712 * \param line_offset is the number of text lines before the | 2712 * \param line_offset is the number of text lines before the |
| 2713 * first line of the Dart script in the containing file. | 2713 * first line of the Dart script in the containing file. |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3071 /** | 3071 /** |
| 3072 * Returns whether the VM was initialized with a precompiled snapshot. Only | 3072 * Returns whether the VM was initialized with a precompiled snapshot. Only |
| 3073 * valid after Dart_Initialize. | 3073 * valid after Dart_Initialize. |
| 3074 * DEPRECATED. This is currently used to disable Platform.executable and | 3074 * DEPRECATED. This is currently used to disable Platform.executable and |
| 3075 * Platform.resolvedExecutable under precompilation to prevent process | 3075 * Platform.resolvedExecutable under precompilation to prevent process |
| 3076 * spawning tests from becoming fork-bombs. | 3076 * spawning tests from becoming fork-bombs. |
| 3077 */ | 3077 */ |
| 3078 DART_EXPORT bool Dart_IsRunningPrecompiledCode(); | 3078 DART_EXPORT bool Dart_IsRunningPrecompiledCode(); |
| 3079 | 3079 |
| 3080 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 3080 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
| OLD | NEW |