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

Unified Diff: ppapi/c/dev/ppb_scrollbar_dev.h

Issue 7538006: Pepper and WebKit API change to support a plugin knowing if a scrollbar is an overlay one. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Get rid of ScrollbarGroup's methods and the ResizeClient interface Created 9 years, 4 months 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 | « no previous file | ppapi/c/dev/ppb_scrollbar_group_dev.h » ('j') | ppapi/cpp/dev/scrollbar_dev.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/dev/ppb_scrollbar_dev.h
===================================================================
--- ppapi/c/dev/ppb_scrollbar_dev.h (revision 95420)
+++ ppapi/c/dev/ppb_scrollbar_dev.h (working copy)
@@ -21,15 +21,15 @@
} PP_ScrollBy_Dev;
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_4
+#define PPB_SCROLLBAR_DEV_INTERFACE_0_5 "PPB_Scrollbar(Dev);0.5"
+#define PPB_SCROLLBAR_DEV_INTERFACE PPB_SCROLLBAR_DEV_INTERFACE_0_5
// The interface for a scrollbar. A scrollbar is a widget, so the functions
// in PPB_Widget can also be used with scrollbar objects.
-struct PPB_Scrollbar_0_4_Dev {
+struct PPB_Scrollbar_Dev {
// Create a new scrollbar. Returns 0 if the instance is invalid.
PP_Resource (*Create)(PP_Instance instance,
+ PP_Instance scrollbar_group,
PP_Bool vertical);
// Returns PP_TRUE if the given resource is a Scrollbar. Returns PP_FALSE if
@@ -39,6 +39,9 @@
// Gets the thickness of a scrollbar.
uint32_t (*GetThickness)(PP_Resource resource);
+ // Returns PP_TRUE if the system scrollbar style is an overlap scrollbar.
+ PP_Bool (*IsOverlay)(PP_Resource scrollbar);
+
// Get/set the value of the scrollbar.
uint32_t (*GetValue)(PP_Resource scrollbar);
@@ -64,26 +67,5 @@
int32_t multiplier);
};
-// Old version with no resource argument to GetThickness.
-struct PPB_Scrollbar_0_3_Dev {
- PP_Resource (*Create)(PP_Instance instance,
- PP_Bool vertical);
- PP_Bool (*IsScrollbar)(PP_Resource resource);
- uint32_t (*GetThickness)();
- uint32_t (*GetValue)(PP_Resource scrollbar);
- void (*SetValue)(PP_Resource scrollbar,
- uint32_t value);
- void (*SetDocumentSize)(PP_Resource scrollbar,
- uint32_t size);
- void (*SetTickMarks)(PP_Resource scrollbar,
- const struct PP_Rect* tick_marks,
- uint32_t count);
- void (*ScrollBy)(PP_Resource scrollbar,
- PP_ScrollBy_Dev unit,
- int32_t multiplier);
-};
-
-typedef struct PPB_Scrollbar_0_4_Dev PPB_Scrollbar_Dev;
-
#endif /* PPAPI_C_DEV_PPB_SCROLLBAR_DEV_H_ */
« no previous file with comments | « no previous file | ppapi/c/dev/ppb_scrollbar_group_dev.h » ('j') | ppapi/cpp/dev/scrollbar_dev.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698