summaryrefslogtreecommitdiffstats
path: root/webkit/glue/cpp_variant.h
diff options
context:
space:
mode:
authorericcheng@google.com <ericcheng@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-26 01:27:35 +0000
committerericcheng@google.com <ericcheng@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-26 01:27:35 +0000
commit1cc87964e944939380107ed86107868344adb304 (patch)
tree0ea2ec036516062e51da919edb3af0604f6e2a3f /webkit/glue/cpp_variant.h
parentf3bb0346579cd4eb431c45e43041e139876015e8 (diff)
downloadchromium_src-1cc87964e944939380107ed86107868344adb304.zip
chromium_src-1cc87964e944939380107ed86107868344adb304.tar.gz
chromium_src-1cc87964e944939380107ed86107868344adb304.tar.bz2
Some more glue code for the personalization module.
Added ability to invoke a method on an NPObject wrapped in a CppVariant. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1359 0039d316-1c4b-4281-b951-d872f2087c98
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__