Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1063)

Unified Diff: ppapi/c/ppb_var.h

Issue 8826011: Remove PP_Module from parameters for PPB_Var.VarFromUtf8. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix indentation. Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/api/ppb_var.idl ('k') | ppapi/cpp/var.h » ('j') | ppapi/cpp/var.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/ppb_var.h
diff --git a/ppapi/c/ppb_var.h b/ppapi/c/ppb_var.h
index 5ebae16131cc175a7a1e7795c6b02cdd321b80f3..3e6e4818d490471392163faa3c1c3e8a40664435 100644
--- a/ppapi/c/ppb_var.h
+++ b/ppapi/c/ppb_var.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* From ppb_var.idl modified Wed Aug 24 20:49:04 2011. */
+/* From ppb_var.idl modified Tue Dec 6 11:26:58 2011. */
#ifndef PPAPI_C_PPB_VAR_H_
#define PPAPI_C_PPB_VAR_H_
@@ -15,7 +15,8 @@
#include "ppapi/c/pp_var.h"
#define PPB_VAR_INTERFACE_1_0 "PPB_Var;1.0"
-#define PPB_VAR_INTERFACE PPB_VAR_INTERFACE_1_0
+#define PPB_VAR_INTERFACE_1_1 "PPB_Var;1.1"
+#define PPB_VAR_INTERFACE PPB_VAR_INTERFACE_1_1
/**
* @file
@@ -66,16 +67,13 @@ struct PPB_Var {
* On error (basically out of memory to allocate the string, or input that
* is not valid UTF-8), this function will return a Null var.
*
- * @param[in] module A PP_Module uniquely identifying the module or .nexe.
* @param[in] data A string
* @param[in] len The length of the string.
*
* @return A <code>PP_Var</code> structure containing a reference counted
* string object.
*/
- struct PP_Var (*VarFromUtf8)(PP_Module module,
- const char* data,
- uint32_t len);
+ struct PP_Var (*VarFromUtf8)(const char* data, uint32_t len);
/**
* VarToUtf8() converts a string-type var to a char* encoded in UTF-8. This
* string is NOT NULL-terminated. The length will be placed in
@@ -96,6 +94,15 @@ struct PPB_Var {
*/
const char* (*VarToUtf8)(struct PP_Var var, uint32_t* len);
};
+
+struct PPB_Var_1_0 {
+ void (*AddRef)(struct PP_Var var);
+ void (*Release)(struct PP_Var var);
+ struct PP_Var (*VarFromUtf8)(PP_Module module,
+ const char* data,
+ uint32_t len);
+ const char* (*VarToUtf8)(struct PP_Var var, uint32_t* len);
+};
/**
* @}
*/
« no previous file with comments | « ppapi/api/ppb_var.idl ('k') | ppapi/cpp/var.h » ('j') | ppapi/cpp/var.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698