OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef UI_BASE_FONT_HELPER_CHROMEOS_H | 5 #ifndef UI_BASE_FONT_HELPER_CHROMEOS_H |
6 #define UI_BASE_FONT_HELPER_CHROMEOS_H | 6 #define UI_BASE_FONT_HELPER_CHROMEOS_H |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 namespace ui { | 10 namespace ui { |
11 | 11 |
12 // This is a temporary helper function for the Roboto UI font experiment. | 12 // This is a temporary helper function for the Roboto UI font experiment. |
13 // It'll go away once the experiment is over. | 13 // It'll go away once the experiment is over. |
14 // See http://crbug.com/434400 and http://crbug.com/448948 for more details. | 14 // See http://crbug.com/434400 for more details. |
15 // | 15 // |
16 // "Noto Sans UI" was the primary UI font (both native and web) in most | 16 // "Noto Sans UI" is the primary UI font (both native and web) in most |
17 // locales and we're replacing it with 'Roboto'. For now 'Roboto' is enabled by | 17 // locales and we're replacing it with 'Roboto' when 'enable-roboto-font-ui' |
18 // default and can be disabled by setting 'disable-roboto-font-ui' flag to on. | 18 // flag is on. |
19 void ReplaceNotoSansWithRobotoIfEnabled(std::string* font_family); | 19 void ReplaceNotoSansWithRobotoIfEnabled(std::string* font_family); |
20 | 20 |
21 } // namespace ui | 21 } // namespace ui |
22 | 22 |
23 #endif // UI_BASE_FONT_HELPER_CHROMEOS_H | 23 #endif // UI_BASE_FONT_HELPER_CHROMEOS_H |
OLD | NEW |