diff options
author | dmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-10 23:58:41 +0000 |
---|---|---|
committer | dmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-10 23:58:41 +0000 |
commit | 56d75f2747bc2f2aec0340b18cbc9d668fc84fc0 (patch) | |
tree | 4759c12999790ce63a4997c422a28acf527049cc /ppapi/c/ppb_var.h | |
parent | 866d04490b7479cc6d8553de9c1f5d15bf5bfa6b (diff) | |
download | chromium_src-56d75f2747bc2f2aec0340b18cbc9d668fc84fc0.zip chromium_src-56d75f2747bc2f2aec0340b18cbc9d668fc84fc0.tar.gz chromium_src-56d75f2747bc2f2aec0340b18cbc9d668fc84fc0.tar.bz2 |
PPAPI: Update pp_var.h documentation for Resource vars.
BUG=361215
R=raymes@chromium.org
Review URL: https://codereview.chromium.org/229033003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263135 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/c/ppb_var.h')
-rw-r--r-- | ppapi/c/ppb_var.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/ppapi/c/ppb_var.h b/ppapi/c/ppb_var.h index 91a6592..b4a361a 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 Thu Feb 6 13:48:33 2014. */ +/* From ppb_var.idl modified Thu Apr 10 14:54:41 2014. */ #ifndef PPAPI_C_PPB_VAR_H_ #define PPAPI_C_PPB_VAR_H_ @@ -44,9 +44,13 @@ struct PPB_Var_1_2 { void (*AddRef)(struct PP_Var var); /** * Release() removes a reference to given var, deleting it if the internal - * reference count becomes 0. If the given var is not a refcounted object, - * this function will do nothing so you can always call it no matter what - * the type. + * reference count becomes 0. If the <code>PP_Var</code> is of type + * <code>PP_VARTYPE_RESOURCE</code>, + * it will implicitly release a reference count on the + * <code>PP_Resource</code> (equivalent to PPB_Core::ReleaseResource()). + * + * If the given var is not a refcounted object, this function will do nothing + * so you can always call it no matter what the type. * * @param[in] var A <code>PP_Var</code> that will have a reference removed. */ @@ -59,8 +63,8 @@ struct PPB_Var_1_2 { * * If the length is 0, the <code>*data</code> pointer will not be dereferenced * and may be <code>NULL</code>. Note, however if length is 0, the - * "NULL-ness" will not be preserved, as <code>VarToUtf8</code> will never - * return <code>NULL</code> on success, even for empty strings. + * "NULL-ness" will not be preserved, as VarToUtf8() will never return + * <code>NULL</code> on success, even for empty strings. * * The resulting object will be a refcounted string object. It will be * AddRef'ed for the caller. When the caller is done with it, it should be @@ -106,7 +110,9 @@ struct PPB_Var_1_2 { */ PP_Resource (*VarToResource)(struct PP_Var var); /** - * Creates a new <code>PP_Var</code> from a given resource. + * Creates a new <code>PP_Var</code> from a given resource. Implicitly adds a + * reference count on the <code>PP_Resource</code> (equivalent to + * PPB_Core::AddRefResource(resource)). * * @param[in] resource A <code>PP_Resource</code> to be wrapped in a var. * |