| Index: ppapi/c/dev/ppb_file_ref_dev.h
|
| ===================================================================
|
| --- ppapi/c/dev/ppb_file_ref_dev.h (revision 65116)
|
| +++ ppapi/c/dev/ppb_file_ref_dev.h (working copy)
|
| @@ -5,12 +5,13 @@
|
| #ifndef PPAPI_C_DEV_PPB_FILE_REF_DEV_H_
|
| #define PPAPI_C_DEV_PPB_FILE_REF_DEV_H_
|
|
|
| +#include "ppapi/c/pp_bool.h"
|
| #include "ppapi/c/dev/pp_file_info_dev.h"
|
| #include "ppapi/c/pp_instance.h"
|
| #include "ppapi/c/pp_resource.h"
|
| #include "ppapi/c/pp_var.h"
|
|
|
| -#define PPB_FILEREF_DEV_INTERFACE "PPB_FileRef(Dev);0.2"
|
| +#define PPB_FILEREF_DEV_INTERFACE "PPB_FileRef(Dev);0.3"
|
|
|
| // A FileRef is a "weak pointer" to a file in a file system. It contains a
|
| // PP_FileSystemType identifier and a file path string.
|
| @@ -19,9 +20,9 @@
|
| // POSIX style. Returns 0 if the path is malformed.
|
| PP_Resource (*Create)(PP_Resource file_system, const char* path);
|
|
|
| - // Returns true if the given resource is a FileRef. Returns false if the
|
| + // Returns PP_TRUE if the given resource is a FileRef. Returns PP_FALSE if the
|
| // resource is invalid or some type other than a FileRef.
|
| - bool (*IsFileRef)(PP_Resource resource);
|
| + PP_Bool (*IsFileRef)(PP_Resource resource);
|
|
|
| // Returns the file system identifier of this file.
|
| PP_FileSystemType_Dev (*GetFileSystemType)(PP_Resource file_ref);
|
| @@ -39,12 +40,12 @@
|
| PP_Resource (*GetParent)(PP_Resource file_ref);
|
|
|
| // Makes a new directory in the filesystem as well as any parent directories
|
| - // if the make_ancestors parameter is true. It is not valid to make a
|
| + // if the make_ancestors parameter is PP_TRUE. It is not valid to make a
|
| // directory in the external filesystem. Fails if the directory already
|
| // exists or if ancestor directories do not exist and make_ancestors was not
|
| - // passed as true.
|
| + // passed as PP_TRUE.
|
| int32_t (*MakeDirectory)(PP_Resource directory_ref,
|
| - bool make_ancestors,
|
| + PP_Bool make_ancestors,
|
| struct PP_CompletionCallback callback);
|
|
|
| // Queries info about the file. You must have read access to this file if it
|
|
|