| 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 2223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2234 /* TODO(turnidge): Rename to Dart_LibraryLoadSource? */ | 2234 /* TODO(turnidge): Rename to Dart_LibraryLoadSource? */ |
| 2235 | 2235 |
| 2236 | 2236 |
| 2237 /** | 2237 /** |
| 2238 * Loads a patch source string into a library. | 2238 * Loads a patch source string into a library. |
| 2239 * | 2239 * |
| 2240 * \param library A library | 2240 * \param library A library |
| 2241 * \param url A url identifying the origin of the patch source | 2241 * \param url A url identifying the origin of the patch source |
| 2242 * \param source A string of Dart patch source | 2242 * \param source A string of Dart patch source |
| 2243 */ | 2243 */ |
| 2244 DART_EXPORT Dart_Handle Dart_LoadPatch(Dart_Handle library, | 2244 DART_EXPORT Dart_Handle Dart_LibraryLoadPatch(Dart_Handle library, |
| 2245 Dart_Handle url, | 2245 Dart_Handle url, |
| 2246 Dart_Handle patch_source); | 2246 Dart_Handle patch_source); |
| 2247 | 2247 |
| 2248 | 2248 |
| 2249 /* | 2249 /* |
| 2250 * ===== | 2250 * ===== |
| 2251 * Peers | 2251 * Peers |
| 2252 * ===== | 2252 * ===== |
| 2253 */ | 2253 */ |
| 2254 | 2254 |
| 2255 /** | 2255 /** |
| 2256 * The peer field is a lazily allocated field intendend for storage of | 2256 * The peer field is a lazily allocated field intendend for storage of |
| (...skipping 20 matching lines...) Expand all Loading... |
| 2277 * | 2277 * |
| 2278 * \param object An object. | 2278 * \param object An object. |
| 2279 * \param peer A value to store in the peer field. | 2279 * \param peer A value to store in the peer field. |
| 2280 * | 2280 * |
| 2281 * \return Returns an error if 'object' is a subtype of Null, num, or | 2281 * \return Returns an error if 'object' is a subtype of Null, num, or |
| 2282 * bool. | 2282 * bool. |
| 2283 */ | 2283 */ |
| 2284 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); | 2284 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); |
| 2285 | 2285 |
| 2286 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2286 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
| OLD | NEW |