summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/FontSelector.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/graphics/FontSelector.h')
-rw-r--r--Source/WebCore/platform/graphics/FontSelector.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/FontSelector.h b/Source/WebCore/platform/graphics/FontSelector.h
index 156bf10..e18161b 100644
--- a/Source/WebCore/platform/graphics/FontSelector.h
+++ b/Source/WebCore/platform/graphics/FontSelector.h
@@ -33,6 +33,7 @@ namespace WebCore {
class FontData;
class FontDescription;
+class FontSelectorClient;
class FontSelector : public RefCounted<FontSelector> {
public:
@@ -40,6 +41,16 @@ public:
virtual FontData* getFontData(const FontDescription&, const AtomicString& familyName) = 0;
virtual void fontCacheInvalidated() { }
+
+ virtual void registerForInvalidationCallbacks(FontSelectorClient*) = 0;
+ virtual void unregisterForInvalidationCallbacks(FontSelectorClient*) = 0;
+};
+
+class FontSelectorClient {
+public:
+ virtual ~FontSelectorClient() { }
+
+ virtual void fontsNeedUpdate(FontSelector*) = 0;
};
} // namespace WebCore