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 1244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1255 | 1255 |
1256 /* | 1256 /* |
1257 * ======= | 1257 * ======= |
1258 * Objects | 1258 * Objects |
1259 * ======= | 1259 * ======= |
1260 */ | 1260 */ |
1261 | 1261 |
1262 /** | 1262 /** |
1263 * Returns the null object. | 1263 * Returns the null object. |
1264 * | 1264 * |
1265 * Requires there to be a current isolate. | |
1266 * | |
1267 * \return A handle to the null object. | 1265 * \return A handle to the null object. |
1268 */ | 1266 */ |
1269 DART_EXPORT Dart_Handle Dart_Null(); | 1267 DART_EXPORT Dart_Handle Dart_Null(); |
1270 | 1268 |
1271 /** | 1269 /** |
| 1270 * Returns the empty string object. |
| 1271 * |
| 1272 * \return A handle to the empty string object. |
| 1273 */ |
| 1274 DART_EXPORT Dart_Handle Dart_EmptyString(); |
| 1275 |
| 1276 /** |
1272 * Is this object null? | 1277 * Is this object null? |
1273 */ | 1278 */ |
1274 DART_EXPORT bool Dart_IsNull(Dart_Handle object); | 1279 DART_EXPORT bool Dart_IsNull(Dart_Handle object); |
1275 | 1280 |
1276 /** | 1281 /** |
1277 * Checks if the two objects are equal. | 1282 * Checks if the two objects are equal. |
1278 * | 1283 * |
1279 * The result of the comparison is returned through the 'equal' | 1284 * The result of the comparison is returned through the 'equal' |
1280 * parameter. The return value itself is used to indicate success or | 1285 * parameter. The return value itself is used to indicate success or |
1281 * failure, not equality. | 1286 * failure, not equality. |
(...skipping 1442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2724 * NOTE: If multiple callbacks with the same name are registered, only the | 2729 * NOTE: If multiple callbacks with the same name are registered, only the |
2725 * last callback registered will be remembered. | 2730 * last callback registered will be remembered. |
2726 */ | 2731 */ |
2727 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( | 2732 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( |
2728 const char* name, | 2733 const char* name, |
2729 Dart_ServiceRequestCallback callback, | 2734 Dart_ServiceRequestCallback callback, |
2730 void* user_data); | 2735 void* user_data); |
2731 | 2736 |
2732 | 2737 |
2733 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2738 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
OLD | NEW |