Upstreaming browser/ui/uikit_ui_util from iOS.
commit18831714d344d489908705d374cf8c416afa603d
authorjbbegue <jbbegue@chromium.org>
Fri, 7 Aug 2015 10:15:47 +0000 (7 03:15 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 7 Aug 2015 10:16:30 +0000 (7 10:16 +0000)
tree5d746b841072cf73535599715ca84a5df8c6e860
parent8b581d8b638951f98c0fb0c0116ac18b355b825e
Upstreaming browser/ui/uikit_ui_util from iOS.

Added AddSameCenterXConstraint which add constraints to a
parent view to horizontally align two subviews.
Added BOOL IsRTLUILayout() which take into account RTL pseudo
language. This will be removed once base::i18n::IsRTL() supports it.

BUG=None

Review URL: https://codereview.chromium.org/1280913003

Cr-Commit-Position: refs/heads/master@{#342328}
ios/chrome/browser/ui/uikit_ui_util.h
ios/chrome/browser/ui/uikit_ui_util.mm