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

Side by Side Diff: third_party/WebKit/Source/platform/fonts/FontCache.h

Issue 1682103004: Add FontCache::acceptLanguagesChanged() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tkent review Created 4 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/fonts/android/FontCacheAndroid.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2008 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006, 2008 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) 2007-2008 Torch Mobile, Inc. 3 * Copyright (C) 2007-2008 Torch Mobile, Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 static const AtomicString& menuFontFamily() { return *s_smallCaptionFontFami lyName; } 126 static const AtomicString& menuFontFamily() { return *s_smallCaptionFontFami lyName; }
127 static int32_t smallCaptionFontHeight() { return s_smallCaptionFontHeight; } 127 static int32_t smallCaptionFontHeight() { return s_smallCaptionFontHeight; }
128 static const AtomicString& smallCaptionFontFamily() { return *s_smallCaption FontFamilyName; } 128 static const AtomicString& smallCaptionFontFamily() { return *s_smallCaption FontFamilyName; }
129 static int32_t statusFontHeight() { return s_statusFontHeight; } 129 static int32_t statusFontHeight() { return s_statusFontHeight; }
130 static const AtomicString& statusFontFamily() { return *s_statusFontFamilyNa me; } 130 static const AtomicString& statusFontFamily() { return *s_statusFontFamilyNa me; }
131 #endif 131 #endif
132 132
133 typedef uint32_t FontFileKey; 133 typedef uint32_t FontFileKey;
134 PassRefPtr<OpenTypeVerticalData> getVerticalData(const FontFileKey&, const F ontPlatformData&); 134 PassRefPtr<OpenTypeVerticalData> getVerticalData(const FontFileKey&, const F ontPlatformData&);
135 135
136 static void acceptLanguagesChanged(const String&);
137
136 #if OS(ANDROID) 138 #if OS(ANDROID)
137 static AtomicString getGenericFamilyNameForScript(const AtomicString& family Name, const FontDescription&); 139 static AtomicString getGenericFamilyNameForScript(const AtomicString& family Name, const FontDescription&);
138 #else 140 #else
139 struct PlatformFallbackFont { 141 struct PlatformFallbackFont {
140 String name; 142 String name;
141 CString filename; 143 CString filename;
142 int fontconfigInterfaceId; 144 int fontconfigInterfaceId;
143 int ttcIndex; 145 int ttcIndex;
144 bool isBold; 146 bool isBold;
145 bool isItalic; 147 bool isItalic;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 USING_FAST_MALLOC(FontCachePurgePreventer); 213 USING_FAST_MALLOC(FontCachePurgePreventer);
212 WTF_MAKE_NONCOPYABLE(FontCachePurgePreventer); 214 WTF_MAKE_NONCOPYABLE(FontCachePurgePreventer);
213 public: 215 public:
214 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } 216 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); }
215 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } 217 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); }
216 }; 218 };
217 219
218 } // namespace blink 220 } // namespace blink
219 221
220 #endif 222 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/fonts/android/FontCacheAndroid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698