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

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

Issue 11411271: Remove support for interfaces. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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/lib/mirrors.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) 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 1988 matching lines...) Expand 10 before | Expand all | Expand 10 after
1999 * execution, then an error handle is returned. 1999 * execution, then an error handle is returned.
2000 */ 2000 */
2001 DART_EXPORT Dart_Handle Dart_InvokeClosure(Dart_Handle closure, 2001 DART_EXPORT Dart_Handle Dart_InvokeClosure(Dart_Handle closure,
2002 int number_of_arguments, 2002 int number_of_arguments,
2003 Dart_Handle* arguments); 2003 Dart_Handle* arguments);
2004 2004
2005 // --- Classes and Interfaces --- 2005 // --- Classes and Interfaces ---
2006 2006
2007 /** 2007 /**
2008 * Is this a class handle? 2008 * Is this a class handle?
2009 *
2010 * Most parts of the dart embedding api do not distinguish between
2011 * classes and interfaces. For example, Dart_GetClass can return a
2012 * class or an interface and Dart_New can instantiate a class or an
2013 * interface. The exceptions are Dart_IsClass and Dart_IsInterface,
2014 * which can be used to distinguish whether a handle refers to a class
2015 * or an interface.
2016 */ 2009 */
2017 DART_EXPORT bool Dart_IsClass(Dart_Handle handle); 2010 DART_EXPORT bool Dart_IsClass(Dart_Handle handle);
2018 2011
2019 /** 2012 /**
2020 * Is this an interface handle? 2013 * Is this an abstract class handle?
2021 *
2022 * Most parts of the dart embedding api do not distinguish between
2023 * classes and interfaces. For example, Dart_GetClass can return a
2024 * class or an interface and Dart_New can instantiate a class or an
2025 * interface. The exceptions are Dart_IsClass and Dart_IsInterface,
2026 * which can be used to distinguish whether a handle refers to a class
2027 * or an interface.
2028 */ 2014 */
2029 DART_EXPORT bool Dart_IsInterface(Dart_Handle handle); 2015 DART_EXPORT bool Dart_IsAbstractClass(Dart_Handle handle);
2030 2016
2031 /** 2017 /**
2032 * Returns the class name for the provided class or interface. 2018 * Returns the class name for the provided class or interface.
2033 */ 2019 */
2034 DART_EXPORT Dart_Handle Dart_ClassName(Dart_Handle clazz); 2020 DART_EXPORT Dart_Handle Dart_ClassName(Dart_Handle clazz);
2035 2021
2036 /** 2022 /**
2037 * Returns the library for the provided class or interface. 2023 * Returns the library for the provided class or interface.
2038 */ 2024 */
2039 DART_EXPORT Dart_Handle Dart_ClassGetLibrary(Dart_Handle clazz); 2025 DART_EXPORT Dart_Handle Dart_ClassGetLibrary(Dart_Handle clazz);
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
2781 * 2767 *
2782 * \param object An object. 2768 * \param object An object.
2783 * \param peer A value to store in the peer field. 2769 * \param peer A value to store in the peer field.
2784 * 2770 *
2785 * \return Returns an error if 'object' is a subtype of Null, num, or 2771 * \return Returns an error if 'object' is a subtype of Null, num, or
2786 * bool. 2772 * bool.
2787 */ 2773 */
2788 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); 2774 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer);
2789 2775
2790 #endif // INCLUDE_DART_API_H_ 2776 #endif // INCLUDE_DART_API_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/lib/mirrors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698