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

Unified Diff: chrome/browser/ui/cocoa/l10n_util.mm

Issue 2901973002: [Mac] Mirror profile switcher UI in RTL (Closed)
Patch Set: + supervised user badge Created 3 years, 7 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
Index: chrome/browser/ui/cocoa/l10n_util.mm
diff --git a/chrome/browser/ui/cocoa/l10n_util.mm b/chrome/browser/ui/cocoa/l10n_util.mm
index 857770e2c2c0b5787b119b3288016f41cd785cc4..83aa6a4611cc5a70bea74ce436e4860593493db7 100644
--- a/chrome/browser/ui/cocoa/l10n_util.mm
+++ b/chrome/browser/ui/cocoa/l10n_util.mm
@@ -117,6 +117,14 @@ NSCellImagePosition TrailingCellImagePosition() {
}
#endif // MAC_OS_X_VERSION_10_12
+NSRectEdge LeadingEdge() {
+ return ShouldDoExperimentalRTLLayout() ? NSMaxXEdge : NSMinXEdge;
+}
+
+NSRectEdge TrailingEdge() {
+ return ShouldDoExperimentalRTLLayout() ? NSMinXEdge : NSMaxXEdge;
+}
+
// Adapted from Apple's RTL docs (goo.gl/cBaFnT)
NSImage* FlippedImage(NSImage* image) {
const NSSize size = [image size];

Powered by Google App Engine
This is Rietveld 408576698