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

Unified Diff: webkit/glue/plugins/pepper_buffer.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_audio.cc ('k') | webkit/glue/plugins/pepper_common.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/pepper_buffer.cc
===================================================================
--- webkit/glue/plugins/pepper_buffer.cc (revision 65116)
+++ webkit/glue/plugins/pepper_buffer.cc (working copy)
@@ -12,6 +12,7 @@
#include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_module.h"
#include "ppapi/c/pp_resource.h"
+#include "webkit/glue/plugins/pepper_common.h"
#include "webkit/glue/plugins/pepper_plugin_instance.h"
#include "webkit/glue/plugins/pepper_plugin_module.h"
@@ -31,16 +32,16 @@
return buffer->GetReference();
}
-bool IsBuffer(PP_Resource resource) {
- return !!Resource::GetAs<Buffer>(resource);
+PP_Bool IsBuffer(PP_Resource resource) {
+ return BoolToPPBool(!!Resource::GetAs<Buffer>(resource));
}
-bool Describe(PP_Resource resource, int32_t* size_in_bytes) {
+PP_Bool Describe(PP_Resource resource, int32_t* size_in_bytes) {
scoped_refptr<Buffer> buffer(Resource::GetAs<Buffer>(resource));
if (!buffer)
- return false;
+ return PP_FALSE;
buffer->Describe(size_in_bytes);
- return true;
+ return PP_TRUE;
}
void* Map(PP_Resource resource) {
« no previous file with comments | « webkit/glue/plugins/pepper_audio.cc ('k') | webkit/glue/plugins/pepper_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698