Index: ppapi/cpp/dev/selection_dev.cc |
=================================================================== |
--- ppapi/cpp/dev/selection_dev.cc (revision 65116) |
+++ ppapi/cpp/dev/selection_dev.cc (working copy) |
@@ -4,6 +4,7 @@ |
#include "ppapi/cpp/dev/selection_dev.h" |
+#include "ppapi/cpp/common.h" |
#include "ppapi/cpp/instance.h" |
#include "ppapi/cpp/module.h" |
#include "ppapi/cpp/var.h" |
@@ -14,12 +15,13 @@ |
static const char kPPPSelectionInterface[] = PPP_SELECTION_DEV_INTERFACE; |
-PP_Var GetSelectedText(PP_Instance instance, bool html) { |
+PP_Var GetSelectedText(PP_Instance instance, PP_Bool html) { |
void* object = |
pp::Instance::GetPerInstanceObject(instance, kPPPSelectionInterface); |
if (!object) |
return Var().Detach(); |
- return static_cast<Selection_Dev*>(object)->GetSelectedText(html).Detach(); |
+ return static_cast<Selection_Dev*>(object)-> |
+ GetSelectedText(PPBoolToBool(html)).Detach(); |
} |
const PPP_Selection_Dev ppp_selection = { |