Chromium Code Reviews| Index: ppapi/api/ppb_var_array.idl |
| diff --git a/ppapi/api/dev/ppb_var_array_dev.idl b/ppapi/api/ppb_var_array.idl |
| similarity index 78% |
| rename from ppapi/api/dev/ppb_var_array_dev.idl |
| rename to ppapi/api/ppb_var_array.idl |
| index 78db3b0e9cb32423c16ee8fc0e554c6ba50d4198..c5f84cf7f7090f8a6826e444c4a2870f86f6886b 100644 |
| --- a/ppapi/api/dev/ppb_var_array_dev.idl |
| +++ b/ppapi/api/ppb_var_array.idl |
| @@ -4,16 +4,16 @@ |
| */ |
| /** |
| - * 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. |
| */ |
| label Chrome { |
| - M27 = 0.1 |
| + M29 = 1.0 |
| }; |
| -[macro="PPB_VAR_ARRAY_DEV_INTERFACE"] |
| -interface PPB_VarArray_Dev { |
| +[macro="PPB_VAR_ARRAY_INTERFACE"] |
| +interface PPB_VarArray { |
| /** |
| * 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. |
| @@ -29,9 +29,10 @@ interface PPB_VarArray_Dev { |
| * @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. |
| */ |
| PP_Var Get([in] PP_Var array, [in] uint32_t index); |
|
raymes
2013/06/09 06:23:32
noelallen@: Doc is a bit unclear... How is the re
|
| @@ -66,9 +67,9 @@ interface PPB_VarArray_Dev { |
| * @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 |
| + * 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. |
| */ |