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) { |