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

Side by Side Diff: ui/base/test/scoped_mac_rtl.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 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 BASE_TEST_SCOPED_MAC_RTL_H_
6 #define BASE_TEST_SCOPED_MAC_RTL_H_
7
8 #import <Cocoa/Cocoa.h>
Robert Sesek 2016/12/07 16:09:59 Move this into the .mm file so that this file can
9 #include <string>
10
11 #include "base/test/scoped_feature_list.h"
12
13 namespace cocoa_rtl_util {
Robert Sesek 2016/12/07 16:09:59 namespace ui
14
15 // Enables all flags required for
16 // |cocoa_rtl_util::ShouldDoExperimentalRTLLayout|
17 // to return true.
18 class ScopedMacRTL final {
Robert Sesek 2016/12/07 16:09:59 ScopedEnableMacRTLLayout ?
19 public:
20 ScopedMacRTL();
21 ~ScopedMacRTL();
22
23 private:
24 BOOL original_apple_text_direction_;
25 BOOL original_rtl_writing_direction_;
26 std::string original_locale_;
27 base::test::ScopedFeatureList scoped_feature_list_;
28 DISALLOW_COPY_AND_ASSIGN(ScopedMacRTL);
29 };
30
31 } // namespace cocoa_rtl_util
32
33 #endif // BASE_TEST_SCOPED_MAC_RTL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698