namespace WebCore {
class ScriptValue;
- class ScriptState;
class ScriptCallArgumentHandler {
public:
void appendArgument(const char*);
void appendArgument(long);
void appendArgument(long long);
- void appendArgument(unsigned int);
+ void appendArgument(unsigned);
void appendArgument(unsigned long);
void appendArgument(int);
void appendArgument(bool);
+ void appendArgument(const Vector<ScriptValue>&);
protected:
- ScriptState* m_scriptState;
+ RefPtr<ScriptState> m_scriptState;
Vector<ScriptValue> m_arguments;
};
String m_name;
};
- class ScriptCallback : public ScriptCallArgumentHandler {
- public:
- ScriptCallback(ScriptState*, const ScriptValue&);
-
- ScriptValue call();
-
- private:
- ScriptState* m_scriptState;
- ScriptValue m_function;
- };
-
} // namespace WebCore
#endif // ScriptFunctionCall