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

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

Issue 116473004: Add Dart API method Dart_SetPersistentHandle to enable setting the value of (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 11 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 | « no previous file | 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 /* 1 /*
2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 * for details. All rights reserved. Use of this source code is governed by a 3 * for details. All rights reserved. Use of this source code is governed by a
4 * BSD-style license that can be found in the LICENSE file. 4 * BSD-style license that can be found in the LICENSE file.
5 */ 5 */
6 6
7 #ifndef INCLUDE_DART_API_H_ 7 #ifndef INCLUDE_DART_API_H_
8 #define INCLUDE_DART_API_H_ 8 #define INCLUDE_DART_API_H_
9 9
10 /** \mainpage Dart Embedding API Reference 10 /** \mainpage Dart Embedding API Reference
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 * Allocates a persistent handle for an object. 390 * Allocates a persistent handle for an object.
391 * 391 *
392 * This handle has the lifetime of the current isolate unless it is 392 * This handle has the lifetime of the current isolate unless it is
393 * explicitly deallocated by calling Dart_DeletePersistentHandle. 393 * explicitly deallocated by calling Dart_DeletePersistentHandle.
394 * 394 *
395 * Requires there to be a current isolate. 395 * Requires there to be a current isolate.
396 */ 396 */
397 DART_EXPORT Dart_PersistentHandle Dart_NewPersistentHandle(Dart_Handle object); 397 DART_EXPORT Dart_PersistentHandle Dart_NewPersistentHandle(Dart_Handle object);
398 398
399 /** 399 /**
400 * Assign value of local handle to a persistent handle.
401 *
402 * Requires there to be a current isolate.
403 *
404 * \param obj1 A persistent handle whose value needs to be set.
405 * \param obj2 An object whose value needs to be set to the persistent handle.
406 *
407 * \return Success if the persistent handle was set
408 * Otherwise, returns an error.
409 */
410 DART_EXPORT void Dart_SetPersistentHandle(Dart_PersistentHandle obj1,
411 Dart_Handle obj2);
412
413 /**
400 * Deallocates a persistent handle. 414 * Deallocates a persistent handle.
401 * 415 *
402 * Requires there to be a current isolate. 416 * Requires there to be a current isolate.
403 */ 417 */
404 DART_EXPORT void Dart_DeletePersistentHandle(Dart_PersistentHandle object); 418 DART_EXPORT void Dart_DeletePersistentHandle(Dart_PersistentHandle object);
405 419
406 /** 420 /**
407 * Allocates a weak persistent handle for an object. 421 * Allocates a weak persistent handle for an object.
408 * 422 *
409 * This handle has the lifetime of the current isolate unless it is 423 * This handle has the lifetime of the current isolate unless it is
(...skipping 1948 matching lines...) Expand 10 before | Expand all | Expand 10 after
2358 * 2372 *
2359 * \param object An object. 2373 * \param object An object.
2360 * \param peer A value to store in the peer field. 2374 * \param peer A value to store in the peer field.
2361 * 2375 *
2362 * \return Returns an error if 'object' is a subtype of Null, num, or 2376 * \return Returns an error if 'object' is a subtype of Null, num, or
2363 * bool. 2377 * bool.
2364 */ 2378 */
2365 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); 2379 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer);
2366 2380
2367 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 2381 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698