| 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 bool convert(ConversionContext&, const String&, PointerType<T>&) const; | 184 bool convert(ConversionContext&, const String&, PointerType<T>&) const; |
| 185 | 185 |
| 186 template<typename StringType> | 186 template<typename StringType> |
| 187 bool getStringType(const String&, StringType&) const; | 187 bool getStringType(const String&, StringType&) const; |
| 188 | 188 |
| 189 bool getOwnPropertiesAsStringHashMap(HashMap<String, String>&) const; | 189 bool getOwnPropertiesAsStringHashMap(HashMap<String, String>&) const; |
| 190 bool getOwnPropertyNames(Vector<String>&) const; | 190 bool getOwnPropertyNames(Vector<String>&) const; |
| 191 | 191 |
| 192 bool getWithUndefinedOrNullCheck(const String&, String&) const; | 192 bool getWithUndefinedOrNullCheck(const String&, String&) const; |
| 193 bool getWithUndefinedOrNullCheck(const String&, RefPtrWillBeMember<Element>&
) const; | 193 bool getWithUndefinedOrNullCheck(const String&, RefPtrWillBeMember<Element>&
) const; |
| 194 bool getWithUndefinedOrNullCheck(const String&, RefPtr<Path2D>&) const; | 194 bool getWithUndefinedOrNullCheck(const String&, RefPtrWillBeMember<Path2D>&)
const; |
| 195 | 195 |
| 196 bool hasProperty(const String&) const; | 196 bool hasProperty(const String&) const; |
| 197 | 197 |
| 198 private: | 198 private: |
| 199 bool getKey(const String& key, v8::Local<v8::Value>&) const; | 199 bool getKey(const String& key, v8::Local<v8::Value>&) const; |
| 200 | 200 |
| 201 v8::Handle<v8::Value> m_options; | 201 v8::Handle<v8::Value> m_options; |
| 202 v8::Isolate* m_isolate; | 202 v8::Isolate* m_isolate; |
| 203 }; | 203 }; |
| 204 | 204 |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 if (context.isNullable() && WebCore::isUndefinedOrNull(v8Value)) | 356 if (context.isNullable() && WebCore::isUndefinedOrNull(v8Value)) |
| 357 return true; | 357 return true; |
| 358 | 358 |
| 359 context.throwTypeError(ExceptionMessages::incorrectPropertyType(key, "does n
ot have a " + context.typeName() + " type.")); | 359 context.throwTypeError(ExceptionMessages::incorrectPropertyType(key, "does n
ot have a " + context.typeName() + " type.")); |
| 360 return false; | 360 return false; |
| 361 } | 361 } |
| 362 | 362 |
| 363 } | 363 } |
| 364 | 364 |
| 365 #endif // Dictionary_h | 365 #endif // Dictionary_h |
| OLD | NEW |