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 10 matching lines...) Expand all Loading... |
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef FontResource_h | 26 #ifndef FontResource_h |
27 #define FontResource_h | 27 #define FontResource_h |
28 | 28 |
29 #include "core/fetch/Resource.h" | 29 #include "core/fetch/Resource.h" |
30 #include "core/fetch/ResourceClient.h" | 30 #include "core/fetch/ResourceClient.h" |
31 #include "core/platform/graphics/FontOrientation.h" | 31 #include "platform/fonts/FontOrientation.h" |
32 #include "core/platform/graphics/FontWidthVariant.h" | 32 #include "platform/fonts/FontWidthVariant.h" |
33 #include "wtf/OwnPtr.h" | 33 #include "wtf/OwnPtr.h" |
34 | 34 |
35 namespace WebCore { | 35 namespace WebCore { |
36 | 36 |
37 class ResourceFetcher; | 37 class ResourceFetcher; |
38 class FontPlatformData; | 38 class FontPlatformData; |
39 class SVGDocument; | 39 class SVGDocument; |
40 class SVGFontElement; | 40 class SVGFontElement; |
41 class FontCustomPlatformData; | 41 class FontCustomPlatformData; |
42 | 42 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 virtual ~FontResourceClient() { } | 95 virtual ~FontResourceClient() { } |
96 static ResourceClientType expectedType() { return FontType; } | 96 static ResourceClientType expectedType() { return FontType; } |
97 virtual ResourceClientType resourceClientType() const { return expectedType(
); } | 97 virtual ResourceClientType resourceClientType() const { return expectedType(
); } |
98 virtual void fontLoaded(FontResource*) { } | 98 virtual void fontLoaded(FontResource*) { } |
99 virtual void didStartFontLoad(FontResource*) { } | 99 virtual void didStartFontLoad(FontResource*) { } |
100 }; | 100 }; |
101 | 101 |
102 } | 102 } |
103 | 103 |
104 #endif | 104 #endif |
OLD | NEW |