summaryrefslogtreecommitdiffstats
path: root/chrome/common/pref_font_webkit_names.h
diff options
context:
space:
mode:
authorbulach@chromium.org <bulach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-24 07:07:22 +0000
committerbulach@chromium.org <bulach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-24 07:07:22 +0000
commitdefbbe5a15eb06ab0dccf953f115899d493a17cb (patch)
treed468ca727bf43b8ba5fac18f90110dbe627d0757 /chrome/common/pref_font_webkit_names.h
parentd641edb8abd5c7b54aa87ab321ebb19ba1418f35 (diff)
downloadchromium_src-defbbe5a15eb06ab0dccf953f115899d493a17cb.zip
chromium_src-defbbe5a15eb06ab0dccf953f115899d493a17cb.tar.gz
chromium_src-defbbe5a15eb06ab0dccf953f115899d493a17cb.tar.bz2
Auto-generates the font family scripts at build time.
On android, this saves heap allocation and startup runtime cost by moving the strings to RO section mmapped in the library. BUG=196559 Review URL: https://chromiumcodereview.appspot.com/12902021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190229 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/pref_font_webkit_names.h')
-rw-r--r--chrome/common/pref_font_webkit_names.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/chrome/common/pref_font_webkit_names.h b/chrome/common/pref_font_webkit_names.h
new file mode 100644
index 0000000..a982762
--- /dev/null
+++ b/chrome/common/pref_font_webkit_names.h
@@ -0,0 +1,19 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_COMMON_PREF_FONT_WEBKIT_NAMES_H__
+#define CHROME_COMMON_PREF_FONT_WEBKIT_NAMES_H__
+
+// This file defines the font pref names that are used in conjunction with
+// pref_font_script_names-inl.h.
+
+#define WEBKIT_WEBPREFS_FONTS_CURSIVE "webkit.webprefs.fonts.cursive"
+#define WEBKIT_WEBPREFS_FONTS_FANTASY "webkit.webprefs.fonts.fantasy"
+#define WEBKIT_WEBPREFS_FONTS_FIXED "webkit.webprefs.fonts.fixed"
+#define WEBKIT_WEBPREFS_FONTS_PICTOGRAPH "webkit.webprefs.fonts.pictograph"
+#define WEBKIT_WEBPREFS_FONTS_SANSERIF "webkit.webprefs.fonts.sansserif"
+#define WEBKIT_WEBPREFS_FONTS_SERIF "webkit.webprefs.fonts.serif"
+#define WEBKIT_WEBPREFS_FONTS_STANDARD "webkit.webprefs.fonts.standard"
+
+#endif // CHROME_COMMON_PREF_FONT_WEBKIT_NAMES_H__