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

Unified Diff: third_party/WebKit/Source/platform/mac/VersionUtilMac.mm

Issue 1424983002: Invalidate scrollbars when window activity changes if needed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: be forceful about 10.6-only Created 5 years 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/mac/VersionUtilMac.mm
diff --git a/third_party/WebKit/Source/platform/mac/VersionUtilMac.mm b/third_party/WebKit/Source/platform/mac/VersionUtilMac.mm
index abb5f7a2239ba23cb88b506677517addf7bab7b7..d519f23975f425d6c91f45e986f89259402aa73d 100644
--- a/third_party/WebKit/Source/platform/mac/VersionUtilMac.mm
+++ b/third_party/WebKit/Source/platform/mac/VersionUtilMac.mm
@@ -58,6 +58,7 @@ int MacOSXMinorVersion()
}
enum {
+ SNOW_LEOPARD_MINOR_VERSION = 6,
LION_MINOR_VERSION = 7,
MAVERICKS_MINOR_VERSION = 9,
YOSEMITE_MINOR_VERSION = 10,
@@ -68,6 +69,11 @@ enum {
namespace blink {
+bool IsOSSnowLeopard()
+{
+ return MacOSXMinorVersion() == SNOW_LEOPARD_MINOR_VERSION;
+}
+
bool IsOSLionOrEarlier()
{
return MacOSXMinorVersion() <= LION_MINOR_VERSION;
« no previous file with comments | « third_party/WebKit/Source/platform/mac/VersionUtilMac.h ('k') | third_party/WebKit/Source/platform/scroll/Scrollbar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698