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

Side by Side Diff: chrome/common/pref_names_util.h

Issue 11336008: When a font family pref changes to the empty string, pass it to WebKit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 8 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/pref_names.cc ('k') | chrome/common/pref_names_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_COMMON_PREF_NAMES_UTIL_H_
6 #define CHROME_COMMON_PREF_NAMES_UTIL_H_
7
8 #include <string>
9
10 namespace pref_names_util {
11
12 // Extracts the generic family and script from font name pref path |pref_path|.
13 // For example, if |pref_path| is "webkit.webprefs.fonts.serif.Hang", returns
14 // true and sets |generic_family| to "serif" and |script| to "Hang".
15 bool ParseFontNamePrefPath(const std::string& pref_path,
16 std::string* generic_family,
17 std::string* script);
18
19 } // namespace pref_names_util
20
21 #endif // CHROME_COMMON_PREF_NAMES_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/common/pref_names.cc ('k') | chrome/common/pref_names_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698