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

Unified Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.mm

Issue 2912403004: [Mac] Mirror bookmark bubble folder dropdown in RTL (Closed)
Patch Set: CL comment 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.mm
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.mm
index 4375e5b96902fff2e02fc71d55a1082ec20ee2e3..573498fb6a76ed5a1c0a74b79dd5f26cd3850587 100644
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.mm
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.mm
@@ -329,6 +329,12 @@ using bookmarks::BookmarkNode;
cocoa_l10n_util::FlipAllSubviewsIfNecessary([nameTextField_ superview]);
// Relative order of the done and options buttons.
cocoa_l10n_util::FlipAllSubviewsIfNecessary(trailingButtonContainer_);
+ if (cocoa_l10n_util::ShouldDoExperimentalRTLLayout()) {
+ // Fix up pop-up button from the nib.
+ [folderPopUpButton_ setUserInterfaceLayoutDirection:
+ NSUserInterfaceLayoutDirectionRightToLeft];
+ [folderPopUpButton_ setAlignment:NSNaturalTextAlignment];
+ }
}
@end // BookmarkBubbleController
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698