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

Unified Diff: Source/platform/fonts/FontSelector.h

Issue 140913011: Trim FontSelector interface a bit. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: Source/platform/fonts/FontSelector.h
diff --git a/Source/platform/fonts/FontSelector.h b/Source/platform/fonts/FontSelector.h
index 1225ffc783c33e2fe1ca3098e4deb6309229db70..91523b23670b6dd9a9548e4476b0f3f7b185beb5 100644
--- a/Source/platform/fonts/FontSelector.h
+++ b/Source/platform/fonts/FontSelector.h
@@ -26,37 +26,24 @@
#ifndef FontSelector_h
#define FontSelector_h
+#include "platform/fonts/FontCacheClient.h"
#include "wtf/Forward.h"
#include "wtf/PassRefPtr.h"
-#include "wtf/RefCounted.h"
namespace WebCore {
class FontData;
class FontDescription;
-class FontSelectorClient;
-class FontSelector : public RefCounted<FontSelector> {
+class FontSelector : public FontCacheClient {
public:
virtual ~FontSelector() { }
virtual PassRefPtr<FontData> getFontData(const FontDescription&, const AtomicString& familyName) = 0;
virtual void willUseFontData(const FontDescription&, const AtomicString& familyName) = 0;
- virtual void fontCacheInvalidated() { }
-
- virtual void registerForInvalidationCallbacks(FontSelectorClient*) = 0;
- virtual void unregisterForInvalidationCallbacks(FontSelectorClient*) = 0;
-
virtual unsigned version() const = 0;
};
-class FontSelectorClient {
-public:
- virtual ~FontSelectorClient() { }
-
- virtual void fontsNeedUpdate(FontSelector*) = 0;
-};
-
} // namespace WebCore
#endif // FontSelector_h

Powered by Google App Engine
This is Rietveld 408576698