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

Unified Diff: ios/chrome/browser/ui/rtl_geometry.mm

Issue 1320353003: Removed deprecated function IsRTLUILayout(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « ios/chrome/browser/ui/rtl_geometry.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/rtl_geometry.mm
diff --git a/ios/chrome/browser/ui/rtl_geometry.mm b/ios/chrome/browser/ui/rtl_geometry.mm
index c5b7d0877237d55fc26f7728dbfa36446aa8a229..18aea85cf2df10050a2565a0c6d5fb77076f738e 100644
--- a/ios/chrome/browser/ui/rtl_geometry.mm
+++ b/ios/chrome/browser/ui/rtl_geometry.mm
@@ -215,23 +215,3 @@ NSLayoutFormatOptions LayoutOptionForRTLSupport() {
}
return NSLayoutFormatDirectionLeftToRight;
}
-
-#pragma mark - deprecated functions
-
-bool IsRTLUILayout() {
- if (base::ios::IsRunningOnIOS9OrLater()) {
-#if __IPHONE_9_0
- // Calling this method is better than using the locale on iOS9 since it will
- // work with the right to left pseudolanguage.
- return [UIView userInterfaceLayoutDirectionForSemanticContentAttribute:
- UISemanticContentAttributeUnspecified] ==
- UIUserInterfaceLayoutDirectionRightToLeft;
-#endif
- }
- // Using NSLocale instead of base::i18n::IsRTL() in order to take into account
- // right to left pseudolanguage correctly (which base::i18n::IsRTL() doesn't).
- return [NSLocale characterDirectionForLanguage:
- [[NSLocale currentLocale]
- objectForKey:NSLocaleLanguageCode]] ==
- NSLocaleLanguageDirectionRightToLeft;
-}
« no previous file with comments | « ios/chrome/browser/ui/rtl_geometry.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698