summaryrefslogtreecommitdiffstats
path: root/webkit/glue/plugins/pepper_scrollbar.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/plugins/pepper_scrollbar.cc')
-rw-r--r--webkit/glue/plugins/pepper_scrollbar.cc12
1 files changed, 7 insertions, 5 deletions
diff --git a/webkit/glue/plugins/pepper_scrollbar.cc b/webkit/glue/plugins/pepper_scrollbar.cc
index 88a3f9b..2b96259 100644
--- a/webkit/glue/plugins/pepper_scrollbar.cc
+++ b/webkit/glue/plugins/pepper_scrollbar.cc
@@ -6,12 +6,13 @@
#include "base/logging.h"
#include "base/message_loop.h"
+#include "ppapi/c/dev/ppp_scrollbar_dev.h"
#include "skia/ext/platform_canvas.h"
-#include "third_party/ppapi/c/dev/ppp_scrollbar_dev.h"
#include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h"
#include "third_party/WebKit/WebKit/chromium/public/WebRect.h"
#include "third_party/WebKit/WebKit/chromium/public/WebScrollbar.h"
#include "third_party/WebKit/WebKit/chromium/public/WebVector.h"
+#include "webkit/glue/plugins/pepper_common.h"
#include "webkit/glue/plugins/pepper_event_conversion.h"
#include "webkit/glue/plugins/pepper_image_data.h"
#include "webkit/glue/plugins/pepper_plugin_instance.h"
@@ -30,17 +31,18 @@ namespace pepper {
namespace {
-PP_Resource Create(PP_Instance instance_id, bool vertical) {
+PP_Resource Create(PP_Instance instance_id, PP_Bool vertical) {
PluginInstance* instance = ResourceTracker::Get()->GetInstance(instance_id);
if (!instance)
return 0;
- scoped_refptr<Scrollbar> scrollbar(new Scrollbar(instance, vertical));
+ scoped_refptr<Scrollbar> scrollbar(new Scrollbar(instance,
+ PPBoolToBool(vertical)));
return scrollbar->GetReference();
}
-bool IsScrollbar(PP_Resource resource) {
- return !!Resource::GetAs<Scrollbar>(resource);
+PP_Bool IsScrollbar(PP_Resource resource) {
+ return BoolToPPBool(!!Resource::GetAs<Scrollbar>(resource));
}
uint32_t GetThickness() {