Index: third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlayMock.h |
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlayMock.h b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlayMock.h |
index 95eab9744722501cc80f69d66cda07b22a1dbbd4..1ed241d367c727b48a8db187cf872150f62220e4 100644 |
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlayMock.h |
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlayMock.h |
@@ -38,9 +38,20 @@ namespace blink { |
class PLATFORM_EXPORT ScrollbarThemeOverlayMock : public ScrollbarThemeOverlay { |
public: |
ScrollbarThemeOverlayMock() |
- : ScrollbarThemeOverlay(3, 4, DisallowHitTest, Color(128, 128, 128)) {} |
+ : ScrollbarThemeOverlay(3, 4, DisallowHitTest, Color(128, 128, 128)), |
+ m_delayInSeconds(0.0) {} |
+ |
+ double overlayScrollbarFadeOutDelaySeconds() const override { |
+ return m_delayInSeconds; |
+ } |
+ double overlayScrollbarFadeOutDurationSeconds() const override { return 0.0; } |
+ |
+ void setOverlayScrollbarFadeOutDelay(double delayInSeconds) { |
+ m_delayInSeconds = delayInSeconds; |
+ } |
private: |
+ double m_delayInSeconds; |
bool isMockTheme() const final { return true; } |
}; |