Index: Source/platform/scroll/ScrollbarThemeMacCommon.h |
diff --git a/Source/platform/scroll/ScrollbarThemeMacCommon.h b/Source/platform/scroll/ScrollbarThemeMacCommon.h |
index 05a6569fd30e84cccfdcd5845008afad697bbf10..69d65f5990cd7b8c4c4735758e6fe59d22da9c14 100644 |
--- a/Source/platform/scroll/ScrollbarThemeMacCommon.h |
+++ b/Source/platform/scroll/ScrollbarThemeMacCommon.h |
@@ -26,6 +26,7 @@ |
#ifndef ScrollbarThemeMacCommon_h |
#define ScrollbarThemeMacCommon_h |
+#include "platform/mac/NSScrollerImpDetails.h" |
#include "platform/scroll/ScrollbarTheme.h" |
namespace WebCore { |
@@ -36,7 +37,7 @@ public: |
virtual void registerScrollbar(ScrollbarThemeClient*) OVERRIDE; |
virtual void unregisterScrollbar(ScrollbarThemeClient*) OVERRIDE; |
- void preferencesChanged(float initialButtonDelay, float autoscrollButtonDelay, bool jumpOnTrackClick, bool redraw); |
+ void preferencesChanged(float initialButtonDelay, float autoscrollButtonDelay, bool jumpOnTrackClick, NSScrollerStyle preferredScrollerStyle, bool redraw); |
virtual bool supportsControlTints() const OVERRIDE { return true; } |
@@ -47,6 +48,10 @@ public: |
virtual void paintOverhangShadows(GraphicsContext*, const IntSize& scrollOffset, const IntRect& horizontalOverhangArea, const IntRect& verticalOverhangArea, const IntRect& dirtyRect) OVERRIDE; |
virtual void paintTickmarks(GraphicsContext*, ScrollbarThemeClient*, const IntRect&) OVERRIDE; |
+ static NSScrollerStyle recommendedScrollerStyle(); |
+ |
+ static bool isOverlayAPIAvailable(); |
+ |
protected: |
virtual int maxOverlapBetweenPages() OVERRIDE { return 40; } |