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

Unified Diff: webkit/glue/plugins/pepper_file_io.cc

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 | « webkit/glue/plugins/pepper_file_chooser.cc ('k') | webkit/glue/plugins/pepper_file_ref.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/pepper_file_io.cc
===================================================================
--- webkit/glue/plugins/pepper_file_io.cc (revision 65116)
+++ webkit/glue/plugins/pepper_file_io.cc (working copy)
@@ -15,6 +15,7 @@
#include "ppapi/c/dev/ppb_file_io_trusted_dev.h"
#include "ppapi/c/pp_completion_callback.h"
#include "ppapi/c/pp_errors.h"
+#include "webkit/glue/plugins/pepper_common.h"
#include "webkit/glue/plugins/pepper_file_ref.h"
#include "webkit/glue/plugins/pepper_plugin_instance.h"
#include "webkit/glue/plugins/pepper_plugin_module.h"
@@ -33,8 +34,8 @@
return file_io->GetReference();
}
-bool IsFileIO(PP_Resource resource) {
- return !!Resource::GetAs<FileIO>(resource);
+PP_Bool IsFileIO(PP_Resource resource) {
+ return BoolToPPBool(!!Resource::GetAs<FileIO>(resource));
}
int32_t Open(PP_Resource file_io_id,
« no previous file with comments | « webkit/glue/plugins/pepper_file_chooser.cc ('k') | webkit/glue/plugins/pepper_file_ref.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698