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

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

Issue 10867032: Beginning support for library prefixes in the dart API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use Dart_Null in builtin.cc Created 8 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
« no previous file with comments | « runtime/bin/builtin_nolib.cc ('k') | 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) 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 2560 matching lines...) Expand 10 before | Expand all | Expand 10 after
2571 */ 2571 */
2572 DART_EXPORT Dart_Handle Dart_LibraryGetClassNames(Dart_Handle library); 2572 DART_EXPORT Dart_Handle Dart_LibraryGetClassNames(Dart_Handle library);
2573 2573
2574 DART_EXPORT Dart_Handle Dart_LookupLibrary(Dart_Handle url); 2574 DART_EXPORT Dart_Handle Dart_LookupLibrary(Dart_Handle url);
2575 // TODO(turnidge): Consider returning Dart_Null() when the library is 2575 // TODO(turnidge): Consider returning Dart_Null() when the library is
2576 // not found to distinguish that from a true error case. 2576 // not found to distinguish that from a true error case.
2577 2577
2578 DART_EXPORT Dart_Handle Dart_LoadLibrary(Dart_Handle url, 2578 DART_EXPORT Dart_Handle Dart_LoadLibrary(Dart_Handle url,
2579 Dart_Handle source); 2579 Dart_Handle source);
2580 2580
2581 2581 /**
2582 * Imports a library into another library, optionally with a prefix.
2583 * If no prefix is required, an empty string or Dart_Null() can be
2584 * supplied.
2585 *
2586 * \param library The library into which to import another library.
2587 * \param import The library to import.
2588 * \param prefix The prefix under which to import.
2589 *
2590 * \return A valid handle if no error occurs during the operation.
2591 */
2582 DART_EXPORT Dart_Handle Dart_LibraryImportLibrary(Dart_Handle library, 2592 DART_EXPORT Dart_Handle Dart_LibraryImportLibrary(Dart_Handle library,
2583 Dart_Handle import); 2593 Dart_Handle import,
2594 Dart_Handle prefix);
2584 2595
2585 /** 2596 /**
2586 * Loads a source string into a library. 2597 * Loads a source string into a library.
2587 * 2598 *
2588 * \param library A library 2599 * \param library A library
2589 * \param url A url identifying the origin of the source 2600 * \param url A url identifying the origin of the source
2590 * \param source A string of Dart source 2601 * \param source A string of Dart source
2591 * 2602 *
2592 * \return A valid handle if no error occurs during the operation. 2603 * \return A valid handle if no error occurs during the operation.
2593 */ 2604 */
(...skipping 25 matching lines...) Expand all
2619 2630
2620 typedef void (*Dart_FileWriterFunction)(const char* buffer, int64_t num_bytes); 2631 typedef void (*Dart_FileWriterFunction)(const char* buffer, int64_t num_bytes);
2621 2632
2622 // Support for generating symbol maps for use by the Linux perf tool. 2633 // Support for generating symbol maps for use by the Linux perf tool.
2623 DART_EXPORT void Dart_InitPerfEventsSupport(Dart_FileWriterFunction function); 2634 DART_EXPORT void Dart_InitPerfEventsSupport(Dart_FileWriterFunction function);
2624 2635
2625 // Support for generating flow graph compiler debugging output into a file. 2636 // Support for generating flow graph compiler debugging output into a file.
2626 DART_EXPORT void Dart_InitFlowGraphPrinting(Dart_FileWriterFunction function); 2637 DART_EXPORT void Dart_InitFlowGraphPrinting(Dart_FileWriterFunction function);
2627 2638
2628 #endif // INCLUDE_DART_API_H_ 2639 #endif // INCLUDE_DART_API_H_
OLDNEW
« no previous file with comments | « runtime/bin/builtin_nolib.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698