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

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

Issue 2555033003: Add ScopedMacRTL class for Cocoa browser RTL testing (Closed)
Patch Set: Add to deps AFTER deps exists 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 (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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698