Index: webkit/glue/plugins/pepper_var.h |
=================================================================== |
--- webkit/glue/plugins/pepper_var.h (revision 50727) |
+++ webkit/glue/plugins/pepper_var.h (working copy) |
@@ -13,6 +13,8 @@ |
namespace pepper { |
+class String; |
+ |
// There's no class implementing Var since it could represent a number of |
// objects. Instead, we just expose a getter for the interface implemented in |
// the .cc file here. |
@@ -24,9 +26,15 @@ |
// Returns the NPObject corresponding to the PP_Var. This pointer has not been |
// retained, so you should not call WebBindings::releaseObject unless you first |
-// call WebBindings::retainObject. |
+// call WebBindings::retainObject. Returns NULL if the PP_Var is not an object |
+// type. |
NPObject* GetNPObject(PP_Var var); |
+// Returns the String corresponding to the PP_Var. This pointer has not been |
+// AddRef'd, so you should not call Release! Returns NULL if the PP_Var is not |
+// a string type. |
+String* GetString(PP_Var var); |
+ |
} // namespace pepper |
#endif // WEBKIT_GLUE_PLUGINS_PEPPER_VAR_H_ |