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

Side by Side Diff: include/dart_api.h

Issue 10302020: Fix issue 2888. (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 1898 matching lines...) Expand 10 before | Expand all | Expand 10 after
1909 kCanonicalizeUrl 1909 kCanonicalizeUrl
1910 } Dart_LibraryTag; 1910 } Dart_LibraryTag;
1911 1911
1912 // TODO(turnidge): Document. 1912 // TODO(turnidge): Document.
1913 typedef Dart_Handle (*Dart_LibraryTagHandler)(Dart_LibraryTag tag, 1913 typedef Dart_Handle (*Dart_LibraryTagHandler)(Dart_LibraryTag tag,
1914 Dart_Handle library, 1914 Dart_Handle library,
1915 Dart_Handle url, 1915 Dart_Handle url,
1916 Dart_Handle import_map); 1916 Dart_Handle import_map);
1917 1917
1918 /** 1918 /**
1919 * Set library tag handler for the current isolate. This handler is used to
1920 * handle the various tags encountered while loading libraries or scripts in
1921 * the isolate.
1922 *
1923 * \param handler Handler code to be used for handling the various tags
1924 * encountered while loading libraries or scripts in the isolate.
1925 *
1926 * \return If no error occurs, the handler is set for the isolate.
1927 * Otherwise an error handle is returned.
1928 *
1929 * TODO(turnidge): Document.
1930 */
1931 DART_EXPORT Dart_Handle Dart_SetLibraryTagHandler(
1932 Dart_LibraryTagHandler handler);
1933
1934 /**
1919 * Loads the root script for the current isolate. 1935 * Loads the root script for the current isolate.
1920 * 1936 *
1921 * TODO(turnidge): Document. 1937 * TODO(turnidge): Document.
1922 */ 1938 */
1923 DART_EXPORT Dart_Handle Dart_LoadScript(Dart_Handle url, 1939 DART_EXPORT Dart_Handle Dart_LoadScript(Dart_Handle url,
1924 Dart_Handle source, 1940 Dart_Handle source,
1925 Dart_LibraryTagHandler handler,
1926 Dart_Handle import_map); 1941 Dart_Handle import_map);
1927 1942
1928 /** 1943 /**
1929 * Loads the root script for current isolate from a snapshot. 1944 * Loads the root script for current isolate from a snapshot.
1930 * 1945 *
1931 * \param buffer A buffer which contains a snapshot of the script. 1946 * \param buffer A buffer which contains a snapshot of the script.
1932 * 1947 *
1933 * \return If no error occurs, the Library object corresponding to the root 1948 * \return If no error occurs, the Library object corresponding to the root
1934 * script is returned. Otherwise an error handle is returned. 1949 * script is returned. Otherwise an error handle is returned.
1935 **/ 1950 **/
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
1992 2007
1993 // --- Profiling support ---- 2008 // --- Profiling support ----
1994 2009
1995 // External pprof support for gathering and dumping symbolic 2010 // External pprof support for gathering and dumping symbolic
1996 // information that can be used for better profile reports for 2011 // information that can be used for better profile reports for
1997 // dynamically generated code. 2012 // dynamically generated code.
1998 DART_EXPORT void Dart_InitPprofSupport(); 2013 DART_EXPORT void Dart_InitPprofSupport();
1999 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); 2014 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size);
2000 2015
2001 #endif // INCLUDE_DART_API_H_ 2016 #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