Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 659 * isolate was running when the exception was thrown. | 659 * isolate was running when the exception was thrown. |
| 660 * | 660 * |
| 661 * \param error The unhandled exception or error. This handle's scope is | 661 * \param error The unhandled exception or error. This handle's scope is |
| 662 * only valid until the embedder returns from this callback. | 662 * only valid until the embedder returns from this callback. |
| 663 */ | 663 */ |
| 664 typedef void (*Dart_IsolateUnhandledExceptionCallback)(Dart_Handle error); | 664 typedef void (*Dart_IsolateUnhandledExceptionCallback)(Dart_Handle error); |
| 665 | 665 |
| 666 /** | 666 /** |
| 667 * An isolate shutdown callback function. | 667 * An isolate shutdown callback function. |
| 668 * | 668 * |
| 669 * This callback, provided by the embedder, is called after the vm | 669 * This callback, provided by the embedder, is called before the vm |
| 670 * shuts down an isolate. Since the isolate has been shut down, it is | 670 * shuts down an isolate. The isolate being shutdown will be the current |
| 671 * not safe to enter the isolate or use it to run any Dart code. | 671 * isolate. It is safe run Dart code. |
|
siva
2013/07/08 22:39:27
"safe to"
Cutch
2013/07/08 22:43:24
Done.
| |
| 672 * | 672 * |
| 673 * This function should be used to dispose of native resources that | 673 * This function should be used to dispose of native resources that |
| 674 * are allocated to an isolate in order to avoid leaks. | 674 * are allocated to an isolate in order to avoid leaks. |
| 675 * | 675 * |
| 676 * \param callback_data The same callback data which was passed to the | 676 * \param callback_data The same callback data which was passed to the |
| 677 * isolate when it was created. | 677 * isolate when it was created. |
| 678 * | 678 * |
| 679 */ | 679 */ |
| 680 typedef void (*Dart_IsolateShutdownCallback)(void* callback_data); | 680 typedef void (*Dart_IsolateShutdownCallback)(void* callback_data); |
| 681 | 681 |
| (...skipping 1517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2199 * | 2199 * |
| 2200 * \param object An object. | 2200 * \param object An object. |
| 2201 * \param peer A value to store in the peer field. | 2201 * \param peer A value to store in the peer field. |
| 2202 * | 2202 * |
| 2203 * \return Returns an error if 'object' is a subtype of Null, num, or | 2203 * \return Returns an error if 'object' is a subtype of Null, num, or |
| 2204 * bool. | 2204 * bool. |
| 2205 */ | 2205 */ |
| 2206 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); | 2206 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); |
| 2207 | 2207 |
| 2208 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2208 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
| OLD | NEW |