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

Unified Diff: base/ios/ios_util.mm

Issue 1254933002: Support XCode's "Right to Left Pseudolanguage" on iOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« base/i18n/rtl.cc ('K') | « base/ios/ios_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/ios/ios_util.mm
diff --git a/base/ios/ios_util.mm b/base/ios/ios_util.mm
index d9200450950aeee977568d104b245b807c96e164..c86d11f9a6bdfc8d40c923c0fb2e2e2f3c109955 100644
--- a/base/ios/ios_util.mm
+++ b/base/ios/ios_util.mm
@@ -4,6 +4,8 @@
#include "base/ios/ios_util.h"
+#import <Foundation/Foundation.h>
+
#include "base/sys_info.h"
namespace {
@@ -39,5 +41,10 @@ bool IsRunningOnOrLater(int32 major, int32 minor, int32 bug_fix) {
return true;
}
+bool IsForcingRTL() {
+ NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
+ return [defaults boolForKey:@"AppleTextDirection"];
+}
+
} // namespace ios
} // namespace base
« base/i18n/rtl.cc ('K') | « base/ios/ios_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698