Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: runtime/include/dart_api.h

Issue 8636021: Reorder the functions in dart_api_impl.cc to match dart_api.h. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef INCLUDE_DART_API_H_ 5 #ifndef INCLUDE_DART_API_H_
6 #define INCLUDE_DART_API_H_ 6 #define INCLUDE_DART_API_H_
7 7
8 /** \mainpage Dart Embedding API Reference 8 /** \mainpage Dart Embedding API Reference
9 * 9 *
10 * Dart is a class-based programming language for creating structured 10 * Dart is a class-based programming language for creating structured
(...skipping 1157 matching lines...) Expand 10 before | Expand all | Expand 10 after
1168 /** 1168 /**
1169 * Lookup a class by name from a Library. 1169 * Lookup a class by name from a Library.
1170 * 1170 *
1171 * \return If no error occurs, the Library is returned. Otherwise an 1171 * \return If no error occurs, the Library is returned. Otherwise an
1172 * error handle is returned. 1172 * error handle is returned.
1173 */ 1173 */
1174 DART_EXPORT Dart_Handle Dart_GetClass(Dart_Handle library, Dart_Handle name); 1174 DART_EXPORT Dart_Handle Dart_GetClass(Dart_Handle library, Dart_Handle name);
1175 1175
1176 DART_EXPORT Dart_Handle Dart_LibraryUrl(Dart_Handle library); 1176 DART_EXPORT Dart_Handle Dart_LibraryUrl(Dart_Handle library);
1177 1177
1178 DART_EXPORT Dart_Handle Dart_LookupLibrary(Dart_Handle url);
1179
1178 DART_EXPORT Dart_Handle Dart_LoadLibrary(Dart_Handle url, 1180 DART_EXPORT Dart_Handle Dart_LoadLibrary(Dart_Handle url,
1179 Dart_Handle source); 1181 Dart_Handle source);
1180 1182
1181 DART_EXPORT Dart_Handle Dart_LookupLibrary(Dart_Handle url);
1182
1183 1183
1184 DART_EXPORT Dart_Handle Dart_LibraryImportLibrary(Dart_Handle library, 1184 DART_EXPORT Dart_Handle Dart_LibraryImportLibrary(Dart_Handle library,
1185 Dart_Handle import); 1185 Dart_Handle import);
1186 1186
1187 DART_EXPORT Dart_Handle Dart_LoadSource(Dart_Handle library, 1187 DART_EXPORT Dart_Handle Dart_LoadSource(Dart_Handle library,
1188 Dart_Handle url, 1188 Dart_Handle url,
1189 Dart_Handle source); 1189 Dart_Handle source);
1190 // TODO(turnidge): Rename to Dart_LibraryLoadSource? 1190 // TODO(turnidge): Rename to Dart_LibraryLoadSource?
1191 1191
1192 /** 1192 /**
1193 * Sets the callback used to resolve native functions for a library. 1193 * Sets the callback used to resolve native functions for a library.
1194 * 1194 *
1195 * \param library A library. 1195 * \param library A library.
1196 * \param resolver A native entry resolver. 1196 * \param resolver A native entry resolver.
1197 * 1197 *
1198 * \return A valid handle if the native resolver was set successfully. 1198 * \return A valid handle if the native resolver was set successfully.
1199 */ 1199 */
1200 DART_EXPORT Dart_Handle Dart_SetNativeResolver( 1200 DART_EXPORT Dart_Handle Dart_SetNativeResolver(
1201 Dart_Handle library, 1201 Dart_Handle library,
1202 Dart_NativeEntryResolver resolver); 1202 Dart_NativeEntryResolver resolver);
1203 // TODO(turnidge): Rename to Dart_LibrarySetNativeResolver? 1203 // TODO(turnidge): Rename to Dart_LibrarySetNativeResolver?
1204 1204
1205
1206 // --- Profiling support ---- 1205 // --- Profiling support ----
1207 1206
1208 // External pprof support for gathering and dumping symbolic 1207 // External pprof support for gathering and dumping symbolic
1209 // information that can be used for better profile reports for 1208 // information that can be used for better profile reports for
1210 // dynamically generated code. 1209 // dynamically generated code.
1211 DART_EXPORT void Dart_InitPprofSupport(); 1210 DART_EXPORT void Dart_InitPprofSupport();
1212 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); 1211 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size);
1213 1212
1214 #endif // INCLUDE_DART_API_H_ 1213 #endif // INCLUDE_DART_API_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698