diff options
Diffstat (limited to 'WebCore/bindings/js/ScriptArray.h')
-rw-r--r-- | WebCore/bindings/js/ScriptArray.h | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/WebCore/bindings/js/ScriptArray.h b/WebCore/bindings/js/ScriptArray.h index 9240368..2badd09 100644 --- a/WebCore/bindings/js/ScriptArray.h +++ b/WebCore/bindings/js/ScriptArray.h @@ -37,23 +37,25 @@ #include <runtime/JSArray.h> namespace WebCore { - - class ScriptArray : public ScriptObject { - public: - ScriptArray(ScriptState*, JSC::JSArray*); - ScriptArray() {} - JSC::JSArray* jsArray() const { return asArray(jsValue()); } - - bool set(unsigned index, const ScriptObject&); - bool set(unsigned index, const String&); - bool set(unsigned index, double); - bool set(unsigned index, long long); - bool set(unsigned index, int); - bool set(unsigned index, bool); - unsigned length(); - - static ScriptArray createNew(ScriptState*); - }; +class SerializedScriptValue; + +class ScriptArray : public ScriptObject { +public: + ScriptArray(ScriptState*, JSC::JSArray*); + ScriptArray() {} + JSC::JSArray* jsArray() const { return asArray(jsValue()); } + + bool set(unsigned index, const ScriptObject&); + bool set(unsigned index, SerializedScriptValue*); + bool set(unsigned index, const String&); + bool set(unsigned index, double); + bool set(unsigned index, long long); + bool set(unsigned index, int); + bool set(unsigned index, bool); + unsigned length(); + + static ScriptArray createNew(ScriptState*); +}; } #endif // ScriptArray_h |