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

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

Issue 1653003002: Make scrollAnimatorEnabled work on Mac like it does on other platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Also allow IO ML for unit tests Created 4 years, 10 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
« no previous file with comments | « no previous file | base/mac/mac_util.mm » ('j') | base/mac/mac_util.mm » ('J')
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 <stdint.h> 10 #include <stdint.h>
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « no previous file | base/mac/mac_util.mm » ('j') | base/mac/mac_util.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698