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

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

Issue 13998008: Add support for even more typed data on native ports (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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
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 949 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 kArray, 960 kArray,
961 kTypedData, 961 kTypedData,
962 kExternalTypedData, 962 kExternalTypedData,
963 kUnsupported, 963 kUnsupported,
964 kNumberOfTypes 964 kNumberOfTypes
965 } type; 965 } type;
966 966
967 enum TypedDataType { 967 enum TypedDataType {
968 kInt8Array = 0, 968 kInt8Array = 0,
969 kUint8Array, 969 kUint8Array,
970 kUint8ClampedArray,
970 kInt16Array, 971 kInt16Array,
971 kUint16Array, 972 kUint16Array,
973 kInt32Array,
974 kUint32Array,
975 kInt64Array,
976 kUint64Array,
977 kFloat32Array,
978 kFloat64Array,
972 kNumberOfTypedDataTypes 979 kNumberOfTypedDataTypes
973 }; 980 };
974 981
975 union { 982 union {
976 bool as_bool; 983 bool as_bool;
977 int32_t as_int32; 984 int32_t as_int32;
978 int64_t as_int64; 985 int64_t as_int64;
979 double as_double; 986 double as_double;
980 char* as_string; 987 char* as_string;
981 char* as_bigint; 988 char* as_bigint;
(...skipping 1607 matching lines...) Expand 10 before | Expand all | Expand 10 after
2589 * 2596 *
2590 * \param object An object. 2597 * \param object An object.
2591 * \param peer A value to store in the peer field. 2598 * \param peer A value to store in the peer field.
2592 * 2599 *
2593 * \return Returns an error if 'object' is a subtype of Null, num, or 2600 * \return Returns an error if 'object' is a subtype of Null, num, or
2594 * bool. 2601 * bool.
2595 */ 2602 */
2596 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); 2603 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer);
2597 2604
2598 #endif // INCLUDE_DART_API_H_ 2605 #endif // INCLUDE_DART_API_H_
OLDNEW
« no previous file with comments | « runtime/bin/file.cc ('k') | runtime/vm/dart_api_message.cc » ('j') | sdk/lib/io/file_impl.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698