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

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

Issue 9657001: Start using Dart_PropagateError in the runtime/bin directory. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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
« runtime/bin/socket.cc ('K') | « runtime/bin/test_extension_linux.cc ('k') | no next file » | 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 1921 matching lines...) Expand 10 before | Expand all | Expand 10 after
1932 */ 1932 */
1933 DART_EXPORT bool Dart_IsLibrary(Dart_Handle object); 1933 DART_EXPORT bool Dart_IsLibrary(Dart_Handle object);
1934 1934
1935 /** 1935 /**
1936 * Lookup a class by name from a Library. 1936 * Lookup a class by name from a Library.
1937 * 1937 *
1938 * \return If no error occurs, the Library is returned. Otherwise an 1938 * \return If no error occurs, the Library is returned. Otherwise an
1939 * error handle is returned. 1939 * error handle is returned.
1940 */ 1940 */
1941 DART_EXPORT Dart_Handle Dart_GetClass(Dart_Handle library, Dart_Handle name); 1941 DART_EXPORT Dart_Handle Dart_GetClass(Dart_Handle library, Dart_Handle name);
1942 // TODO(turnidge): Consider returning Dart_Null() when the class is
1943 // not found to distinguish that from a true error case.
1942 1944
1943 DART_EXPORT Dart_Handle Dart_LibraryUrl(Dart_Handle library); 1945 DART_EXPORT Dart_Handle Dart_LibraryUrl(Dart_Handle library);
1944 1946
1945 DART_EXPORT Dart_Handle Dart_LookupLibrary(Dart_Handle url); 1947 DART_EXPORT Dart_Handle Dart_LookupLibrary(Dart_Handle url);
1948 // TODO(turnidge): Consider returning Dart_Null() when the library is
1949 // not found to distinguish that from a true error case.
1946 1950
1947 DART_EXPORT Dart_Handle Dart_LoadLibrary(Dart_Handle url, 1951 DART_EXPORT Dart_Handle Dart_LoadLibrary(Dart_Handle url,
1948 Dart_Handle source, 1952 Dart_Handle source,
1949 Dart_Handle import_map); 1953 Dart_Handle import_map);
1950 1954
1951 1955
1952 DART_EXPORT Dart_Handle Dart_LibraryImportLibrary(Dart_Handle library, 1956 DART_EXPORT Dart_Handle Dart_LibraryImportLibrary(Dart_Handle library,
1953 Dart_Handle import); 1957 Dart_Handle import);
1954 1958
1955 DART_EXPORT Dart_Handle Dart_LoadSource(Dart_Handle library, 1959 DART_EXPORT Dart_Handle Dart_LoadSource(Dart_Handle library,
(...skipping 16 matching lines...) Expand all
1972 1976
1973 // --- Profiling support ---- 1977 // --- Profiling support ----
1974 1978
1975 // External pprof support for gathering and dumping symbolic 1979 // External pprof support for gathering and dumping symbolic
1976 // information that can be used for better profile reports for 1980 // information that can be used for better profile reports for
1977 // dynamically generated code. 1981 // dynamically generated code.
1978 DART_EXPORT void Dart_InitPprofSupport(); 1982 DART_EXPORT void Dart_InitPprofSupport();
1979 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); 1983 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size);
1980 1984
1981 #endif // INCLUDE_DART_API_H_ 1985 #endif // INCLUDE_DART_API_H_
OLDNEW
« runtime/bin/socket.cc ('K') | « runtime/bin/test_extension_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698