blob: e677adc755635f455349c032bb3647ea0f9d6974 [file] [log] [blame]
[email protected]aebcd0dd2012-10-05 17:48:581// 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
avi9b6f42932015-12-26 22:15:148#include <stdint.h>
9
[email protected]aebcd0dd2012-10-05 17:48:5810#include "base/base_export.h"
[email protected]aebcd0dd2012-10-05 17:48:5811
12namespace base {
13namespace ios {
14
sdefresne2f3869f92014-09-25 15:31:3415// Returns whether the operating system is iOS 8 or later.
16BASE_EXPORT bool IsRunningOnIOS8OrLater();
17
pklded303e92015-07-06 16:14:5818// Returns whether the operating system is iOS 9 or later.
19BASE_EXPORT bool IsRunningOnIOS9OrLater();
20
[email protected]1c95c212013-06-29 14:16:0021// Returns whether the operating system is at the given version or later.
avi9b6f42932015-12-26 22:15:1422BASE_EXPORT bool IsRunningOnOrLater(int32_t major,
23 int32_t minor,
24 int32_t bug_fix);
[email protected]aebcd0dd2012-10-05 17:48:5825
marqf51b0032015-08-10 08:55:1726// Returns whether iOS is signalling that an RTL text direction should be used
marqb2238de2015-09-21 17:06:2127// 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).
marqf51b0032015-08-10 08:55:1731BASE_EXPORT bool IsInForcedRTL();
32
[email protected]aebcd0dd2012-10-05 17:48:5833} // namespace ios
34} // namespace base
35
36#endif // BASE_IOS_IOS_UTIL_H_