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

Side by Side Diff: base/i18n/base_i18n_switches.cc

Issue 2853523002: [rendertext,i18n] Added flag to force RTL rendering (Closed)
Patch Set: Corrected ordering and text, added cached look-ups Created 3 years, 7 months 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/i18n/base_i18n_switches.h" 5 #include "base/i18n/base_i18n_switches.h"
6 6
7 namespace switches { 7 namespace switches {
8 8
9 // Force the UI to a specific direction. Valid values are "ltr" (left-to-right) 9 // Force the UI to a specific direction. Valid values are "ltr" (left-to-right)
10 // and "rtl" (right-to-left). 10 // and "rtl" (right-to-left).
11 const char kForceUIDirection[] = "force-ui-direction"; 11 const char kForceUIDirection[] = "force-ui-direction";
12 12
13 const char kForceUIDirectionLTR[] = "ltr"; 13 // Force the text rendering to a specific direction. Valid values are "ltr"
14 const char kForceUIDirectionRTL[] = "rtl"; 14 // (left-to-right) and "rtl" (right-to-left). Only tested meaningfully with
15 // RTL.
16 const char kForceTextDirection[] = "force-text-direction";
17
18 const char kForceDirectionLTR[] = "ltr";
msw 2017/05/01 20:56:18 optional nit: shrink the spacing before '=' here a
Kevin Bailey 2017/05/01 21:21:42 Done. Agreed, looks better.
19 const char kForceDirectionRTL[] = "rtl";
15 20
16 } // namespace switches 21 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698