Chromium Code Reviews| 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 2040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2051 * | 2051 * |
| 2052 * If the root script has not yet been set for the current isolate, | 2052 * If the root script has not yet been set for the current isolate, |
| 2053 * this function returns Dart_Null(). This function never returns an | 2053 * this function returns Dart_Null(). This function never returns an |
| 2054 * error handle. | 2054 * error handle. |
| 2055 * | 2055 * |
| 2056 * \return Returns the root Library for the current isolate or Dart_Null(). | 2056 * \return Returns the root Library for the current isolate or Dart_Null(). |
| 2057 */ | 2057 */ |
| 2058 DART_EXPORT Dart_Handle Dart_RootLibrary(); | 2058 DART_EXPORT Dart_Handle Dart_RootLibrary(); |
| 2059 | 2059 |
| 2060 /** | 2060 /** |
| 2061 * Lookup or instantiate a type by name and type arguments from a Library. | |
| 2062 * | |
| 2063 * \param library The library containing the class or interface. | |
| 2064 * \param type_name The name of the type. | |
|
regis
2013/06/18 08:14:24
Didn't we decide to call this parameter class_name
siva
2013/06/18 17:23:58
Yes, I cut and paste the prototype from the first
| |
| 2065 * \param number_of_type_arguments Number of type arguments. | |
| 2066 * For non parametric types the number of type arguments would be 0. | |
| 2067 * \param type_arguments Pointer to an array of type arguments. | |
| 2068 * For non parameteric types a NULL would be passed in for this argument. | |
| 2069 * | |
| 2070 * \return If no error occurs, the type is returned. | |
| 2071 * Otherwise an error handle is returned. | |
| 2072 */ | |
| 2073 DART_EXPORT Dart_Handle Dart_GetType(Dart_Handle library, | |
| 2074 Dart_Handle type_name, | |
|
regis
2013/06/18 08:14:24
class_name?
siva
2013/06/18 17:23:58
Done.
| |
| 2075 intptr_t number_of_type_arguments, | |
| 2076 Dart_Handle* type_arguments); | |
| 2077 | |
| 2078 /** | |
| 2061 * Lookup a class or interface by name from a Library. | 2079 * Lookup a class or interface by name from a Library. |
| 2062 * | 2080 * |
| 2063 * \param library The library containing the class or interface. | 2081 * \param library The library containing the class or interface. |
| 2064 * \param class_name The name of the class or interface. | 2082 * \param class_name The name of the class or interface. |
| 2065 * | 2083 * |
| 2066 * \return If no error occurs, the class or interface is | 2084 * \return If no error occurs, the class or interface is |
| 2067 * returned. Otherwise an error handle is returned. | 2085 * returned. Otherwise an error handle is returned. |
| 2068 */ | 2086 */ |
| 2069 DART_EXPORT Dart_Handle Dart_GetClass(Dart_Handle library, | 2087 DART_EXPORT Dart_Handle Dart_GetClass(Dart_Handle library, |
| 2070 Dart_Handle class_name); | 2088 Dart_Handle class_name); |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2156 * | 2174 * |
| 2157 * \param object An object. | 2175 * \param object An object. |
| 2158 * \param peer A value to store in the peer field. | 2176 * \param peer A value to store in the peer field. |
| 2159 * | 2177 * |
| 2160 * \return Returns an error if 'object' is a subtype of Null, num, or | 2178 * \return Returns an error if 'object' is a subtype of Null, num, or |
| 2161 * bool. | 2179 * bool. |
| 2162 */ | 2180 */ |
| 2163 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); | 2181 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); |
| 2164 | 2182 |
| 2165 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2183 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
| OLD | NEW |