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

Side by Side Diff: include/dart_api.h

Issue 10433003: Make Dart_GetClass work for private classes. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 7 months 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 | vm/dart_api_impl.cc » ('j') | vm/object.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 2018 matching lines...) Expand 10 before | Expand all | Expand 10 after
2029 * TODO(turnidge): Document. 2029 * TODO(turnidge): Document.
2030 */ 2030 */
2031 DART_EXPORT Dart_Handle Dart_CompileAll(); 2031 DART_EXPORT Dart_Handle Dart_CompileAll();
2032 2032
2033 /** 2033 /**
2034 * Is this object a Library? 2034 * Is this object a Library?
2035 */ 2035 */
2036 DART_EXPORT bool Dart_IsLibrary(Dart_Handle object); 2036 DART_EXPORT bool Dart_IsLibrary(Dart_Handle object);
2037 2037
2038 /** 2038 /**
2039 * Lookup a class by name from a Library. 2039 * Lookup a class or interface by name from a Library.
2040 *
2041 * \param library The library containing the class or interface.
2042 * \param class_name The name of the class or interface.
2040 * 2043 *
2041 * \return If no error occurs, the Library is returned. Otherwise an 2044 * \return If no error occurs, the Library is returned. Otherwise an
siva 2012/05/23 20:59:06 the class or interface is returned.
turnidge 2012/05/23 21:44:50 Done.
2042 * error handle is returned. 2045 * error handle is returned.
2043 */ 2046 */
2044 DART_EXPORT Dart_Handle Dart_GetClass(Dart_Handle library, Dart_Handle name); 2047 DART_EXPORT Dart_Handle Dart_GetClass(Dart_Handle library,
2048 Dart_Handle class_name);
2045 // TODO(turnidge): Consider returning Dart_Null() when the class is 2049 // TODO(turnidge): Consider returning Dart_Null() when the class is
2046 // not found to distinguish that from a true error case. 2050 // not found to distinguish that from a true error case.
2047 2051
2048 DART_EXPORT Dart_Handle Dart_LibraryUrl(Dart_Handle library); 2052 DART_EXPORT Dart_Handle Dart_LibraryUrl(Dart_Handle library);
2049 2053
2050 DART_EXPORT Dart_Handle Dart_LookupLibrary(Dart_Handle url); 2054 DART_EXPORT Dart_Handle Dart_LookupLibrary(Dart_Handle url);
2051 // TODO(turnidge): Consider returning Dart_Null() when the library is 2055 // TODO(turnidge): Consider returning Dart_Null() when the library is
2052 // not found to distinguish that from a true error case. 2056 // not found to distinguish that from a true error case.
2053 2057
2054 DART_EXPORT Dart_Handle Dart_LoadLibrary(Dart_Handle url, 2058 DART_EXPORT Dart_Handle Dart_LoadLibrary(Dart_Handle url,
(...skipping 23 matching lines...) Expand all
2078 2082
2079 // --- Profiling support ---- 2083 // --- Profiling support ----
2080 2084
2081 // External pprof support for gathering and dumping symbolic 2085 // External pprof support for gathering and dumping symbolic
2082 // information that can be used for better profile reports for 2086 // information that can be used for better profile reports for
2083 // dynamically generated code. 2087 // dynamically generated code.
2084 DART_EXPORT void Dart_InitPprofSupport(); 2088 DART_EXPORT void Dart_InitPprofSupport();
2085 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); 2089 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size);
2086 2090
2087 #endif // INCLUDE_DART_API_H_ 2091 #endif // INCLUDE_DART_API_H_
OLDNEW
« no previous file with comments | « no previous file | vm/dart_api_impl.cc » ('j') | vm/object.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698