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

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

Issue 2339873002: Replace hide-scrollbars flag with a web setting. (Closed)
Patch Set: Add missing plumbing of hide_scrollbars preference. Created 4 years, 3 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 aeef8c191c65709e0759b5d60dff0f7bbcaf00c3..5f0b03677024106e859dfbb7dfce00098ebbd708 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlayMock.h
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlayMock.h
@@ -37,14 +37,7 @@ namespace blink {
class PLATFORM_EXPORT ScrollbarThemeOverlayMock : public ScrollbarThemeOverlay {
public:
- 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)) { }
+ ScrollbarThemeOverlayMock() : ScrollbarThemeOverlay(3, 4, DisallowHitTest, Color(128, 128, 128)) { }
private:
bool isMockTheme() const final { return true; }

Powered by Google App Engine
This is Rietveld 408576698