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

Unified Diff: Source/web/mac/WebScrollbarTheme.cpp

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 | « no previous file | public/web/mac/WebScrollbarTheme.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/mac/WebScrollbarTheme.cpp
diff --git a/Source/web/mac/WebScrollbarTheme.cpp b/Source/web/mac/WebScrollbarTheme.cpp
index 12228513766ab78fcf1d8e15fe2ed39a1e06a186..be04b7a0d1741839e0b92f946748c699b20a8b27 100644
--- a/Source/web/mac/WebScrollbarTheme.cpp
+++ b/Source/web/mac/WebScrollbarTheme.cpp
@@ -37,6 +37,11 @@ using namespace WebCore;
namespace blink {
+#if defined(MAC_OS_X_VERSION_10_7) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7
+COMPILE_ASSERT(ScrollerStyleLegacy == NSScrollerStyleLegacy, ScrollerStyle_Legacy_must_be_equal);
+COMPILE_ASSERT(ScrollerStyleOverlay == NSScrollerStyleOverlay, ScrollerStyle_Overlay_must_be_equal);
+#endif
+
void WebScrollbarTheme::updateScrollbars(
float initialButtonDelay, float autoscrollButtonDelay,
bool jumpOnTrackClick, bool redraw)
@@ -49,4 +54,11 @@ void WebScrollbarTheme::updateScrollbars(
initialButtonDelay, autoscrollButtonDelay, jumpOnTrackClick, redraw);
}
+void WebScrollbarTheme::updateScrollbars(
+ float initialButtonDelay, float autoscrollButtonDelay,
+ bool jumpOnTrackClick, ScrollerStyle preferredScrollerStyle, bool redraw)
+{
+ updateScrollbars(initialButtonDelay, autoscrollButtonDelay, jumpOnTrackClick, redraw);
+}
+
} // namespace blink
« no previous file with comments | « no previous file | public/web/mac/WebScrollbarTheme.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698