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

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

Issue 2845003003: [Mac] Reverse bookmark buttons and menus in RTL (take 2) (Closed)
Patch Set: Go back to hardcoding image y offset Created 3 years, 8 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.h
diff --git a/chrome/browser/ui/cocoa/l10n_util.h b/chrome/browser/ui/cocoa/l10n_util.h
index 7e6175c13c4f4cf9adf64776a699b07fd69e1b6e..5a3ac588cd4cb58155664360b07e9bdf1569e2d2 100644
--- a/chrome/browser/ui/cocoa/l10n_util.h
+++ b/chrome/browser/ui/cocoa/l10n_util.h
@@ -52,6 +52,15 @@ bool ShouldDoExperimentalRTLLayout();
// OSes would make Chrome stick out.
bool ShouldFlipWindowControlsInRTL();
+// TODO(lgrey): Remove these when all builds are on 10.12 SDK.
shrike 2017/05/03 17:35:55 Can you add something like a check for min deploym
lgrey 2017/05/03 21:32:48 Done
+
+// 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);

Powered by Google App Engine
This is Rietveld 408576698