diff options
Diffstat (limited to 'ppapi')
-rw-r--r-- | ppapi/c/dev/ppb_scrollbar_dev.h | 6 | ||||
-rw-r--r-- | ppapi/cpp/dev/scrollbar_dev.cc | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ppapi/c/dev/ppb_scrollbar_dev.h b/ppapi/c/dev/ppb_scrollbar_dev.h index d283cbc..be51b58 100644 --- a/ppapi/c/dev/ppb_scrollbar_dev.h +++ b/ppapi/c/dev/ppb_scrollbar_dev.h @@ -23,7 +23,7 @@ PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_ScrollBy_Dev, 4); #define PPB_SCROLLBAR_DEV_INTERFACE_0_3 "PPB_Scrollbar(Dev);0.3" #define PPB_SCROLLBAR_DEV_INTERFACE_0_4 "PPB_Scrollbar(Dev);0.4" -#define PPB_SCROLLBAR_DEV_INTERFACE PPB_SCROLLBAR_DEV_INTERFACE_0_3 +#define PPB_SCROLLBAR_DEV_INTERFACE PPB_SCROLLBAR_DEV_INTERFACE_0_4 // The interface for a scrollbar. A scrollbar is a widget, so the functions // in PPB_Widget can also be used with scrollbar objects. @@ -65,7 +65,7 @@ struct PPB_Scrollbar_0_4_Dev { }; // Old version with no resource argument to GetThickness. -struct PPB_Scrollbar_Dev { +struct PPB_Scrollbar_0_3_Dev { PP_Resource (*Create)(PP_Instance instance, PP_Bool vertical); PP_Bool (*IsScrollbar)(PP_Resource resource); @@ -83,7 +83,7 @@ struct PPB_Scrollbar_Dev { int32_t multiplier); }; -typedef struct PPB_Scrollbar_Dev PPB_Scrollbar_0_3_Dev; +typedef struct PPB_Scrollbar_0_4_Dev PPB_Scrollbar_Dev; #endif /* PPAPI_C_DEV_PPB_SCROLLBAR_DEV_H_ */ diff --git a/ppapi/cpp/dev/scrollbar_dev.cc b/ppapi/cpp/dev/scrollbar_dev.cc index 9ea2c14..1f873c0 100644 --- a/ppapi/cpp/dev/scrollbar_dev.cc +++ b/ppapi/cpp/dev/scrollbar_dev.cc @@ -38,7 +38,7 @@ Scrollbar_Dev::Scrollbar_Dev(const Scrollbar_Dev& other) uint32_t Scrollbar_Dev::GetThickness() { if (!has_interface<PPB_Scrollbar_Dev>()) return 0; - return get_interface<PPB_Scrollbar_Dev>()->GetThickness(); + return get_interface<PPB_Scrollbar_Dev>()->GetThickness(pp_resource()); } uint32_t Scrollbar_Dev::GetValue() { |