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 28 matching lines...) Expand all Loading... |
39 #include "wtf/HashSet.h" | 39 #include "wtf/HashSet.h" |
40 #include "wtf/Vector.h" | 40 #include "wtf/Vector.h" |
41 #include "wtf/text/AtomicString.h" | 41 #include "wtf/text/AtomicString.h" |
42 #include "wtf/text/WTFString.h" | 42 #include "wtf/text/WTFString.h" |
43 | 43 |
44 namespace WebCore { | 44 namespace WebCore { |
45 | 45 |
46 class ArrayValue; | 46 class ArrayValue; |
47 class DOMError; | 47 class DOMError; |
48 class DOMWindow; | 48 class DOMWindow; |
| 49 class Element; |
49 class Gamepad; | 50 class Gamepad; |
50 class IDBKeyRange; | 51 class IDBKeyRange; |
51 class MIDIPort; | 52 class MIDIPort; |
52 class MediaKeyError; | 53 class MediaKeyError; |
53 class Notification; | 54 class Notification; |
| 55 class Path2D; |
54 class SpeechRecognitionError; | 56 class SpeechRecognitionError; |
55 class SpeechRecognitionResult; | 57 class SpeechRecognitionResult; |
56 class SpeechRecognitionResultList; | 58 class SpeechRecognitionResultList; |
57 class Storage; | 59 class Storage; |
58 class TrackBase; | 60 class TrackBase; |
59 class VoidCallback; | 61 class VoidCallback; |
60 | 62 |
61 class Dictionary { | 63 class Dictionary { |
62 ALLOW_ONLY_INLINE_ALLOCATION(); | 64 ALLOW_ONLY_INLINE_ALLOCATION(); |
63 public: | 65 public: |
(...skipping 16 matching lines...) Expand all Loading... |
80 bool get(const String&, short&) const; | 82 bool get(const String&, short&) const; |
81 bool get(const String&, unsigned short&) const; | 83 bool get(const String&, unsigned short&) const; |
82 bool get(const String&, unsigned&) const; | 84 bool get(const String&, unsigned&) const; |
83 bool get(const String&, unsigned long&) const; | 85 bool get(const String&, unsigned long&) const; |
84 bool get(const String&, unsigned long long&) const; | 86 bool get(const String&, unsigned long long&) const; |
85 bool get(const String&, RefPtrWillBeMember<DOMWindow>&) const; | 87 bool get(const String&, RefPtrWillBeMember<DOMWindow>&) const; |
86 bool get(const String&, RefPtrWillBeMember<Storage>&) const; | 88 bool get(const String&, RefPtrWillBeMember<Storage>&) const; |
87 bool get(const String&, MessagePortArray&) const; | 89 bool get(const String&, MessagePortArray&) const; |
88 bool get(const String&, RefPtr<Uint8Array>&) const; | 90 bool get(const String&, RefPtr<Uint8Array>&) const; |
89 bool get(const String&, RefPtr<ArrayBufferView>&) const; | 91 bool get(const String&, RefPtr<ArrayBufferView>&) const; |
| 92 bool get(const String&, RefPtr<Element>&) const; |
90 bool get(const String&, RefPtr<MIDIPort>&) const; | 93 bool get(const String&, RefPtr<MIDIPort>&) const; |
91 bool get(const String&, RefPtr<MediaKeyError>&) const; | 94 bool get(const String&, RefPtr<MediaKeyError>&) const; |
| 95 bool get(const String&, RefPtr<Path2D>&) const; |
92 bool get(const String&, RefPtrWillBeMember<TrackBase>&) const; | 96 bool get(const String&, RefPtrWillBeMember<TrackBase>&) const; |
93 bool get(const String&, RefPtrWillBeMember<SpeechRecognitionError>&) const; | 97 bool get(const String&, RefPtrWillBeMember<SpeechRecognitionError>&) const; |
94 bool get(const String&, RefPtrWillBeMember<SpeechRecognitionResult>&) const; | 98 bool get(const String&, RefPtrWillBeMember<SpeechRecognitionResult>&) const; |
95 bool get(const String&, RefPtrWillBeMember<SpeechRecognitionResultList>&) co
nst; | 99 bool get(const String&, RefPtrWillBeMember<SpeechRecognitionResultList>&) co
nst; |
96 bool get(const String&, Member<Gamepad>&) const; | 100 bool get(const String&, Member<Gamepad>&) const; |
97 bool get(const String&, RefPtr<MediaStream>&) const; | 101 bool get(const String&, RefPtr<MediaStream>&) const; |
98 bool get(const String&, RefPtr<EventTarget>&) const; | 102 bool get(const String&, RefPtr<EventTarget>&) const; |
99 bool get(const String&, HashSet<AtomicString>&) const; | 103 bool get(const String&, HashSet<AtomicString>&) const; |
100 bool get(const String&, Dictionary&) const; | 104 bool get(const String&, Dictionary&) const; |
101 bool get(const String&, Vector<String>&) const; | 105 bool get(const String&, Vector<String>&) const; |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 if (context.isNullable() && WebCore::isUndefinedOrNull(v8Value)) | 344 if (context.isNullable() && WebCore::isUndefinedOrNull(v8Value)) |
341 return true; | 345 return true; |
342 | 346 |
343 context.throwTypeError(ExceptionMessages::incorrectPropertyType(key, "does n
ot have a " + context.typeName() + " type.")); | 347 context.throwTypeError(ExceptionMessages::incorrectPropertyType(key, "does n
ot have a " + context.typeName() + " type.")); |
344 return false; | 348 return false; |
345 } | 349 } |
346 | 350 |
347 } | 351 } |
348 | 352 |
349 #endif // Dictionary_h | 353 #endif // Dictionary_h |
OLD | NEW |