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

Side by Side Diff: chrome/browser/ui/webui/options/font_settings_utils.h

Issue 2441343003: Allow the default generic font family settings to find the first available font (Closed)
Patch Set: Add more tests Created 4 years, 1 month 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_WEBUI_OPTIONS_FONT_SETTINGS_UTILS_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_FONT_SETTINGS_UTILS_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_FONT_SETTINGS_UTILS_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_FONT_SETTINGS_UTILS_H_
7 7
8 #include <string>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 11
10 class PrefService; 12 class PrefService;
11 13
12 namespace options { 14 namespace options {
13 15
14 // Chrome advanced options utility methods. 16 // Chrome advanced options utility methods.
15 class FontSettingsUtilities { 17 class FontSettingsUtilities {
16 public: 18 public:
17 static void ValidateSavedFonts(PrefService* prefs); 19 static void ValidateSavedFonts(PrefService* prefs);
18 20
21 static std::string ResolveFontList(const std::string&);
22 static std::string MaybeGetLocalizedFontName(const std::string&);
23
19 private: 24 private:
20 DISALLOW_IMPLICIT_CONSTRUCTORS(FontSettingsUtilities); 25 DISALLOW_IMPLICIT_CONSTRUCTORS(FontSettingsUtilities);
21 }; 26 };
22 27
23 } // namespace options 28 } // namespace options
24 29
25 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_FONT_SETTINGS_UTILS_H_ 30 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_FONT_SETTINGS_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698