Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | |
|
Robert Sesek
2016/12/07 16:09:59
nit: no (c) in new files
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #import "ui/base/cocoa/rtl_util.h" | |
| 6 | |
| 7 #import <Cocoa/Cocoa.h> | |
| 8 | |
| 9 #include "base/i18n/rtl.h" | |
| 10 #include "base/mac/mac_util.h" | |
| 11 | |
| 12 namespace cocoa_rtl_util { | |
|
Robert Sesek
2016/12/07 16:09:59
nit: blank lines on the inside of the namespace
| |
| 13 const base::Feature kExperimentalMacRTL{"ExperimentalMacRTL", | |
| 14 base::FEATURE_DISABLED_BY_DEFAULT}; | |
| 15 | |
| 16 bool ShouldDoExperimentalRTLLayout() { | |
| 17 return base::i18n::IsRTL() && | |
| 18 base::FeatureList::IsEnabled(kExperimentalMacRTL); | |
| 19 } | |
| 20 | |
| 21 bool ShouldFlipWindowControlsInRTL() { | |
| 22 return ShouldDoExperimentalRTLLayout() && base::mac::IsAtLeastOS10_12(); | |
| 23 } | |
| 24 | |
| 25 } // namespace cocoa_rtl_util | |
| OLD | NEW |