OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 Dictionary& operator=(const Dictionary&); | 65 Dictionary& operator=(const Dictionary&); |
66 | 66 |
67 bool isObject() const; | 67 bool isObject() const; |
68 bool isUndefinedOrNull() const; | 68 bool isUndefinedOrNull() const; |
69 | 69 |
70 bool get(const String&, bool&) const; | 70 bool get(const String&, bool&) const; |
71 bool get(const String&, int32_t&) const; | 71 bool get(const String&, int32_t&) const; |
72 bool get(const String&, double&, bool& hasValue) const; | 72 bool get(const String&, double&, bool& hasValue) const; |
73 bool get(const String&, double&) const; | 73 bool get(const String&, double&) const; |
74 bool get(const String&, String&) const; | 74 bool get(const String&, String&) const; |
| 75 bool get(const String&, AtomicString&) const; |
75 bool get(const String&, ScriptValue&) const; | 76 bool get(const String&, ScriptValue&) const; |
76 bool get(const String&, short&) const; | 77 bool get(const String&, short&) const; |
77 bool get(const String&, unsigned short&) const; | 78 bool get(const String&, unsigned short&) const; |
78 bool get(const String&, unsigned&) const; | 79 bool get(const String&, unsigned&) const; |
79 bool get(const String&, unsigned long&) const; | 80 bool get(const String&, unsigned long&) const; |
80 bool get(const String&, unsigned long long&) const; | 81 bool get(const String&, unsigned long long&) const; |
81 bool get(const String&, RefPtr<DOMWindow>&) const; | 82 bool get(const String&, RefPtr<DOMWindow>&) const; |
82 bool get(const String&, RefPtr<Storage>&) const; | 83 bool get(const String&, RefPtr<Storage>&) const; |
83 bool get(const String&, MessagePortArray&) const; | 84 bool get(const String&, MessagePortArray&) const; |
84 bool get(const String&, RefPtr<Uint8Array>&) const; | 85 bool get(const String&, RefPtr<Uint8Array>&) const; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 template<typename IntegralType> | 155 template<typename IntegralType> |
155 bool convert(ConversionContext &, const String&, IntegralType&) const; | 156 bool convert(ConversionContext &, const String&, IntegralType&) const; |
156 bool convert(ConversionContext &, const String&, MessagePortArray&) const; | 157 bool convert(ConversionContext &, const String&, MessagePortArray&) const; |
157 bool convert(ConversionContext &, const String&, HashSet<AtomicString>&) con
st; | 158 bool convert(ConversionContext &, const String&, HashSet<AtomicString>&) con
st; |
158 bool convert(ConversionContext &, const String&, Dictionary&) const; | 159 bool convert(ConversionContext &, const String&, Dictionary&) const; |
159 bool convert(ConversionContext &, const String&, Vector<String>&) const; | 160 bool convert(ConversionContext &, const String&, Vector<String>&) const; |
160 bool convert(ConversionContext &, const String&, ArrayValue&) const; | 161 bool convert(ConversionContext &, const String&, ArrayValue&) const; |
161 template<typename T> | 162 template<typename T> |
162 bool convert(ConversionContext &, const String&, RefPtr<T>&) const; | 163 bool convert(ConversionContext &, const String&, RefPtr<T>&) const; |
163 | 164 |
| 165 template<typename StringType> |
| 166 bool getStringType(const String&, StringType&) const; |
| 167 |
164 bool getOwnPropertiesAsStringHashMap(HashMap<String, String>&) const; | 168 bool getOwnPropertiesAsStringHashMap(HashMap<String, String>&) const; |
165 bool getOwnPropertyNames(Vector<String>&) const; | 169 bool getOwnPropertyNames(Vector<String>&) const; |
166 | 170 |
167 bool getWithUndefinedOrNullCheck(const String&, String&) const; | 171 bool getWithUndefinedOrNullCheck(const String&, String&) const; |
168 | 172 |
169 bool hasProperty(const String&) const; | 173 bool hasProperty(const String&) const; |
170 | 174 |
171 // Only allow inline allocation. | 175 // Only allow inline allocation. |
172 void* operator new(size_t, NotNullTag, void* location) { return location; } | 176 void* operator new(size_t, NotNullTag, void* location) { return location; } |
173 | 177 |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 if (context.isNullable() && WebCore::isUndefinedOrNull(v8Value)) | 321 if (context.isNullable() && WebCore::isUndefinedOrNull(v8Value)) |
318 return true; | 322 return true; |
319 | 323 |
320 context.throwTypeError(ExceptionMessages::incorrectPropertyType(key, "does n
ot have a " + context.typeName() + " type.")); | 324 context.throwTypeError(ExceptionMessages::incorrectPropertyType(key, "does n
ot have a " + context.typeName() + " type.")); |
321 return false; | 325 return false; |
322 } | 326 } |
323 | 327 |
324 } | 328 } |
325 | 329 |
326 #endif // Dictionary_h | 330 #endif // Dictionary_h |
OLD | NEW |