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

Unified Diff: Source/platform/scroll/ScrollbarThemeMacCommon.h

Issue 136333009: Move preferred scrollbar style preference change listening from renderer to browser, 3 of 3. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 11 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
« no previous file with comments | « Source/platform/mac/ScrollAnimatorMac.mm ('k') | Source/platform/scroll/ScrollbarThemeMacCommon.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/scroll/ScrollbarThemeMacCommon.h
diff --git a/Source/platform/scroll/ScrollbarThemeMacCommon.h b/Source/platform/scroll/ScrollbarThemeMacCommon.h
index 05a6569fd30e84cccfdcd5845008afad697bbf10..69d65f5990cd7b8c4c4735758e6fe59d22da9c14 100644
--- a/Source/platform/scroll/ScrollbarThemeMacCommon.h
+++ b/Source/platform/scroll/ScrollbarThemeMacCommon.h
@@ -26,6 +26,7 @@
#ifndef ScrollbarThemeMacCommon_h
#define ScrollbarThemeMacCommon_h
+#include "platform/mac/NSScrollerImpDetails.h"
#include "platform/scroll/ScrollbarTheme.h"
namespace WebCore {
@@ -36,7 +37,7 @@ public:
virtual void registerScrollbar(ScrollbarThemeClient*) OVERRIDE;
virtual void unregisterScrollbar(ScrollbarThemeClient*) OVERRIDE;
- void preferencesChanged(float initialButtonDelay, float autoscrollButtonDelay, bool jumpOnTrackClick, bool redraw);
+ void preferencesChanged(float initialButtonDelay, float autoscrollButtonDelay, bool jumpOnTrackClick, NSScrollerStyle preferredScrollerStyle, bool redraw);
virtual bool supportsControlTints() const OVERRIDE { return true; }
@@ -47,6 +48,10 @@ public:
virtual void paintOverhangShadows(GraphicsContext*, const IntSize& scrollOffset, const IntRect& horizontalOverhangArea, const IntRect& verticalOverhangArea, const IntRect& dirtyRect) OVERRIDE;
virtual void paintTickmarks(GraphicsContext*, ScrollbarThemeClient*, const IntRect&) OVERRIDE;
+ static NSScrollerStyle recommendedScrollerStyle();
+
+ static bool isOverlayAPIAvailable();
+
protected:
virtual int maxOverlapBetweenPages() OVERRIDE { return 40; }
« no previous file with comments | « Source/platform/mac/ScrollAnimatorMac.mm ('k') | Source/platform/scroll/ScrollbarThemeMacCommon.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698