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 17 matching lines...) Expand all Loading... |
28 | 28 |
29 #include "core/fetch/ResourceClient.h" | 29 #include "core/fetch/ResourceClient.h" |
30 #include "core/fetch/ResourcePtr.h" | 30 #include "core/fetch/ResourcePtr.h" |
31 #include "platform/Timer.h" | 31 #include "platform/Timer.h" |
32 #include "platform/fonts/FontOrientation.h" | 32 #include "platform/fonts/FontOrientation.h" |
33 #include "platform/fonts/FontWidthVariant.h" | 33 #include "platform/fonts/FontWidthVariant.h" |
34 #include "wtf/OwnPtr.h" | 34 #include "wtf/OwnPtr.h" |
35 | 35 |
36 namespace blink { | 36 namespace blink { |
37 | 37 |
38 class Document; | |
39 class ResourceFetcher; | 38 class ResourceFetcher; |
40 class FontPlatformData; | 39 class FontPlatformData; |
41 class FontCustomPlatformData; | 40 class FontCustomPlatformData; |
42 | 41 |
43 class FontResource final : public Resource { | 42 class FontResource final : public Resource { |
44 public: | 43 public: |
45 typedef ResourceClient ClientType; | 44 typedef ResourceClient ClientType; |
46 | 45 |
47 FontResource(const ResourceRequest&); | 46 FontResource(const ResourceRequest&); |
48 virtual ~FontResource(); | 47 virtual ~FontResource(); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 static ResourceClientType expectedType() { return FontType; } | 91 static ResourceClientType expectedType() { return FontType; } |
93 virtual ResourceClientType resourceClientType() const override final { retur
n expectedType(); } | 92 virtual ResourceClientType resourceClientType() const override final { retur
n expectedType(); } |
94 virtual void fontLoaded(FontResource*) { } | 93 virtual void fontLoaded(FontResource*) { } |
95 virtual void didStartFontLoad(FontResource*) { } | 94 virtual void didStartFontLoad(FontResource*) { } |
96 virtual void fontLoadWaitLimitExceeded(FontResource*) { } | 95 virtual void fontLoadWaitLimitExceeded(FontResource*) { } |
97 }; | 96 }; |
98 | 97 |
99 } | 98 } |
100 | 99 |
101 #endif | 100 #endif |
OLD | NEW |