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

Unified Diff: ios/chrome/browser/ui/uikit_ui_util.h

Issue 1280913003: Upstreaming browser/ui/uikit_ui_util from iOS. (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 | « no previous file | ios/chrome/browser/ui/uikit_ui_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/uikit_ui_util.h
diff --git a/ios/chrome/browser/ui/uikit_ui_util.h b/ios/chrome/browser/ui/uikit_ui_util.h
index 56bad293000ec06f83252a473f7f388e7abab229..5bffe390600028c206ec9af46827b9360a513107 100644
--- a/ios/chrome/browser/ui/uikit_ui_util.h
+++ b/ios/chrome/browser/ui/uikit_ui_util.h
@@ -142,6 +142,12 @@ void ApplyVisualConstraintsWithMetrics(NSArray* constraints,
// |subview| must be a subview of |parentView|.
void AddSameCenterXConstraint(UIView* parentView, UIView* subview);
+// Adds a constraint that |subview1| and |subview2| are center aligned
+// horizontally on |parentView|.
+// |subview1| and |subview2| must be subview of |parentView|.
+void AddSameCenterXConstraint(UIView *parentView, UIView *subview1,
+ UIView *subview2);
+
// Adds a constraint that |subview| is center aligned vertically in
// |parentView|.
// |subview| must be a subview of |parentView|.
@@ -153,6 +159,13 @@ void AddSameCenterYConstraint(UIView* parentView, UIView* subview);
void AddSameCenterYConstraint(UIView* parentView,
UIView* subview1,
UIView* subview2);
+// Whether the UI is configured for right to left layout.
+// The implementation will use the local in order to get the UI layout direction
+// for version of iOS under 9.
+// TODO(jbbegue): Use base::i18n::IsRTL() instead when it will support RTL
+// pseudo language. Remove that method once base::i18n::IsRTL() is fixed.
+// crbug/514625.
+BOOL IsRTLUILayout();
// Returns true if the main application window's rootViewController is a compact
// iPad horizontal size class.
« no previous file with comments | « no previous file | ios/chrome/browser/ui/uikit_ui_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698