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

Unified Diff: ppapi/c/dev/ppb_file_ref_dev.h

Issue 4310002: Make PPAPI headers compile with C compilers (gcc on Linux & Mac and MSVS on W... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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
« no previous file with comments | « ppapi/c/dev/ppb_file_io_dev.h ('k') | ppapi/c/dev/ppb_find_dev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ppapi/c/dev/ppb_file_io_dev.h ('k') | ppapi/c/dev/ppb_find_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698