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

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

Issue 2137483004: Enable "system-ui" generic font family (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: drott nit Created 4 years, 2 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
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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 ShapeCache* getShapeCache(const FallbackListCompositeKey&); 108 ShapeCache* getShapeCache(const FallbackListCompositeKey&);
109 109
110 void addClient(FontCacheClient*); 110 void addClient(FontCacheClient*);
111 111
112 unsigned short generation(); 112 unsigned short generation();
113 void invalidate(); 113 void invalidate();
114 114
115 SkFontMgr* fontManager() { return m_fontManager.get(); } 115 SkFontMgr* fontManager() { return m_fontManager.get(); }
116 static void setFontManager(const sk_sp<SkFontMgr>&); 116 static void setFontManager(const sk_sp<SkFontMgr>&);
117 117
118 #if !OS(MACOSX)
119 static const AtomicString& systemFontFamily();
120 #else
121 static const AtomicString& legacySystemFontFamily();
122 #endif
123 #if OS(LINUX)
124 static void setSystemFontFamily(const char*);
125 #endif
126
118 #if OS(WIN) 127 #if OS(WIN)
119 static bool antialiasedTextEnabled() { return s_antialiasedTextEnabled; } 128 static bool antialiasedTextEnabled() { return s_antialiasedTextEnabled; }
120 static bool lcdTextEnabled() { return s_lcdTextEnabled; } 129 static bool lcdTextEnabled() { return s_lcdTextEnabled; }
121 static float deviceScaleFactor() { return s_deviceScaleFactor; } 130 static float deviceScaleFactor() { return s_deviceScaleFactor; }
122 static void setAntialiasedTextEnabled(bool enabled) { 131 static void setAntialiasedTextEnabled(bool enabled) {
123 s_antialiasedTextEnabled = enabled; 132 s_antialiasedTextEnabled = enabled;
124 } 133 }
125 static void setLCDTextEnabled(bool enabled) { s_lcdTextEnabled = enabled; } 134 static void setLCDTextEnabled(bool enabled) { s_lcdTextEnabled = enabled; }
126 static void setDeviceScaleFactor(float deviceScaleFactor) { 135 static void setDeviceScaleFactor(float deviceScaleFactor) {
127 s_deviceScaleFactor = deviceScaleFactor; 136 s_deviceScaleFactor = deviceScaleFactor;
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 WTF_MAKE_NONCOPYABLE(FontCachePurgePreventer); 267 WTF_MAKE_NONCOPYABLE(FontCachePurgePreventer);
259 268
260 public: 269 public:
261 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } 270 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); }
262 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } 271 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); }
263 }; 272 };
264 273
265 } // namespace blink 274 } // namespace blink
266 275
267 #endif 276 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698