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

Unified Diff: ppapi/c/pp_var.h

Issue 23757014: [PPAPI] Updated documentation for PP_VarType enum constants. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 3 months 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
« ppapi/api/pp_var.idl ('K') | « ppapi/api/pp_var.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/pp_var.h
diff --git a/ppapi/c/pp_var.h b/ppapi/c/pp_var.h
index 2138f93c2bddea9e7c6116dd846581cb8a8e78ed..eee2999bfa8245f093d27fc2d36f1c51c87e9b12 100644
--- a/ppapi/c/pp_var.h
+++ b/ppapi/c/pp_var.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* From pp_var.idl modified Mon Feb 11 15:41:10 2013. */
+/* From pp_var.idl modified Tue Sep 3 11:51:25 2013. */
#ifndef PPAPI_C_PP_VAR_H_
#define PPAPI_C_PP_VAR_H_
@@ -53,7 +53,8 @@ typedef enum {
/**
* The Var represents a string. The <code>as_id</code> field is used to
* identify the string, which may be created and retrieved from the
- * <code>PPB_Var</code> interface.
+ * <code>PPB_Var</code> interface. These objects are reference counted, so
+ * AddRef and Release must be used properly to avoid memory leaks.
*/
PP_VARTYPE_STRING = 5,
/**
@@ -62,12 +63,18 @@ typedef enum {
*/
PP_VARTYPE_OBJECT = 6,
/**
- * Arrays and dictionaries are not currently supported but will be added
- * in future revisions. These objects are reference counted so be sure
- * to properly AddRef/Release them as you would with strings to ensure your
- * module will continue to work with future versions of the API.
+ * Represents an array of Vars. The <code>as_id</code> field is used to
+ * identify the array, which may be created and manipulated from the
+ * <code>PPB_VarArray</code> interface. These objects are reference counted,
+ * so AddRef and Release must be used properly to avoid memory leaks.
*/
PP_VARTYPE_ARRAY = 7,
+ /**
+ * Represents a mapping from strings to Vars. The <code>as_id</code> field is
+ * used to identify the dictionary, which may be created and manipulated from
+ * the <code>PPB_VarDictionary</code> interface. These objects are reference
+ * counted, so AddRef and Release must be used properly to avoid memory leaks.
+ */
PP_VARTYPE_DICTIONARY = 8,
/**
* ArrayBuffer represents a JavaScript ArrayBuffer. This is the type which
« ppapi/api/pp_var.idl ('K') | « ppapi/api/pp_var.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698