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

Side by Side Diff: include/dart_api.h

Issue 10387061: Resubmit change 7506. (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 | « bin/main.cc ('k') | 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 1913 matching lines...) Expand 10 before | Expand all | Expand 10 after
1924 kCanonicalizeUrl 1924 kCanonicalizeUrl
1925 } Dart_LibraryTag; 1925 } Dart_LibraryTag;
1926 1926
1927 // TODO(turnidge): Document. 1927 // TODO(turnidge): Document.
1928 typedef Dart_Handle (*Dart_LibraryTagHandler)(Dart_LibraryTag tag, 1928 typedef Dart_Handle (*Dart_LibraryTagHandler)(Dart_LibraryTag tag,
1929 Dart_Handle library, 1929 Dart_Handle library,
1930 Dart_Handle url, 1930 Dart_Handle url,
1931 Dart_Handle import_map); 1931 Dart_Handle import_map);
1932 1932
1933 /** 1933 /**
1934 * Set library tag handler for the current isolate. This handler is used to
1935 * handle the various tags encountered while loading libraries or scripts in
1936 * the isolate.
1937 *
1938 * \param handler Handler code to be used for handling the various tags
1939 * encountered while loading libraries or scripts in the isolate.
1940 *
1941 * \return If no error occurs, the handler is set for the isolate.
1942 * Otherwise an error handle is returned.
1943 *
1944 * TODO(turnidge): Document.
1945 */
1946 DART_EXPORT Dart_Handle Dart_SetLibraryTagHandler(
1947 Dart_LibraryTagHandler handler);
1948
1949 /**
1934 * Loads the root script for the current isolate. 1950 * Loads the root script for the current isolate.
1935 * 1951 *
1936 * TODO(turnidge): Document. 1952 * TODO(turnidge): Document.
1937 */ 1953 */
1938 DART_EXPORT Dart_Handle Dart_LoadScript(Dart_Handle url, 1954 DART_EXPORT Dart_Handle Dart_LoadScript(Dart_Handle url,
1939 Dart_Handle source, 1955 Dart_Handle source,
1940 Dart_LibraryTagHandler handler,
1941 Dart_Handle import_map); 1956 Dart_Handle import_map);
1942 1957
1943 /** 1958 /**
1944 * Loads the root script for current isolate from a snapshot. 1959 * Loads the root script for current isolate from a snapshot.
1945 * 1960 *
1946 * \param buffer A buffer which contains a snapshot of the script. 1961 * \param buffer A buffer which contains a snapshot of the script.
1947 * 1962 *
1948 * \return If no error occurs, the Library object corresponding to the root 1963 * \return If no error occurs, the Library object corresponding to the root
1949 * script is returned. Otherwise an error handle is returned. 1964 * script is returned. Otherwise an error handle is returned.
1950 **/ 1965 **/
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
2007 2022
2008 // --- Profiling support ---- 2023 // --- Profiling support ----
2009 2024
2010 // External pprof support for gathering and dumping symbolic 2025 // External pprof support for gathering and dumping symbolic
2011 // information that can be used for better profile reports for 2026 // information that can be used for better profile reports for
2012 // dynamically generated code. 2027 // dynamically generated code.
2013 DART_EXPORT void Dart_InitPprofSupport(); 2028 DART_EXPORT void Dart_InitPprofSupport();
2014 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); 2029 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size);
2015 2030
2016 #endif // INCLUDE_DART_API_H_ 2031 #endif // INCLUDE_DART_API_H_
OLDNEW
« no previous file with comments | « bin/main.cc ('k') | vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698