Index: webkit/glue/cpp_variant.h |
diff --git a/webkit/glue/cpp_variant.h b/webkit/glue/cpp_variant.h |
index 34f843a90a2cb31d811e89c865454a87f6907362..2a85970c74de29c2c5f5dd8c2a60ca41065a418a 100644 |
--- a/webkit/glue/cpp_variant.h |
+++ b/webkit/glue/cpp_variant.h |
@@ -97,6 +97,10 @@ class CppVariant : public NPVariant { |
// Returns a vector of strings for the specified argument. This is useful |
// for converting a JavaScript array of strings into a vector of strings. |
std::vector<std::string> ToStringVector() const; |
+ // Returns a vector of CppVariabt for the specified variant. This should only |
+ // be called on an Object. If the object has no "length" property an empty |
+ // vector is returned |
+ std::vector<CppVariant> ToVector() 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 |