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

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

Issue 2541583002: [Mac] Don't flip window controls in RTL for macOS < 10.12 (Closed)
Patch Set: 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
« no previous file with comments | « chrome/browser/ui/cocoa/framed_browser_window.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 fcf68d99634379baa24d16970b50a7c17b9f5b6d..a7d8a8069652f35ec6f90a85f348fb7419e0b50c 100644
--- a/chrome/browser/ui/cocoa/l10n_util.h
+++ b/chrome/browser/ui/cocoa/l10n_util.h
@@ -43,4 +43,10 @@ extern const base::Feature kExperimentalMacRTL;
// uses of base::i18n::IsRTL().
bool ShouldDoExperimentalRTLLayout();
+// Returns true if ShouldDoExperimentalRTLLayout() is true and the OS is
+// 10.12 or above. macOS 10.12 is the first OS where the native stoplight
+// buttons are reversed in RTL, so manually reversing them in previous
+// OSes would make Chrome stick out.
+bool ShouldFlipWindowControlsInRTL();
+
} // namespace cocoa_l10n_util
« no previous file with comments | « chrome/browser/ui/cocoa/framed_browser_window.mm ('k') | chrome/browser/ui/cocoa/l10n_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698