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

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

Issue 2509843004: Disable overlay scrollbars to hide them on non-Mac. (Closed)
Patch Set: Renamed to shouldDisableInvisibleScrollbars 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
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/ScrollbarThemeMac.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1ed241d367c727b48a8db187cf872150f62220e4..d7877208a9506bb034b7dc5c4ac2a93f7eb48265 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlayMock.h
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlayMock.h
@@ -50,6 +50,14 @@ class PLATFORM_EXPORT ScrollbarThemeOverlayMock : public ScrollbarThemeOverlay {
m_delayInSeconds = delayInSeconds;
}
+ void paintThumb(GraphicsContext& gc,
+ const Scrollbar& scrollbar,
+ const IntRect& rect) override {
+ if (!scrollbar.enabled())
+ return;
+ ScrollbarThemeOverlay::paintThumb(gc, scrollbar, rect);
+ }
+
private:
double m_delayInSeconds;
bool isMockTheme() const final { return true; }
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/ScrollbarThemeMac.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698