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 2136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2147 | 2147 |
2148 | 2148 |
2149 /* | 2149 /* |
2150 * ===================== | 2150 * ===================== |
2151 * Scripts and Libraries | 2151 * Scripts and Libraries |
2152 * ===================== | 2152 * ===================== |
2153 */ | 2153 */ |
2154 /* TODO(turnidge): Finish documenting this section. */ | 2154 /* TODO(turnidge): Finish documenting this section. */ |
2155 | 2155 |
2156 typedef enum { | 2156 typedef enum { |
2157 Dart_kLibraryTag = 0, | 2157 Dart_kImportTag = 0, |
2158 Dart_kImportTag, | |
2159 Dart_kSourceTag, | 2158 Dart_kSourceTag, |
2160 Dart_kCanonicalizeUrl | 2159 Dart_kCanonicalizeUrl |
2161 } Dart_LibraryTag; | 2160 } Dart_LibraryTag; |
2162 | 2161 |
2163 /* TODO(turnidge): Document. */ | 2162 /* TODO(turnidge): Document. */ |
2164 typedef Dart_Handle (*Dart_LibraryTagHandler)(Dart_LibraryTag tag, | 2163 typedef Dart_Handle (*Dart_LibraryTagHandler)(Dart_LibraryTag tag, |
2165 Dart_Handle library, | 2164 Dart_Handle library, |
2166 Dart_Handle url); | 2165 Dart_Handle url); |
2167 | 2166 |
2168 /** | 2167 /** |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2338 * | 2337 * |
2339 * \param object An object. | 2338 * \param object An object. |
2340 * \param peer A value to store in the peer field. | 2339 * \param peer A value to store in the peer field. |
2341 * | 2340 * |
2342 * \return Returns an error if 'object' is a subtype of Null, num, or | 2341 * \return Returns an error if 'object' is a subtype of Null, num, or |
2343 * bool. | 2342 * bool. |
2344 */ | 2343 */ |
2345 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); | 2344 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); |
2346 | 2345 |
2347 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2346 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
OLD | NEW |