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

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

Issue 117723002: Allow the native resolver to setup whether it needs the Dart API scope to (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | « runtime/bin/vmservice_impl.cc ('k') | runtime/vm/benchmark_test.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 /* 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 2104 matching lines...) Expand 10 before | Expand all | Expand 10 after
2115 * Native entry resolution callback. 2115 * Native entry resolution callback.
2116 * 2116 *
2117 * For libraries and scripts which have native functions, the embedder 2117 * For libraries and scripts which have native functions, the embedder
2118 * can provide a native entry resolver. This callback is used to map a 2118 * can provide a native entry resolver. This callback is used to map a
2119 * name/arity to a Dart_NativeFunction. If no function is found, the 2119 * name/arity to a Dart_NativeFunction. If no function is found, the
2120 * callback should return NULL. 2120 * callback should return NULL.
2121 * 2121 *
2122 * See Dart_SetNativeResolver. 2122 * See Dart_SetNativeResolver.
2123 */ 2123 */
2124 typedef Dart_NativeFunction (*Dart_NativeEntryResolver)(Dart_Handle name, 2124 typedef Dart_NativeFunction (*Dart_NativeEntryResolver)(Dart_Handle name,
2125 int num_of_arguments); 2125 int num_of_arguments,
2126 bool* auto_setup_scope);
2126 /* TODO(turnidge): Consider renaming to NativeFunctionResolver or 2127 /* TODO(turnidge): Consider renaming to NativeFunctionResolver or
2127 * NativeResolver. */ 2128 * NativeResolver. */
2128 2129
2129 /* 2130 /*
2130 * =========== 2131 * ===========
2131 * Environment 2132 * Environment
2132 * =========== 2133 * ===========
2133 */ 2134 */
2134 2135
2135 /** 2136 /**
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
2357 * 2358 *
2358 * \param object An object. 2359 * \param object An object.
2359 * \param peer A value to store in the peer field. 2360 * \param peer A value to store in the peer field.
2360 * 2361 *
2361 * \return Returns an error if 'object' is a subtype of Null, num, or 2362 * \return Returns an error if 'object' is a subtype of Null, num, or
2362 * bool. 2363 * bool.
2363 */ 2364 */
2364 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); 2365 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer);
2365 2366
2366 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 2367 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « runtime/bin/vmservice_impl.cc ('k') | runtime/vm/benchmark_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698