| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_BASE_COCOA_RTL_FEATURE_H_ |
| 6 #define UI_BASE_COCOA_RTL_FEATURE_H_ |
| 7 |
| 8 #include "base/feature_list.h" |
| 9 #include "ui/base/ui_base_export.h" |
| 10 |
| 11 namespace ui { |
| 12 |
| 13 UI_BASE_EXPORT extern const base::Feature kExperimentalMacRTL; |
| 14 |
| 15 // Returns whether both: |
| 16 // 1) Experimental Mac RTL support is enabled via the ExperimentalMacRTL |
| 17 // feature; |
| 18 // 2) The browser UI is in RTL mode. |
| 19 // If ExperimentalMacRTL becomes the default, this function can be replaced with |
| 20 // uses of base::i18n::IsRTL(). |
| 21 UI_BASE_EXPORT bool ShouldDoExperimentalRTLLayout(); |
| 22 |
| 23 // Returns true if ShouldDoExperimentalRTLLayout() is true and the OS is |
| 24 // 10.12 or above. macOS 10.12 is the first OS where the native stoplight |
| 25 // buttons are reversed in RTL, so manually reversing them in previous |
| 26 // OSes would make Chrome stick out. |
| 27 UI_BASE_EXPORT bool ShouldFlipWindowControlsInRTL(); |
| 28 |
| 29 } // namespace ui |
| 30 |
| 31 #endif // UI_BASE_COCOA_RTL_FEATURE_H_ |
| OLD | NEW |