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

Unified Diff: ppapi/cpp/instance.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 | « ppapi/cpp/image_data.cc ('k') | ppapi/cpp/module.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/instance.cc
===================================================================
--- ppapi/cpp/instance.cc (revision 65116)
+++ ppapi/cpp/instance.cc (working copy)
@@ -6,6 +6,7 @@
#include "ppapi/c/dev/ppp_printing_dev.h"
#include "ppapi/c/ppb_instance.h"
+#include "ppapi/cpp/common.h"
#include "ppapi/cpp/dev/scrollbar_dev.h"
#include "ppapi/cpp/dev/widget_dev.h"
#include "ppapi/cpp/graphics_2d.h"
@@ -83,13 +84,14 @@
bool Instance::BindGraphics(const Graphics2D& graphics) {
if (!ppb_instance_f)
return false;
- return ppb_instance_f->BindGraphics(pp_instance(), graphics.pp_resource());
+ return PPBoolToBool(ppb_instance_f->BindGraphics(pp_instance(),
+ graphics.pp_resource()));
}
bool Instance::IsFullFrame() {
if (!ppb_instance_f)
return false;
- return ppb_instance_f->IsFullFrame(pp_instance());
+ return PPBoolToBool(ppb_instance_f->IsFullFrame(pp_instance()));
}
Var Instance::ExecuteScript(const Var& script, Var* exception) {
« no previous file with comments | « ppapi/cpp/image_data.cc ('k') | ppapi/cpp/module.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698