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

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

Issue 24210003: Never return a Dart_Handle on a dart::Class from the embedding API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: UnwrapTypeHandle, ClassName->TypeName Created 7 years, 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 2 * Copyright (c) 2013, 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_MIRRORS_API_H_ 7 #ifndef INCLUDE_DART_MIRRORS_API_H_
8 #define INCLUDE_DART_MIRRORS_API_H_ 8 #define INCLUDE_DART_MIRRORS_API_H_
9 9
10 #include "include/dart_api.h" 10 #include "include/dart_api.h"
11 11
12 12
13 /** 13 /**
14 * Returns the class name for the provided class. 14 * Returns the simple name for the provided type.
15 */ 15 */
16 DART_EXPORT Dart_Handle Dart_TypeName(Dart_Handle type);
16 DART_EXPORT Dart_Handle Dart_ClassName(Dart_Handle type); 17 DART_EXPORT Dart_Handle Dart_ClassName(Dart_Handle type);
17 18
18 /** 19 /**
19 * Returns the qualified class name for the provided class. 20 * Returns the qualified name for the provided type.
20 */ 21 */
22 DART_EXPORT Dart_Handle Dart_QualifiedTypeName(Dart_Handle type);
21 DART_EXPORT Dart_Handle Dart_QualifiedClassName(Dart_Handle type); 23 DART_EXPORT Dart_Handle Dart_QualifiedClassName(Dart_Handle type);
22 24
23 /** 25 /**
24 * Returns a list of the names of all functions or methods declared in 26 * Returns a list of the names of all functions or methods declared in
25 * a library or class. 27 * a library or class.
26 * 28 *
27 * \param target A library or class. 29 * \param target A library or class.
28 * 30 *
29 * \return If no error occurs, a list of strings is returned. 31 * \return If no error occurs, a list of strings is returned.
30 * Otherwise an error handle is returned. 32 * Otherwise an error handle is returned.
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 /** 135 /**
134 * Retrieves the function of a closure. 136 * Retrieves the function of a closure.
135 * 137 *
136 * \return A handle to the function of the closure, or an error handle if the 138 * \return A handle to the function of the closure, or an error handle if the
137 * argument is not a closure. 139 * argument is not a closure.
138 */ 140 */
139 DART_EXPORT Dart_Handle Dart_ClosureFunction(Dart_Handle closure); 141 DART_EXPORT Dart_Handle Dart_ClosureFunction(Dart_Handle closure);
140 142
141 143
142 #endif /* INCLUDE_DART_MIRRORS_API_H_ */ /* NOLINT */ 144 #endif /* INCLUDE_DART_MIRRORS_API_H_ */ /* NOLINT */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698