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

Unified Diff: ppapi/cpp/dev/zoom_dev.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/dev/widget_dev.cc ('k') | ppapi/cpp/graphics_2d.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/zoom_dev.cc
===================================================================
--- ppapi/cpp/dev/zoom_dev.cc (revision 65116)
+++ ppapi/cpp/dev/zoom_dev.cc (working copy)
@@ -5,6 +5,7 @@
#include "ppapi/cpp/dev/zoom_dev.h"
#include "ppapi/c/dev/ppb_zoom_dev.h"
+#include "ppapi/cpp/common.h"
#include "ppapi/cpp/instance.h"
#include "ppapi/cpp/module.h"
#include "ppapi/cpp/module_impl.h"
@@ -17,12 +18,13 @@
void Zoom(PP_Instance instance,
double factor,
- bool text_only) {
+ PP_Bool text_only) {
void* object =
pp::Instance::GetPerInstanceObject(instance, kPPPZoomInterface);
if (!object)
return;
- static_cast<Zoom_Dev*>(object)->Zoom(factor, text_only);
+ static_cast<Zoom_Dev*>(object)->Zoom(factor,
+ PPBoolToBool(text_only));
}
const PPP_Zoom_Dev ppp_zoom = {
« no previous file with comments | « ppapi/cpp/dev/widget_dev.cc ('k') | ppapi/cpp/graphics_2d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698