summaryrefslogtreecommitdiffstats
path: root/webkit/glue/cpp_variant.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/cpp_variant.h')
-rw-r--r--webkit/glue/cpp_variant.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/webkit/glue/cpp_variant.h b/webkit/glue/cpp_variant.h
index c1eb795..f8a4c2e 100644
--- a/webkit/glue/cpp_variant.h
+++ b/webkit/glue/cpp_variant.h
@@ -98,6 +98,13 @@ class CppVariant : public NPVariant {
// for converting a JavaScript array of strings into a vector of strings.
std::vector<std::wstring> ToStringVector() const;
+ // Invoke method of the given name on an object with the supplied arguments.
+ // The first argument should be the object on which the method is to be
+ // invoked. Returns whether the method was successfully invoked. If the
+ // method was invoked successfully, any return value is stored in the
+ // CppVariant specified by result.
+ bool Invoke(const std::string& method, const CppVariant* args,
+ uint32 arg_count, CppVariant& result) const;
};
#endif // WEBKIT_GLUE_CPP_VARIANT_H__