blob: 91b045afb33dbb94f200d896589b6df6b7c5ffd9 [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"
justincohenb83910d2016-01-08 23:49:4311#include "base/files/file_path.h"
[email protected]aebcd0dd2012-10-05 17:48:5812
13namespace base {
14namespace ios {
15
michaeldo19e74eb2016-06-16 23:58:1016// Returns whether the operating system is iOS 10 or later.
17BASE_EXPORT bool IsRunningOnIOS10OrLater();
18
rohitraode9bce72017-06-14 15:37:3019// Returns whether the operating system is iOS 11 or later.
20BASE_EXPORT bool IsRunningOnIOS11OrLater();
21
Justin Cohen8f8fd9b2018-06-13 20:03:1122// Returns whether the operating system is iOS 12 or later.
23BASE_EXPORT bool IsRunningOnIOS12OrLater();
24
[email protected]1c95c212013-06-29 14:16:0025// Returns whether the operating system is at the given version or later.
avi9b6f42932015-12-26 22:15:1426BASE_EXPORT bool IsRunningOnOrLater(int32_t major,
27 int32_t minor,
28 int32_t bug_fix);
[email protected]aebcd0dd2012-10-05 17:48:5829
marqf51b0032015-08-10 08:55:1730// Returns whether iOS is signalling that an RTL text direction should be used
marqb2238de2015-09-21 17:06:2131// regardless of the current locale. This should not return true if the current
32// language is a "real" RTL language such as Arabic or Urdu; it should only
33// return true in cases where the RTL text direction has been forced (for
34// example by using the "RTL Psuedolanguage" option when launching from XCode).
marqf51b0032015-08-10 08:55:1735BASE_EXPORT bool IsInForcedRTL();
36
justincohenb83910d2016-01-08 23:49:4337// Stores the |path| of the ICU dat file in a global to be referenced later by
38// FilePathOfICUFile(). This should only be called once.
39BASE_EXPORT void OverridePathOfEmbeddedICU(const char* path);
40
41// Returns the overriden path set by OverridePathOfEmbeddedICU(), otherwise
42// returns invalid FilePath.
43BASE_EXPORT FilePath FilePathOfEmbeddedICU();
44
[email protected]aebcd0dd2012-10-05 17:48:5845} // namespace ios
46} // namespace base
47
48#endif // BASE_IOS_IOS_UTIL_H_