Index: ppapi/cpp/var.h |
diff --git a/ppapi/cpp/var.h b/ppapi/cpp/var.h |
index 437eed95f9c35d48e4b12f4b950e1387f0a90511..36a0b7291547280604769b7e7675999d30b1ccf6 100644 |
--- a/ppapi/cpp/var.h |
+++ b/ppapi/cpp/var.h |
@@ -119,9 +119,19 @@ class Var { |
/// This function determines if this <code>Var</code> is an object. |
/// |
- /// @return true if this <code>Var</code> is an object, otherwise false. |
+ /// @return true if this <code>Var</code> is an object, otherwise false. |
bool is_object() const { return var_.type == PP_VARTYPE_OBJECT; } |
+ /// This function determines if this <code>Var</code> is an array. |
+ /// |
+ /// @return true if this <code>Var</code> is an array, otherwise false. |
+ bool is_array() const { return var_.type == PP_VARTYPE_ARRAY; } |
+ |
+ /// This function determines if this <code>Var</code> is a dictionary. |
+ /// |
+ /// @return true if this <code>Var</code> is a dictinoary, otherwise false. |
+ bool is_dictionary() const { return var_.type == PP_VARTYPE_DICTIONARY; } |
+ |
/// This function determines if this <code>Var</code> is an integer value. |
/// The <code>is_int</code> function returns the internal representation. |
/// The JavaScript runtime may convert between the two as needed, so the |