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

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

Issue 12919020: Remove redundant Dart_LoadScript as it doesn't seem to be used in the VM and hopefully dartium uses… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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
« no previous file with comments | « runtime/bin/gen_snapshot.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 2339 matching lines...) Expand 10 before | Expand all | Expand 10 after
2350 * encountered while loading libraries or scripts in the isolate. 2350 * encountered while loading libraries or scripts in the isolate.
2351 * 2351 *
2352 * \return If no error occurs, the handler is set for the isolate. 2352 * \return If no error occurs, the handler is set for the isolate.
2353 * Otherwise an error handle is returned. 2353 * Otherwise an error handle is returned.
2354 * 2354 *
2355 * TODO(turnidge): Document. 2355 * TODO(turnidge): Document.
2356 */ 2356 */
2357 DART_EXPORT Dart_Handle Dart_SetLibraryTagHandler( 2357 DART_EXPORT Dart_Handle Dart_SetLibraryTagHandler(
2358 Dart_LibraryTagHandler handler); 2358 Dart_LibraryTagHandler handler);
2359 2359
2360
2361 /**
2362 * Loads the root script for the current isolate.
2363 *
2364 * TODO(turnidge): Document.
2365 */
2366 DART_EXPORT Dart_Handle Dart_LoadScript(Dart_Handle url,
2367 Dart_Handle source);
2368
2369 /** 2360 /**
2370 * Loads the root script for the current isolate. The script can be 2361 * Loads the root script for the current isolate. The script can be
2371 * embedded in another file, for example in an html file. 2362 * embedded in another file, for example in an html file.
2372 * 2363 *
2373 * TODO(turnidge): Document. 2364 * TODO(turnidge): Document.
2374 * 2365 *
2375 * \line_offset is the number of text lines before the 2366 * \line_offset is the number of text lines before the
2376 * first line of the Dart script in the containing file. 2367 * first line of the Dart script in the containing file.
2377 * 2368 *
2378 * \col_offset is the number of characters before the first character 2369 * \col_offset is the number of characters before the first character
2379 * in the first line of the Dart script. 2370 * in the first line of the Dart script.
2380 */ 2371 */
2381 DART_EXPORT Dart_Handle Dart_LoadEmbeddedScript( 2372 DART_EXPORT Dart_Handle Dart_LoadScript(Dart_Handle url,
2382 Dart_Handle url,
2383 Dart_Handle source, 2373 Dart_Handle source,
2384 intptr_t line_offset, 2374 intptr_t line_offset,
2385 intptr_t col_offset); 2375 intptr_t col_offset);
2386 2376
2387 /** 2377 /**
2388 * Loads the root script for current isolate from a snapshot. 2378 * Loads the root script for current isolate from a snapshot.
2389 * 2379 *
2390 * \param buffer A buffer which contains a snapshot of the script. 2380 * \param buffer A buffer which contains a snapshot of the script.
2391 * 2381 *
2392 * \return If no error occurs, the Library object corresponding to the root 2382 * \return If no error occurs, the Library object corresponding to the root
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
2565 * 2555 *
2566 * \param object An object. 2556 * \param object An object.
2567 * \param peer A value to store in the peer field. 2557 * \param peer A value to store in the peer field.
2568 * 2558 *
2569 * \return Returns an error if 'object' is a subtype of Null, num, or 2559 * \return Returns an error if 'object' is a subtype of Null, num, or
2570 * bool. 2560 * bool.
2571 */ 2561 */
2572 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); 2562 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer);
2573 2563
2574 #endif // INCLUDE_DART_API_H_ 2564 #endif // INCLUDE_DART_API_H_
OLDNEW
« no previous file with comments | « runtime/bin/gen_snapshot.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698