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

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

Issue 2509843004: Disable overlay scrollbars to hide them on non-Mac. (Closed)
Patch Set: Fix tests 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/ScrollbarTheme.h
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollbarTheme.h b/third_party/WebKit/Source/platform/scroll/ScrollbarTheme.h
index 86eec510281cc39bc1b4747f0a84ab7d84f9e8f9..f93976a7f244469f92934f174e3588b8ca618dfa 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarTheme.h
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarTheme.h
@@ -71,6 +71,13 @@ class PLATFORM_EXPORT ScrollbarTheme {
virtual bool usesOverlayScrollbars() const { return false; }
virtual void updateScrollbarOverlayColorTheme(const ScrollbarThemeClient&) {}
+ // If true, scrollbars that become invisible (i.e. overlay scrollbars that
+ // fade out) should be marked as disabled. This option exists since Mac and
+ // Aura overlays implement the fade out differently, with Mac painting code
+ // fading out the scrollbars. Aura scrollbars require disabling the scrollbar
+ // to prevent painting it.
+ virtual bool disableInvisibleScrollbars() const { return true; }
+
virtual bool invalidateOnMouseEnterExit() { return false; }
virtual bool invalidateOnWindowActiveChange() const { return false; }

Powered by Google App Engine
This is Rietveld 408576698