| 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 <stdint.h> | 10 #include <stdint.h> |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 // failure. | 237 // failure. |
| 238 BASE_EXPORT std::string GetModelIdentifier(); | 238 BASE_EXPORT std::string GetModelIdentifier(); |
| 239 | 239 |
| 240 // Parse a model identifier string; for example, into ("MacBookPro", 6, 1). | 240 // Parse a model identifier string; for example, into ("MacBookPro", 6, 1). |
| 241 // If any error occurs, none of the input pointers are touched. | 241 // If any error occurs, none of the input pointers are touched. |
| 242 BASE_EXPORT bool ParseModelIdentifier(const std::string& ident, | 242 BASE_EXPORT bool ParseModelIdentifier(const std::string& ident, |
| 243 std::string* type, | 243 std::string* type, |
| 244 int32_t* major, | 244 int32_t* major, |
| 245 int32_t* minor); | 245 int32_t* minor); |
| 246 | 246 |
| 247 // Get the system setting determining whether scroll animations (e.g. when |
| 248 // user uses home/end keys) should be enabled. |
| 249 BASE_EXPORT bool IsScrollAnimationEnabled(); |
| 250 |
| 247 } // namespace mac | 251 } // namespace mac |
| 248 } // namespace base | 252 } // namespace base |
| 249 | 253 |
| 250 #endif // BASE_MAC_MAC_UTIL_H_ | 254 #endif // BASE_MAC_MAC_UTIL_H_ |
| OLD | NEW |