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 25 matching lines...) Expand all Loading... | |
36 #include "wtf/text/AtomicString.h" | 36 #include "wtf/text/AtomicString.h" |
37 #include "wtf/text/WTFString.h" | 37 #include "wtf/text/WTFString.h" |
38 | 38 |
39 namespace WebCore { | 39 namespace WebCore { |
40 | 40 |
41 class ArrayValue; | 41 class ArrayValue; |
42 class CSSFontFaceRule; | 42 class CSSFontFaceRule; |
43 class DOMError; | 43 class DOMError; |
44 class DOMWindow; | 44 class DOMWindow; |
45 class IDBKeyRange; | 45 class IDBKeyRange; |
46 class MIDIPort; | |
46 class MediaKeyError; | 47 class MediaKeyError; |
47 class Notification; | 48 class Notification; |
48 class SpeechRecognitionError; | 49 class SpeechRecognitionError; |
49 class SpeechRecognitionResult; | 50 class SpeechRecognitionResult; |
50 class SpeechRecognitionResultList; | 51 class SpeechRecognitionResultList; |
51 class Storage; | 52 class Storage; |
52 class TrackBase; | 53 class TrackBase; |
53 class VoidCallback; | 54 class VoidCallback; |
54 | 55 |
55 class Dictionary { | 56 class Dictionary { |
(...skipping 14 matching lines...) Expand all Loading... | |
70 bool get(const String&, ScriptValue&) const; | 71 bool get(const String&, ScriptValue&) const; |
71 bool get(const String&, short&) const; | 72 bool get(const String&, short&) const; |
72 bool get(const String&, unsigned short&) const; | 73 bool get(const String&, unsigned short&) const; |
73 bool get(const String&, unsigned&) const; | 74 bool get(const String&, unsigned&) const; |
74 bool get(const String&, unsigned long&) const; | 75 bool get(const String&, unsigned long&) const; |
75 bool get(const String&, unsigned long long&) const; | 76 bool get(const String&, unsigned long long&) const; |
76 bool get(const String&, RefPtr<DOMWindow>&) const; | 77 bool get(const String&, RefPtr<DOMWindow>&) const; |
77 bool get(const String&, RefPtr<Storage>&) const; | 78 bool get(const String&, RefPtr<Storage>&) const; |
78 bool get(const String&, MessagePortArray&) const; | 79 bool get(const String&, MessagePortArray&) const; |
79 bool get(const String&, RefPtr<Uint8Array>&) const; | 80 bool get(const String&, RefPtr<Uint8Array>&) const; |
81 bool get(const String&, RefPtr<MIDIPort>&) const; | |
80 #if ENABLE(ENCRYPTED_MEDIA) | 82 #if ENABLE(ENCRYPTED_MEDIA) |
81 bool get(const String&, RefPtr<MediaKeyError>&) const; | 83 bool get(const String&, RefPtr<MediaKeyError>&) const; |
82 #endif | 84 #endif |
83 bool get(const String&, RefPtr<TrackBase>&) const; | 85 bool get(const String&, RefPtr<TrackBase>&) const; |
84 bool get(const String&, RefPtr<SpeechRecognitionError>&) const; | 86 bool get(const String&, RefPtr<SpeechRecognitionError>&) const; |
85 bool get(const String&, RefPtr<SpeechRecognitionResult>&) const; | 87 bool get(const String&, RefPtr<SpeechRecognitionResult>&) const; |
86 bool get(const String&, RefPtr<SpeechRecognitionResultList>&) const; | 88 bool get(const String&, RefPtr<SpeechRecognitionResultList>&) const; |
87 #if ENABLE(MEDIA_STREAM) | 89 #if ENABLE(MEDIA_STREAM) |
88 bool get(const String&, RefPtr<MediaStream>&) const; | 90 bool get(const String&, RefPtr<MediaStream>&) const; |
89 #endif | 91 #endif |
90 bool get(const String&, RefPtr<EventTarget>&) const; | 92 bool get(const String&, RefPtr<EventTarget>&) const; |
91 bool get(const String&, HashSet<AtomicString>&) const; | 93 bool get(const String&, HashSet<AtomicString>&) const; |
92 bool get(const String&, Dictionary&) const; | 94 bool get(const String&, Dictionary&) const; |
93 bool get(const String&, Vector<String>&) const; | 95 bool get(const String&, Vector<String>&) const; |
94 bool get(const String&, ArrayValue&) const; | 96 bool get(const String&, ArrayValue&) const; |
95 bool get(const String&, RefPtr<CSSFontFaceRule>&) const; | 97 bool get(const String&, RefPtr<CSSFontFaceRule>&) const; |
96 bool get(const String&, RefPtr<DOMError>&) const; | 98 bool get(const String&, RefPtr<DOMError>&) const; |
97 bool get(const String&, RefPtr<VoidCallback>&) const; | 99 bool get(const String&, RefPtr<VoidCallback>&) const; |
abarth-chromium
2013/04/26 04:26:51
At some point we need to autogenerate this madness
| |
98 | 100 |
99 bool getOwnPropertiesAsStringHashMap(HashMap<String, String>&) const; | 101 bool getOwnPropertiesAsStringHashMap(HashMap<String, String>&) const; |
100 bool getOwnPropertyNames(Vector<String>&) const; | 102 bool getOwnPropertyNames(Vector<String>&) const; |
101 | 103 |
102 bool getWithUndefinedOrNullCheck(const String&, String&) const; | 104 bool getWithUndefinedOrNullCheck(const String&, String&) const; |
103 | 105 |
104 PassRefPtr<EventListener> getEventListener(const String&, Notification*) con st { return 0; } | 106 PassRefPtr<EventListener> getEventListener(const String&, Notification*) con st { return 0; } |
105 | 107 |
106 private: | 108 private: |
107 bool getKey(const String& key, v8::Local<v8::Value>&) const; | 109 bool getKey(const String& key, v8::Local<v8::Value>&) const; |
108 | 110 |
109 // This object can only be used safely when stack allocated because of v8::L ocal. | 111 // This object can only be used safely when stack allocated because of v8::L ocal. |
110 static void* operator new(size_t); | 112 static void* operator new(size_t); |
111 static void* operator new[](size_t); | 113 static void* operator new[](size_t); |
112 static void operator delete(void *); | 114 static void operator delete(void *); |
113 | 115 |
114 v8::Local<v8::Value> m_options; | 116 v8::Local<v8::Value> m_options; |
115 v8::Isolate* m_isolate; | 117 v8::Isolate* m_isolate; |
116 }; | 118 }; |
117 | 119 |
118 } | 120 } |
119 | 121 |
120 #endif // Dictionary_h | 122 #endif // Dictionary_h |
OLD | NEW |