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

Unified Diff: Source/platform/mac/NSScrollerImpDetails.h

Issue 147193002: Revert of 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: 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/blink_platform.gypi ('k') | Source/platform/mac/NSScrollerImpDetails.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/mac/NSScrollerImpDetails.h
diff --git a/Source/platform/mac/NSScrollerImpDetails.h b/Source/platform/mac/NSScrollerImpDetails.h
index e1c863150abe83c4e468281481c2e9e2a288edb8..2ec59f54645eba3be0ba31d4d006c8709a4f8cd0 100644
--- a/Source/platform/mac/NSScrollerImpDetails.h
+++ b/Source/platform/mac/NSScrollerImpDetails.h
@@ -28,10 +28,8 @@
#import <AvailabilityMacros.h>
-// This file forward-declares APIs for NSScroller that are only present on
-// build SDKs newer than are currently supported.
-
-#if !defined(MAC_OS_X_VERSION_10_7) || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7
+// Public APIs not available on versions of Mac on which we build
+#if __MAC_OS_X_VERSION_MAX_ALLOWED == 1060
enum {
NSScrollerStyleLegacy = 0,
NSScrollerStyleOverlay = 1
@@ -44,10 +42,13 @@
NSScrollerKnobStyleLight = 2
};
typedef NSInteger NSScrollerKnobStyle;
+#endif
+
+#if __MAC_OS_X_VERSION_MAX_ALLOWED == 1060
@interface NSScroller(NSObject)
+ (NSScrollerStyle)preferredScrollerStyle;
@end
-#endif // !10.7
+#endif
@interface NSObject (ScrollbarPainter)
+ (id)scrollerImpWithStyle:(NSScrollerStyle)newScrollerStyle controlSize:(NSControlSize)newControlSize horizontal:(BOOL)horizontal replacingScrollerImp:(id)previous;
@@ -107,4 +108,12 @@
- (void)endScrollGesture;
@end
-#endif // WebCore_NSScrollerImpDetails_h
+namespace WebCore {
+
+bool isScrollbarOverlayAPIAvailable();
+
+NSScrollerStyle recommendedScrollerStyle();
+
+}
+
+#endif
« no previous file with comments | « Source/platform/blink_platform.gypi ('k') | Source/platform/mac/NSScrollerImpDetails.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698