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

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

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 #ifndef UI_BASE_COCOA_RTL_UTILS_H
6 #define UI_BASE_COCOA_RTL_UTILS_H
Robert Sesek 2016/12/07 16:09:59 _utils files have a tendency to turn into a dumpin
7
8 #include "base/feature_list.h"
9 #include "ui/base/ui_base_export.h"
10
11 namespace cocoa_rtl_util {
Robert Sesek 2016/12/07 16:09:59 nit: blank lines around the inside of the namespac
Robert Sesek 2016/12/07 16:09:59 namespace ui
12 UI_BASE_EXPORT extern const base::Feature kExperimentalMacRTL;
Robert Sesek 2016/12/07 16:09:59 nit: blank line after
13 // Returns whether both:
14 // 1) Experimental Mac RTL support is enabled via the ExperimentalMacRTL
15 // feature;
16 // 2) The browser UI is in RTL mode.
17 // If ExperimentalMacRTL becomes the default, this function can be replaced with
18 // uses of base::i18n::IsRTL().
19 UI_BASE_EXPORT bool ShouldDoExperimentalRTLLayout();
20
21 // Returns true if ShouldDoExperimentalRTLLayout() is true and the OS is
22 // 10.12 or above. macOS 10.12 is the first OS where the native stoplight
23 // buttons are reversed in RTL, so manually reversing them in previous
24 // OSes would make Chrome stick out.
25 UI_BASE_EXPORT bool ShouldFlipWindowControlsInRTL();
26 } // namespace cocoa_rtl_util
27
28 #endif // UI_BASE_COCOA_RTL_UTILS_H
OLDNEW
« no previous file with comments | « ui/base/BUILD.gn ('k') | ui/base/cocoa/rtl_util.mm » ('j') | ui/base/cocoa/rtl_util.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698