Index: third_party/WebKit/Source/platform/scroll/ScrollbarTheme.h |
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollbarTheme.h b/third_party/WebKit/Source/platform/scroll/ScrollbarTheme.h |
index 5c9021bd5f2de31ff0f1cd2627420d1a26bb0bda..29e79e79e28aafd5f22373e6c5ceafdfa0d32718 100644 |
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarTheme.h |
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarTheme.h |
@@ -183,6 +183,24 @@ class PLATFORM_EXPORT ScrollbarTheme { |
virtual bool isMockTheme() const { return false; } |
+ virtual bool usesNinePatchThumbResource() const { return false; } |
+ |
+ // For a nine-patch scrollbar, this defines the painting canvas size which the |
+ // painting code will use to paint the scrollbar into. The actual scrollbar |
+ // dimensions will be ignored for purposes of painting since the resource can |
+ // be then resized without a repaint. |
+ virtual IntSize ninePatchThumbCanvasSize(const ScrollbarThemeClient&) const { |
+ NOTREACHED(); |
+ return IntSize(); |
+ } |
+ |
+ // For a nine-patch resource, the aperture defines the size of the center |
+ // patch that will be stretched out. |
+ virtual IntRect ninePatchThumbAperture(const ScrollbarThemeClient&) const { |
+ NOTREACHED(); |
+ return IntRect(); |
+ } |
+ |
static ScrollbarTheme& theme(); |
static void setMockScrollbarsEnabled(bool flag); |