[email protected] | aebcd0dd | 2012-10-05 17:48:58 | [diff] [blame] | 1 | // Copyright 2012 The Chromium Authors. All rights reserved. |
2 | // Use of this source code is governed by a BSD-style license that can be | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #ifndef BASE_IOS_IOS_UTIL_H_ | ||||
6 | #define BASE_IOS_IOS_UTIL_H_ | ||||
7 | |||||
avi | 9b6f4293 | 2015-12-26 22:15:14 | [diff] [blame^] | 8 | #include <stdint.h> |
9 | |||||
[email protected] | aebcd0dd | 2012-10-05 17:48:58 | [diff] [blame] | 10 | #include "base/base_export.h" |
[email protected] | aebcd0dd | 2012-10-05 17:48:58 | [diff] [blame] | 11 | |
12 | namespace base { | ||||
13 | namespace ios { | ||||
14 | |||||
sdefresne | 2f3869f9 | 2014-09-25 15:31:34 | [diff] [blame] | 15 | // Returns whether the operating system is iOS 8 or later. |
16 | BASE_EXPORT bool IsRunningOnIOS8OrLater(); | ||||
17 | |||||
pkl | ded303e9 | 2015-07-06 16:14:58 | [diff] [blame] | 18 | // Returns whether the operating system is iOS 9 or later. |
19 | BASE_EXPORT bool IsRunningOnIOS9OrLater(); | ||||
20 | |||||
[email protected] | 1c95c21 | 2013-06-29 14:16:00 | [diff] [blame] | 21 | // Returns whether the operating system is at the given version or later. |
avi | 9b6f4293 | 2015-12-26 22:15:14 | [diff] [blame^] | 22 | BASE_EXPORT bool IsRunningOnOrLater(int32_t major, |
23 | int32_t minor, | ||||
24 | int32_t bug_fix); | ||||
[email protected] | aebcd0dd | 2012-10-05 17:48:58 | [diff] [blame] | 25 | |
marq | f51b003 | 2015-08-10 08:55:17 | [diff] [blame] | 26 | // Returns whether iOS is signalling that an RTL text direction should be used |
marq | b2238de | 2015-09-21 17:06:21 | [diff] [blame] | 27 | // regardless of the current locale. This should not return true if the current |
28 | // language is a "real" RTL language such as Arabic or Urdu; it should only | ||||
29 | // return true in cases where the RTL text direction has been forced (for | ||||
30 | // example by using the "RTL Psuedolanguage" option when launching from XCode). | ||||
marq | f51b003 | 2015-08-10 08:55:17 | [diff] [blame] | 31 | BASE_EXPORT bool IsInForcedRTL(); |
32 | |||||
[email protected] | aebcd0dd | 2012-10-05 17:48:58 | [diff] [blame] | 33 | } // namespace ios |
34 | } // namespace base | ||||
35 | |||||
36 | #endif // BASE_IOS_IOS_UTIL_H_ |