Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 29 #include "wtf/Forward.h" | 29 #include "wtf/Forward.h" |
| 30 #include "wtf/PassRefPtr.h" | 30 #include "wtf/PassRefPtr.h" |
| 31 #include "wtf/RefCounted.h" | 31 #include "wtf/RefCounted.h" |
| 32 | 32 |
| 33 namespace WebCore { | 33 namespace WebCore { |
| 34 | 34 |
| 35 class FontData; | 35 class FontData; |
| 36 class FontDescription; | 36 class FontDescription; |
| 37 class FontSelectorClient; | 37 class FontSelectorClient; |
| 38 | 38 |
| 39 class FontSelector : public RefCounted<FontSelector> { | 39 class PLATFORM_EXPORT FontSelector : public RefCounted<FontSelector> { |
|
abarth-chromium
2013/10/29 05:26:35
Again, this class is entirely inline. If you need
rwlbuis
2013/10/29 18:38:00
I'll try without the export first.
| |
| 40 public: | 40 public: |
| 41 virtual ~FontSelector() { } | 41 virtual ~FontSelector() { } |
| 42 virtual PassRefPtr<FontData> getFontData(const FontDescription&, const Atomi cString& familyName) = 0; | 42 virtual PassRefPtr<FontData> getFontData(const FontDescription&, const Atomi cString& familyName) = 0; |
| 43 virtual void willUseFontData(const FontDescription&, const AtomicString& fam ilyName) = 0; | 43 virtual void willUseFontData(const FontDescription&, const AtomicString& fam ilyName) = 0; |
| 44 | 44 |
| 45 virtual void fontCacheInvalidated() { } | 45 virtual void fontCacheInvalidated() { } |
| 46 | 46 |
| 47 virtual void registerForInvalidationCallbacks(FontSelectorClient*) = 0; | 47 virtual void registerForInvalidationCallbacks(FontSelectorClient*) = 0; |
| 48 virtual void unregisterForInvalidationCallbacks(FontSelectorClient*) = 0; | 48 virtual void unregisterForInvalidationCallbacks(FontSelectorClient*) = 0; |
| 49 | 49 |
| 50 virtual unsigned version() const = 0; | 50 virtual unsigned version() const = 0; |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 class FontSelectorClient { | 53 class PLATFORM_EXPORT FontSelectorClient { |
|
abarth-chromium
2013/10/29 05:26:35
ditto
rwlbuis
2013/10/29 18:38:00
ditto :)
| |
| 54 public: | 54 public: |
| 55 virtual ~FontSelectorClient() { } | 55 virtual ~FontSelectorClient() { } |
| 56 | 56 |
| 57 virtual void fontsNeedUpdate(FontSelector*) = 0; | 57 virtual void fontsNeedUpdate(FontSelector*) = 0; |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 } // namespace WebCore | 60 } // namespace WebCore |
| 61 | 61 |
| 62 #endif // FontSelector_h | 62 #endif // FontSelector_h |
| OLD | NEW |