Index: ppapi/c/ppb_var_array.h |
diff --git a/ppapi/c/dev/ppb_var_array_dev.h b/ppapi/c/ppb_var_array.h |
similarity index 72% |
rename from ppapi/c/dev/ppb_var_array_dev.h |
rename to ppapi/c/ppb_var_array.h |
index 3ce07fb88e5bac95e393cdc8f9a4cc59c9015956..43d8631f0d8253cd1ab50ba332b82101fcf34c06 100644 |
--- a/ppapi/c/dev/ppb_var_array_dev.h |
+++ b/ppapi/c/ppb_var_array.h |
@@ -3,22 +3,22 @@ |
* found in the LICENSE file. |
*/ |
-/* From dev/ppb_var_array_dev.idl modified Thu Mar 14 13:41:46 2013. */ |
+/* From ppb_var_array.idl modified Sat Jun 8 23:00:56 2013. */ |
-#ifndef PPAPI_C_DEV_PPB_VAR_ARRAY_DEV_H_ |
-#define PPAPI_C_DEV_PPB_VAR_ARRAY_DEV_H_ |
+#ifndef PPAPI_C_PPB_VAR_ARRAY_H_ |
+#define PPAPI_C_PPB_VAR_ARRAY_H_ |
#include "ppapi/c/pp_bool.h" |
#include "ppapi/c/pp_macros.h" |
#include "ppapi/c/pp_stdint.h" |
#include "ppapi/c/pp_var.h" |
-#define PPB_VAR_ARRAY_DEV_INTERFACE_0_1 "PPB_VarArray(Dev);0.1" |
-#define PPB_VAR_ARRAY_DEV_INTERFACE PPB_VAR_ARRAY_DEV_INTERFACE_0_1 |
+#define PPB_VAR_ARRAY_INTERFACE_1_0 "PPB_VarArray;1.0" |
+#define PPB_VAR_ARRAY_INTERFACE PPB_VAR_ARRAY_INTERFACE_1_0 |
/** |
* @file |
- * This file defines the <code>PPB_VarArray_Dev</code> struct providing |
+ * This file defines the <code>PPB_VarArray</code> struct providing |
* a way to interact with array vars. |
*/ |
@@ -27,7 +27,7 @@ |
* @addtogroup Interfaces |
* @{ |
*/ |
-struct PPB_VarArray_Dev_0_1 { |
+struct PPB_VarArray_1_0 { |
/** |
* Creates an array var, i.e., a <code>PP_Var</code> with type set to |
* <code>PP_VARTYPE_ARRAY</code>. The array length is set to 0. |
@@ -42,9 +42,10 @@ struct PPB_VarArray_Dev_0_1 { |
* @param[in] array An array var. |
* @param[in] index An index indicating which element to return. |
* |
- * @return The element at the specified position. The reference count is |
- * incremented on behalf of the caller. If <code>index</code> is larger than |
- * or equal to the array length, an undefined var is returned. |
+ * @return The element at the specified position. The reference count of the |
+ * element returned is incremented on behalf of the caller. If |
+ * <code>index</code> is larger than or equal to the array length, an |
+ * undefined var is returned. |
*/ |
struct PP_Var (*Get)(struct PP_Var array, uint32_t index); |
/** |
@@ -76,19 +77,19 @@ struct PPB_VarArray_Dev_0_1 { |
* @param[in] array An array var. |
* @param[in] length The new array length. If <code>length</code> is smaller |
* than its current value, the array is truncated to the new length; any |
- * elements that no longer fit are removed. If <code>length</code> is larger |
- * than its current value, undefined vars are appended to increase the array |
- * to the specified length. |
+ * elements that no longer fit are removed and the references to them will be |
darin (slow to review)
2013/06/10 16:00:26
nit: ", and"
raymes
2013/06/16 23:35:36
Done.
|
+ * released. If <code>length</code> is larger than its current value, |
+ * undefined vars are appended to increase the array to the specified length. |
* |
* @return A <code>PP_Bool</code> indicating whether the operation succeeds. |
*/ |
PP_Bool (*SetLength)(struct PP_Var array, uint32_t length); |
}; |
-typedef struct PPB_VarArray_Dev_0_1 PPB_VarArray_Dev; |
+typedef struct PPB_VarArray_1_0 PPB_VarArray; |
/** |
* @} |
*/ |
-#endif /* PPAPI_C_DEV_PPB_VAR_ARRAY_DEV_H_ */ |
+#endif /* PPAPI_C_PPB_VAR_ARRAY_H_ */ |