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

Unified Diff: public/web/mac/WebScrollbarTheme.h

Issue 142033003: Move preferred scrollbar style preference change listening from renderer to browser, 1 of 3. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Define enum 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/web/mac/WebScrollbarTheme.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/mac/WebScrollbarTheme.h
diff --git a/public/web/mac/WebScrollbarTheme.h b/public/web/mac/WebScrollbarTheme.h
index 66cff89944e0d58c85f0ac5d4a5e0eb0fc1c1a6e..5ece9897d542822aa91bda599118793fcbddd103 100644
--- a/public/web/mac/WebScrollbarTheme.h
+++ b/public/web/mac/WebScrollbarTheme.h
@@ -35,16 +35,27 @@
namespace blink {
+// This enum must match NSScrollerStyle in the 10.7 SDK.
+enum ScrollerStyle {
+ ScrollerStyleLegacy = 0,
+ ScrollerStyleOverlay = 1
+};
+
class WebScrollbarTheme {
public:
// Updates the scrollbar appearance and behavior.
// |initialButtonDelay| is the current value of NSScrollerButtonDelay from NSUserDefaults.
// |autoscrollButtonDelay| is the current value of NSScrollerButtonPeriod from NSUserDefaults.
// |jumpOnTrackClick| is the current value of AppleScrollerPagingBehavior from NSUserDefaults.
+ // |preferredScrollerStyle| is the current value of +[NSScroller preferredScrollerStyle].
// |redraw| is true if the update requires a redraw to include the change.
+ // TODO(rsesek): Remove the first version after two-side patch lands. http://crbug.com/306348
BLINK_EXPORT static void updateScrollbars(
float initialButtonDelay, float autoscrollButtonDelay,
bool jumpOnTrackClick, bool redraw);
+ BLINK_EXPORT static void updateScrollbars(
+ float initialButtonDelay, float autoscrollButtonDelay,
+ bool jumpOnTrackClick, ScrollerStyle preferredScrollerStyle, bool redraw);
};
} // namespace blink
« no previous file with comments | « Source/web/mac/WebScrollbarTheme.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698