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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlayMock.h

Issue 2467693002: Implement overlay scrollbar fade out for non-composited scrollers. (Closed)
Patch Set: sigh....git cl format Created 4 years, 1 month 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
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; }
};

Powered by Google App Engine
This is Rietveld 408576698