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

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

Issue 2239313002: Hide non-composited native scrollbars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update comment Created 4 years, 4 months 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 5f0b03677024106e859dfbb7dfce00098ebbd708..aeef8c191c65709e0759b5d60dff0f7bbcaf00c3 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlayMock.h
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlayMock.h
@@ -37,7 +37,14 @@ namespace blink {
class PLATFORM_EXPORT ScrollbarThemeOverlayMock : public ScrollbarThemeOverlay {
public:
- ScrollbarThemeOverlayMock() : ScrollbarThemeOverlay(3, 4, DisallowHitTest, Color(128, 128, 128)) { }
+ enum VisibilityOverride { DefaultVisibility, HideScrollbars };
+
+ ScrollbarThemeOverlayMock(VisibilityOverride visibility = DefaultVisibility)
+ : ScrollbarThemeOverlay(
+ (visibility == HideScrollbars) ? 0 : 3,
+ (visibility == HideScrollbars) ? 0 : 4,
+ DisallowHitTest,
+ (visibility == HideScrollbars) ? Color() : Color(128, 128, 128)) { }
private:
bool isMockTheme() const final { return true; }
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/ScrollbarTheme.cpp ('k') | third_party/WebKit/Source/web/WebRuntimeFeatures.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698