OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef VersionUtilMac_h | 5 #ifndef VersionUtilMac_h |
6 #define VersionUtilMac_h | 6 #define VersionUtilMac_h |
7 | 7 |
8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 // Snow Leopard is Mac OS X 10.6, Darwin 10. | |
13 PLATFORM_EXPORT bool IsOSSnowLeopard(); | |
14 | |
15 // Lion is Mac OS X 10.7, Darwin 11. | 12 // Lion is Mac OS X 10.7, Darwin 11. |
16 PLATFORM_EXPORT bool IsOSLionOrEarlier(); | 13 PLATFORM_EXPORT bool IsOSLionOrEarlier(); |
17 | 14 |
18 // Mavericks is Mac OS X 10.9, Darwin 13. | 15 // Mavericks is Mac OS X 10.9, Darwin 13. |
19 PLATFORM_EXPORT bool IsOSMavericksOrEarlier(); | 16 PLATFORM_EXPORT bool IsOSMavericksOrEarlier(); |
20 PLATFORM_EXPORT bool IsOSMavericks(); | 17 PLATFORM_EXPORT bool IsOSMavericks(); |
21 | 18 |
22 // Yosemite is Mac OS X 10.10, Darwin 14. | 19 // Yosemite is Mac OS X 10.10, Darwin 14. |
23 PLATFORM_EXPORT bool IsOSYosemite(); | 20 PLATFORM_EXPORT bool IsOSYosemite(); |
24 | 21 |
25 // El Capitan is Mac OS X 10.11, Darwin 15. | 22 // El Capitan is Mac OS X 10.11, Darwin 15. |
26 PLATFORM_EXPORT bool IsOSElCapitan(); | 23 PLATFORM_EXPORT bool IsOSElCapitan(); |
27 | 24 |
28 } // namespace blink | 25 } // namespace blink |
29 | 26 |
30 #endif // VersionUtilMac_h | 27 #endif // VersionUtilMac_h |
OLD | NEW |