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

Side by Side Diff: base/mac/mac_util.h

Issue 12377016: mac: Don't do our Chinese Handwriting IME hack on OS X 10.9+ (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/renderer/renderer_main_platform_delegate_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 136
137 // Lion is Mac OS X 10.7, Darwin 11. 137 // Lion is Mac OS X 10.7, Darwin 11.
138 BASE_EXPORT bool IsOSLion(); 138 BASE_EXPORT bool IsOSLion();
139 BASE_EXPORT bool IsOSLionOrEarlier(); 139 BASE_EXPORT bool IsOSLionOrEarlier();
140 BASE_EXPORT bool IsOSLionOrLater(); 140 BASE_EXPORT bool IsOSLionOrLater();
141 141
142 // Mountain Lion is Mac OS X 10.8, Darwin 12. 142 // Mountain Lion is Mac OS X 10.8, Darwin 12.
143 BASE_EXPORT bool IsOSMountainLion(); 143 BASE_EXPORT bool IsOSMountainLion();
144 BASE_EXPORT bool IsOSMountainLionOrLater(); 144 BASE_EXPORT bool IsOSMountainLionOrLater();
145 145
146 // Cab (guessed name) is Mac OS X 10.9, Darwin 12.
147 BASE_EXPORT bool IsOSMountainLion();
148 BASE_EXPORT bool IsOSMountainLionOrLater();
149
146 // This should be infrequently used. It only makes sense to use this to avoid 150 // This should be infrequently used. It only makes sense to use this to avoid
147 // codepaths that are very likely to break on future (unreleased, untested, 151 // codepaths that are very likely to break on future (unreleased, untested,
148 // unborn) OS releases, or to log when the OS is newer than any known version. 152 // unborn) OS releases, or to log when the OS is newer than any known version.
149 BASE_EXPORT bool IsOSLaterThanMountainLion_DontCallThis(); 153 BASE_EXPORT bool IsOSLaterThanMountainLion_DontCallThis();
150 154
151 // When the deployment target is set, the code produced cannot run on earlier 155 // When the deployment target is set, the code produced cannot run on earlier
152 // OS releases. That enables some of the IsOS* family to be implemented as 156 // OS releases. That enables some of the IsOS* family to be implemented as
153 // constant-value inline functions. The MAC_OS_X_VERSION_MIN_REQUIRED macro 157 // constant-value inline functions. The MAC_OS_X_VERSION_MIN_REQUIRED macro
154 // contains the value of the deployment target. 158 // contains the value of the deployment target.
155 159
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // If any error occurs, none of the input pointers are touched. 195 // If any error occurs, none of the input pointers are touched.
192 BASE_EXPORT bool ParseModelIdentifier(const std::string& ident, 196 BASE_EXPORT bool ParseModelIdentifier(const std::string& ident,
193 std::string* type, 197 std::string* type,
194 int32* major, 198 int32* major,
195 int32* minor); 199 int32* minor);
196 200
197 } // namespace mac 201 } // namespace mac
198 } // namespace base 202 } // namespace base
199 203
200 #endif // BASE_MAC_MAC_UTIL_H_ 204 #endif // BASE_MAC_MAC_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/renderer_main_platform_delegate_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698