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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollbarTheme.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
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..a56f2155e80cad20e05fc2a07668c287d10a71f9 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 shouldDisableInvisibleScrollbars() const { return true; }
+
virtual bool invalidateOnMouseEnterExit() { return false; }
virtual bool invalidateOnWindowActiveChange() const { return false; }
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.cpp ('k') | third_party/WebKit/Source/platform/scroll/ScrollbarThemeMac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698