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

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

Issue 2511973002: Reverse bookmark buttons and menus in RTL (Closed)
Patch Set: Use line width instead of hardcoding cell inset Created 4 years 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 | « chrome/browser/ui/cocoa/gradient_button_cell.mm ('k') | chrome/browser/ui/cocoa/l10n_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/l10n_util.h
diff --git a/chrome/browser/ui/cocoa/l10n_util.h b/chrome/browser/ui/cocoa/l10n_util.h
index a7d8a8069652f35ec6f90a85f348fb7419e0b50c..dfab8680e14ada13b736d3fa281b065597fa3a37 100644
--- a/chrome/browser/ui/cocoa/l10n_util.h
+++ b/chrome/browser/ui/cocoa/l10n_util.h
@@ -49,4 +49,17 @@ bool ShouldDoExperimentalRTLLayout();
// OSes would make Chrome stick out.
bool ShouldFlipWindowControlsInRTL();
+// TODO(lgrey): Remove these when all builds are on 10.12 SDK.
+
+// Returns NSImageLeading when available (10.12+), otherwise
+// NSImageLeft for LTR and NSImageRight in RTL.
+NSCellImagePosition LeadingCellImagePosition();
+// Returns NSImageTrailing when available (10.12+), otherwise
+// NSImageRight for LTR and NSImageLeft in RTL.
+NSCellImagePosition TrailingCellImagePosition();
+
+// Returns an autoreleased image containing |image| flipped
+// across the x axis.
+NSImage* FlippedImage(NSImage* image);
+
} // namespace cocoa_l10n_util
« no previous file with comments | « chrome/browser/ui/cocoa/gradient_button_cell.mm ('k') | chrome/browser/ui/cocoa/l10n_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698