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

Unified Diff: ppapi/cpp/dev/widget_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/video_decoder_dev.cc ('k') | ppapi/cpp/dev/zoom_dev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/widget_dev.cc
===================================================================
--- ppapi/cpp/dev/widget_dev.cc (revision 65116)
+++ ppapi/cpp/dev/widget_dev.cc (working copy)
@@ -5,6 +5,7 @@
#include "ppapi/cpp/dev/widget_dev.h"
#include "ppapi/c/dev/ppb_widget_dev.h"
+#include "ppapi/cpp/common.h"
#include "ppapi/cpp/image_data.h"
#include "ppapi/cpp/instance.h"
#include "ppapi/cpp/module.h"
@@ -38,20 +39,22 @@
bool Widget_Dev::Paint(const Rect& rect, ImageData* image) {
if (!widget_f)
return false;
- return widget_f->Paint(
- pp_resource(), &rect.pp_rect(), image->pp_resource());
+ return PPBoolToBool(widget_f->Paint(pp_resource(),
+ &rect.pp_rect(),
+ image->pp_resource()));
}
bool Widget_Dev::HandleEvent(const PP_InputEvent& event) {
if (!widget_f)
return false;
- return widget_f->HandleEvent(pp_resource(), &event);
+ return PPBoolToBool(widget_f->HandleEvent(pp_resource(), &event));
}
bool Widget_Dev::GetLocation(Rect* location) {
if (!widget_f)
return false;
- return widget_f->GetLocation(pp_resource(), &location->pp_rect());
+ return PPBoolToBool(widget_f->GetLocation(pp_resource(),
+ &location->pp_rect()));
}
void Widget_Dev::SetLocation(const Rect& location) {
« no previous file with comments | « ppapi/cpp/dev/video_decoder_dev.cc ('k') | ppapi/cpp/dev/zoom_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698