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

Side by Side Diff: ui/base/cocoa/rtl_feature.mm

Issue 2555033003: Add ScopedMacRTL class for Cocoa browser RTL testing (Closed)
Patch Set: Review comments Created 4 years 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 unified diff | Download patch
OLDNEW
(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 #import "ui/base/cocoa/rtl_feature.h"
6
7 #import <Cocoa/Cocoa.h>
8
9 #include "base/i18n/rtl.h"
10 #include "base/mac/mac_util.h"
11
12 namespace ui {
Robert Sesek 2016/12/07 19:21:01 nit: blank line after
lgrey 2016/12/07 19:34:21 Done.
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 ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698