| 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 27 matching lines...) Expand all Loading... |
| 38 #include "wtf/HashSet.h" | 38 #include "wtf/HashSet.h" |
| 39 #include "wtf/Vector.h" | 39 #include "wtf/Vector.h" |
| 40 #include "wtf/text/AtomicString.h" | 40 #include "wtf/text/AtomicString.h" |
| 41 #include "wtf/text/WTFString.h" | 41 #include "wtf/text/WTFString.h" |
| 42 | 42 |
| 43 namespace WebCore { | 43 namespace WebCore { |
| 44 | 44 |
| 45 class ArrayValue; | 45 class ArrayValue; |
| 46 class DOMError; | 46 class DOMError; |
| 47 class DOMWindow; | 47 class DOMWindow; |
| 48 class Gamepad; |
| 48 class IDBKeyRange; | 49 class IDBKeyRange; |
| 49 class MIDIPort; | 50 class MIDIPort; |
| 50 class MediaKeyError; | 51 class MediaKeyError; |
| 51 class Notification; | 52 class Notification; |
| 52 class SpeechRecognitionError; | 53 class SpeechRecognitionError; |
| 53 class SpeechRecognitionResult; | 54 class SpeechRecognitionResult; |
| 54 class SpeechRecognitionResultList; | 55 class SpeechRecognitionResultList; |
| 55 class Storage; | 56 class Storage; |
| 56 class TrackBase; | 57 class TrackBase; |
| 57 class VoidCallback; | 58 class VoidCallback; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 83 bool get(const String&, RefPtrWillBeRawPtr<Storage>&) const; | 84 bool get(const String&, RefPtrWillBeRawPtr<Storage>&) const; |
| 84 bool get(const String&, MessagePortArray&) const; | 85 bool get(const String&, MessagePortArray&) const; |
| 85 bool get(const String&, RefPtr<Uint8Array>&) const; | 86 bool get(const String&, RefPtr<Uint8Array>&) const; |
| 86 bool get(const String&, RefPtr<ArrayBufferView>&) const; | 87 bool get(const String&, RefPtr<ArrayBufferView>&) const; |
| 87 bool get(const String&, RefPtr<MIDIPort>&) const; | 88 bool get(const String&, RefPtr<MIDIPort>&) const; |
| 88 bool get(const String&, RefPtr<MediaKeyError>&) const; | 89 bool get(const String&, RefPtr<MediaKeyError>&) const; |
| 89 bool get(const String&, RefPtr<TrackBase>&) const; | 90 bool get(const String&, RefPtr<TrackBase>&) const; |
| 90 bool get(const String&, RefPtr<SpeechRecognitionError>&) const; | 91 bool get(const String&, RefPtr<SpeechRecognitionError>&) const; |
| 91 bool get(const String&, RefPtrWillBeRawPtr<SpeechRecognitionResult>&) const; | 92 bool get(const String&, RefPtrWillBeRawPtr<SpeechRecognitionResult>&) const; |
| 92 bool get(const String&, RefPtrWillBeRawPtr<SpeechRecognitionResultList>&) co
nst; | 93 bool get(const String&, RefPtrWillBeRawPtr<SpeechRecognitionResultList>&) co
nst; |
| 94 bool get(const String&, RefPtrWillBeRawPtr<Gamepad>&) const; |
| 93 bool get(const String&, RefPtr<MediaStream>&) const; | 95 bool get(const String&, RefPtr<MediaStream>&) const; |
| 94 bool get(const String&, RefPtr<EventTarget>&) const; | 96 bool get(const String&, RefPtr<EventTarget>&) const; |
| 95 bool get(const String&, HashSet<AtomicString>&) const; | 97 bool get(const String&, HashSet<AtomicString>&) const; |
| 96 bool get(const String&, Dictionary&) const; | 98 bool get(const String&, Dictionary&) const; |
| 97 bool get(const String&, Vector<String>&) const; | 99 bool get(const String&, Vector<String>&) const; |
| 98 bool get(const String&, ArrayValue&) const; | 100 bool get(const String&, ArrayValue&) const; |
| 99 bool get(const String&, RefPtr<DOMError>&) const; | 101 bool get(const String&, RefPtr<DOMError>&) const; |
| 100 bool get(const String&, OwnPtr<VoidCallback>&) const; | 102 bool get(const String&, OwnPtr<VoidCallback>&) const; |
| 101 bool get(const String&, v8::Local<v8::Value>&) const; | 103 bool get(const String&, v8::Local<v8::Value>&) const; |
| 102 | 104 |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 if (context.isNullable() && WebCore::isUndefinedOrNull(v8Value)) | 319 if (context.isNullable() && WebCore::isUndefinedOrNull(v8Value)) |
| 318 return true; | 320 return true; |
| 319 | 321 |
| 320 context.throwTypeError(ExceptionMessages::incorrectPropertyType(key, "does n
ot have a " + context.typeName() + " type.")); | 322 context.throwTypeError(ExceptionMessages::incorrectPropertyType(key, "does n
ot have a " + context.typeName() + " type.")); |
| 321 return false; | 323 return false; |
| 322 } | 324 } |
| 323 | 325 |
| 324 } | 326 } |
| 325 | 327 |
| 326 #endif // Dictionary_h | 328 #endif // Dictionary_h |
| OLD | NEW |