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

Side by Side Diff: ui/base/test/scoped_mac_rtl.h

Issue 2555033003: Add ScopedMacRTL class for Cocoa browser RTL testing (Closed)
Patch Set: Whitespace 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 #ifndef UI_BASE_TEST_SCOPED_MAC_RTL_H_
tapted 2016/12/07 23:20:27 Why src/ui/base ? (Is there a plan to use this out
6 #define UI_BASE_TEST_SCOPED_MAC_RTL_H_
7
8 #include <string>
9
10 #include "base/test/scoped_feature_list.h"
11
12 namespace ui {
13
14 // Enables all flags required for
15 // |ui::ShouldDoExperimentalRTLLayout| to return true.
16 class ScopedEnableMacRTLLayout final {
tapted 2016/12/07 23:20:27 Since there's only one class in the file, it would
17 public:
18 ScopedEnableMacRTLLayout();
19 ~ScopedEnableMacRTLLayout();
20
21 private:
22 BOOL original_apple_text_direction_;
23 BOOL original_rtl_writing_direction_;
24 std::string original_locale_;
25 base::test::ScopedFeatureList scoped_feature_list_;
26 DISALLOW_COPY_AND_ASSIGN(ScopedEnableMacRTLLayout);
tapted 2016/12/07 23:20:27 nit: blank line before
27 };
28
29 } // namespace ui
30
31 #endif // UI_BASE_TEST_SCOPED_MAC_RTL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698