| 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 2640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2651 /* | 2651 /* |
| 2652 * ===================== | 2652 * ===================== |
| 2653 * Scripts and Libraries | 2653 * Scripts and Libraries |
| 2654 * ===================== | 2654 * ===================== |
| 2655 */ | 2655 */ |
| 2656 /* TODO(turnidge): Finish documenting this section. */ | 2656 /* TODO(turnidge): Finish documenting this section. */ |
| 2657 | 2657 |
| 2658 typedef enum { | 2658 typedef enum { |
| 2659 Dart_kImportTag = 0, | 2659 Dart_kImportTag = 0, |
| 2660 Dart_kSourceTag, | 2660 Dart_kSourceTag, |
| 2661 Dart_kCanonicalizeUrl | 2661 Dart_kCanonicalizeUrl, |
| 2662 Dart_kScriptTag, |
| 2662 } Dart_LibraryTag; | 2663 } Dart_LibraryTag; |
| 2663 | 2664 |
| 2664 /* TODO(turnidge): Document. */ | 2665 /* TODO(turnidge): Document. */ |
| 2665 typedef Dart_Handle (*Dart_LibraryTagHandler)(Dart_LibraryTag tag, | 2666 typedef Dart_Handle (*Dart_LibraryTagHandler)(Dart_LibraryTag tag, |
| 2666 Dart_Handle library, | 2667 Dart_Handle library, |
| 2667 Dart_Handle url); | 2668 Dart_Handle url); |
| 2668 | 2669 |
| 2669 /** | 2670 /** |
| 2670 * Sets library tag handler for the current isolate. This handler is | 2671 * Sets library tag handler for the current isolate. This handler is |
| 2671 * used to handle the various tags encountered while loading libraries | 2672 * used to handle the various tags encountered while loading libraries |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3023 /** | 3024 /** |
| 3024 * Returns whether the VM was initialized with a precompiled snapshot. Only | 3025 * Returns whether the VM was initialized with a precompiled snapshot. Only |
| 3025 * valid after Dart_Initialize. | 3026 * valid after Dart_Initialize. |
| 3026 * DEPRECATED. This is currently used to disable Platform.executable and | 3027 * DEPRECATED. This is currently used to disable Platform.executable and |
| 3027 * Platform.resolvedExecutable under precompilation to prevent process | 3028 * Platform.resolvedExecutable under precompilation to prevent process |
| 3028 * spawning tests from becoming fork-bombs. | 3029 * spawning tests from becoming fork-bombs. |
| 3029 */ | 3030 */ |
| 3030 DART_EXPORT bool Dart_IsRunningPrecompiledCode(); | 3031 DART_EXPORT bool Dart_IsRunningPrecompiledCode(); |
| 3031 | 3032 |
| 3032 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 3033 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
| OLD | NEW |