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

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

Issue 2511973002: Reverse bookmark buttons and menus in RTL (Closed)
Patch Set: Increase cell size to account for gradient button's inset Created 4 years, 1 month 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 fcf68d99634379baa24d16970b50a7c17b9f5b6d..9d83c19246b90090e43ddaa40fcbe6be403d1907 100644
--- a/chrome/browser/ui/cocoa/l10n_util.h
+++ b/chrome/browser/ui/cocoa/l10n_util.h
@@ -43,4 +43,17 @@ extern const base::Feature kExperimentalMacRTL;
// uses of base::i18n::IsRTL().
bool ShouldDoExperimentalRTLLayout();
+// 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

Powered by Google App Engine
This is Rietveld 408576698