OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 BASE_MAC_MAC_UTIL_H_ | 5 #ifndef BASE_MAC_MAC_UTIL_H_ |
6 #define BASE_MAC_MAC_UTIL_H_ | 6 #define BASE_MAC_MAC_UTIL_H_ |
7 | 7 |
8 #include <AvailabilityMacros.h> | 8 #include <AvailabilityMacros.h> |
9 #include <Carbon/Carbon.h> | 9 #include <Carbon/Carbon.h> |
10 #include <string> | 10 #include <string> |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 // 'Login Item' with 'hide on startup' flag. Used to suppress opening windows. | 121 // 'Login Item' with 'hide on startup' flag. Used to suppress opening windows. |
122 BASE_EXPORT bool WasLaunchedAsHiddenLoginItem(); | 122 BASE_EXPORT bool WasLaunchedAsHiddenLoginItem(); |
123 | 123 |
124 // Run-time OS version checks. Use these instead of | 124 // Run-time OS version checks. Use these instead of |
125 // base::SysInfo::OperatingSystemVersionNumbers. Prefer the "OrEarlier" and | 125 // base::SysInfo::OperatingSystemVersionNumbers. Prefer the "OrEarlier" and |
126 // "OrLater" variants to those that check for a specific version, unless you | 126 // "OrLater" variants to those that check for a specific version, unless you |
127 // know for sure that you need to check for a specific version. | 127 // know for sure that you need to check for a specific version. |
128 | 128 |
129 // Snow Leopard is Mac OS X 10.6, Darwin 10. | 129 // Snow Leopard is Mac OS X 10.6, Darwin 10. |
130 BASE_EXPORT bool IsOSSnowLeopard(); | 130 BASE_EXPORT bool IsOSSnowLeopard(); |
| 131 BASE_EXPORT bool IsOSSnowLeopardOrLater(); |
131 | 132 |
132 // Lion is Mac OS X 10.7, Darwin 11. | 133 // Lion is Mac OS X 10.7, Darwin 11. |
133 BASE_EXPORT bool IsOSLion(); | 134 BASE_EXPORT bool IsOSLion(); |
134 BASE_EXPORT bool IsOSLionOrEarlier(); | 135 BASE_EXPORT bool IsOSLionOrEarlier(); |
135 BASE_EXPORT bool IsOSLionOrLater(); | 136 BASE_EXPORT bool IsOSLionOrLater(); |
136 | 137 |
137 // Mountain Lion is Mac OS X 10.8, Darwin 12. | 138 // Mountain Lion is Mac OS X 10.8, Darwin 12. |
138 BASE_EXPORT bool IsOSMountainLion(); | 139 BASE_EXPORT bool IsOSMountainLion(); |
139 BASE_EXPORT bool IsOSMountainLionOrLater(); | 140 BASE_EXPORT bool IsOSMountainLionOrLater(); |
140 | 141 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 // If any error occurs, none of the input pointers are touched. | 189 // If any error occurs, none of the input pointers are touched. |
189 BASE_EXPORT bool ParseModelIdentifier(const std::string& ident, | 190 BASE_EXPORT bool ParseModelIdentifier(const std::string& ident, |
190 std::string* type, | 191 std::string* type, |
191 int32* major, | 192 int32* major, |
192 int32* minor); | 193 int32* minor); |
193 | 194 |
194 } // namespace mac | 195 } // namespace mac |
195 } // namespace base | 196 } // namespace base |
196 | 197 |
197 #endif // BASE_MAC_MAC_UTIL_H_ | 198 #endif // BASE_MAC_MAC_UTIL_H_ |
OLD | NEW |