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

Side by Side Diff: chrome/browser/ui/cocoa/test/scoped_force_rtl_mac.h

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 #ifndef CHROME_BROWSER_UI_COCOA_TEST_SCOPED_FORCE_RTL_MAC_H__
6 #define CHROME_BROWSER_UI_COCOA_TEST_SCOPED_FORCE_RTL_MAC_H__
7
8 #include <string>
9
10 #include "base/test/scoped_feature_list.h"
11
12 namespace cocoa_l10n_util {
13
14 // Enables all flags required for
15 // |cocoa_l10n_util::ShouldDoExperimentalRTLLayout| to return true.
16 class ScopedForceRTLMac final {
17 public:
18 ScopedForceRTLMac();
19 ~ScopedForceRTLMac();
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
27 DISALLOW_COPY_AND_ASSIGN(ScopedForceRTLMac);
28 };
29
30 } // namespace cocoa_l10n_util
31
32 #endif // CHROME_BROWSER_UI_COCOA_TEST_SCOPED_FORCE_RTL_MAC_H__
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/tabs/tab_controller_unittest.mm ('k') | chrome/browser/ui/cocoa/test/scoped_force_rtl_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698