OLD | NEW |
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 BIN_DARTUTILS_H_ | 5 #ifndef BIN_DARTUTILS_H_ |
6 #define BIN_DARTUTILS_H_ | 6 #define BIN_DARTUTILS_H_ |
7 | 7 |
8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
9 #include "include/dart_native_api.h" | 9 #include "include/dart_native_api.h" |
10 | 10 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 static bool GetInt64Value(Dart_Handle value_obj, int64_t* value); | 97 static bool GetInt64Value(Dart_Handle value_obj, int64_t* value); |
98 // Returns the string value of a Dart object. If the object is not | 98 // Returns the string value of a Dart object. If the object is not |
99 // a string value an API error is propagated. | 99 // a string value an API error is propagated. |
100 static const char* GetStringValue(Dart_Handle str_obj); | 100 static const char* GetStringValue(Dart_Handle str_obj); |
101 // Returns the boolean value of a Dart object. If the object is not | 101 // Returns the boolean value of a Dart object. If the object is not |
102 // a boolean value an API error is propagated. | 102 // a boolean value an API error is propagated. |
103 static bool GetBooleanValue(Dart_Handle bool_obj); | 103 static bool GetBooleanValue(Dart_Handle bool_obj); |
104 | 104 |
105 static void SetIntegerField(Dart_Handle handle, | 105 static void SetIntegerField(Dart_Handle handle, |
106 const char* name, | 106 const char* name, |
107 intptr_t val); | 107 int64_t val); |
108 static intptr_t GetIntegerField(Dart_Handle handle, | |
109 const char* name); | |
110 static void SetStringField(Dart_Handle handle, | 108 static void SetStringField(Dart_Handle handle, |
111 const char* name, | 109 const char* name, |
112 const char* val); | 110 const char* val); |
113 static bool IsDartSchemeURL(const char* url_name); | 111 static bool IsDartSchemeURL(const char* url_name); |
114 static bool IsDartExtensionSchemeURL(const char* url_name); | 112 static bool IsDartExtensionSchemeURL(const char* url_name); |
115 static bool IsDartIOLibURL(const char* url_name); | 113 static bool IsDartIOLibURL(const char* url_name); |
116 static bool IsDartBuiltinLibURL(const char* url_name); | 114 static bool IsDartBuiltinLibURL(const char* url_name); |
117 static bool IsHttpSchemeURL(const char* url_name); | 115 static bool IsHttpSchemeURL(const char* url_name); |
118 static Dart_Handle CanonicalizeURL(CommandLineOptions* url_mapping, | 116 static Dart_Handle CanonicalizeURL(CommandLineOptions* url_mapping, |
119 Dart_Handle library, | 117 Dart_Handle library, |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 } | 541 } |
544 | 542 |
545 private: | 543 private: |
546 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); | 544 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); |
547 }; | 545 }; |
548 | 546 |
549 } // namespace bin | 547 } // namespace bin |
550 } // namespace dart | 548 } // namespace dart |
551 | 549 |
552 #endif // BIN_DARTUTILS_H_ | 550 #endif // BIN_DARTUTILS_H_ |
OLD | NEW |