| 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 2638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2649 | 2649 |
| 2650 | 2650 |
| 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_kCanonicalizeUrl = 0, |
| 2660 Dart_kScriptTag, |
| 2660 Dart_kSourceTag, | 2661 Dart_kSourceTag, |
| 2661 Dart_kCanonicalizeUrl, | 2662 Dart_kImportTag, |
| 2662 Dart_kScriptTag, | |
| 2663 } Dart_LibraryTag; | 2663 } Dart_LibraryTag; |
| 2664 | 2664 |
| 2665 /* TODO(turnidge): Document. */ | 2665 /* TODO(turnidge): Document. */ |
| 2666 typedef Dart_Handle (*Dart_LibraryTagHandler)(Dart_LibraryTag tag, | 2666 typedef Dart_Handle (*Dart_LibraryTagHandler)(Dart_LibraryTag tag, |
| 2667 Dart_Handle library, | 2667 Dart_Handle library, |
| 2668 Dart_Handle url); | 2668 Dart_Handle url); |
| 2669 | 2669 |
| 2670 /** | 2670 /** |
| 2671 * Sets library tag handler for the current isolate. This handler is | 2671 * Sets library tag handler for the current isolate. This handler is |
| 2672 * used to handle the various tags encountered while loading libraries | 2672 * used to handle the various tags encountered while loading libraries |
| (...skipping 398 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 |