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 2073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2084 DART_EXPORT Dart_Handle Dart_GetNativeArgument(Dart_NativeArguments args, | 2084 DART_EXPORT Dart_Handle Dart_GetNativeArgument(Dart_NativeArguments args, |
| 2085 int index); | 2085 int index); |
| 2086 /* TODO(turnidge): Specify the behavior of an out-of-bounds access. */ | 2086 /* TODO(turnidge): Specify the behavior of an out-of-bounds access. */ |
| 2087 | 2087 |
| 2088 /** | 2088 /** |
| 2089 * Gets the number of native arguments. | 2089 * Gets the number of native arguments. |
| 2090 */ | 2090 */ |
| 2091 DART_EXPORT int Dart_GetNativeArgumentCount(Dart_NativeArguments args); | 2091 DART_EXPORT int Dart_GetNativeArgumentCount(Dart_NativeArguments args); |
| 2092 | 2092 |
| 2093 /** | 2093 /** |
| 2094 * Gets the native instance field of the native argument at some index. | 2094 * Gets all the native fields of the native argument at some index. |
| 2095 * \param args Native arguments structure. | |
| 2096 * \param arg_index Index of the desired argument in the structure above. | |
| 2097 * \param num_fields size of the intptr_t array 'field_values' passed in. | |
| 2098 * \param field_values intptr_t array in which native field values are returned. | |
| 2099 * \return Success if the native fields where copied in successfully. Otherwise | |
| 2100 * returnds an error handle. On success the native field values are copied | |
|
vsm
2014/02/21 16:19:04
returnds -> returns
siva
2014/02/21 19:01:09
Done.
| |
| 2101 * into the 'field_values' array, if the argument at 'arg_index' is a | |
| 2102 * null object then 0 is copied as the native field values into the | |
| 2103 * 'field_values' array. | |
| 2095 */ | 2104 */ |
| 2096 DART_EXPORT Dart_Handle Dart_GetNativeFieldOfArgument(Dart_NativeArguments args, | 2105 DART_EXPORT Dart_Handle Dart_GetNativeFieldsOfArgument( |
| 2097 int arg_index, | 2106 Dart_NativeArguments args, |
| 2098 int fld_index, | 2107 int arg_index, |
| 2099 intptr_t* value); | 2108 int num_fields, |
| 2109 intptr_t* field_values); | |
| 2100 | 2110 |
| 2101 /** | 2111 /** |
| 2102 * Gets the native field of the receiver. | 2112 * Gets the native field of the receiver. |
| 2103 */ | 2113 */ |
| 2104 DART_EXPORT Dart_Handle Dart_GetNativeReceiver(Dart_NativeArguments args, | 2114 DART_EXPORT Dart_Handle Dart_GetNativeReceiver(Dart_NativeArguments args, |
| 2105 intptr_t* value); | 2115 intptr_t* value); |
| 2106 | 2116 |
| 2107 /** | 2117 /** |
| 2108 * Gets a string native argument at some index. | 2118 * Gets a string native argument at some index. |
| 2109 * \param args Native arguments structure. | 2119 * \param args Native arguments structure. |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2533 * NOTE: If multiple callbacks with the same name are registered, only the | 2543 * NOTE: If multiple callbacks with the same name are registered, only the |
| 2534 * last callback registered will be remembered. | 2544 * last callback registered will be remembered. |
| 2535 */ | 2545 */ |
| 2536 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( | 2546 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( |
| 2537 const char* name, | 2547 const char* name, |
| 2538 Dart_ServiceRequestCallback callback, | 2548 Dart_ServiceRequestCallback callback, |
| 2539 void* user_data); | 2549 void* user_data); |
| 2540 | 2550 |
| 2541 | 2551 |
| 2542 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2552 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
| OLD | NEW |