OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 are met: | 5 * modification, are permitted provided that the following conditions are met: |
6 * | 6 * |
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 #if ENABLE(OILPAN) | 60 #if ENABLE(OILPAN) |
61 class FontFaceSet FINAL : public GarbageCollectedFinalized<FontFaceSet>, public
HeapSupplement<Document>, public ActiveDOMObject, public EventTargetWithInlineDa
ta { | 61 class FontFaceSet FINAL : public GarbageCollectedFinalized<FontFaceSet>, public
HeapSupplement<Document>, public ActiveDOMObject, public EventTargetWithInlineDa
ta { |
62 USING_GARBAGE_COLLECTED_MIXIN(FontFaceSet); | 62 USING_GARBAGE_COLLECTED_MIXIN(FontFaceSet); |
63 typedef HeapSupplement<Document> SupplementType; | 63 typedef HeapSupplement<Document> SupplementType; |
64 #else | 64 #else |
65 class FontFaceSet FINAL : public RefCountedSupplement<Document, FontFaceSet>, pu
blic ActiveDOMObject, public EventTargetWithInlineData { | 65 class FontFaceSet FINAL : public RefCountedSupplement<Document, FontFaceSet>, pu
blic ActiveDOMObject, public EventTargetWithInlineData { |
66 DEFINE_EVENT_TARGET_REFCOUNTING(RefCounted<FontFaceSet>); | 66 DEFINE_EVENT_TARGET_REFCOUNTING(RefCounted<FontFaceSet>); |
67 typedef RefCountedSupplement<Document, FontFaceSet> SupplementType; | 67 typedef RefCountedSupplement<Document, FontFaceSet> SupplementType; |
68 #endif | 68 #endif |
| 69 DEFINE_WRAPPERTYPEINFO(); |
69 public: | 70 public: |
70 virtual ~FontFaceSet(); | 71 virtual ~FontFaceSet(); |
71 | 72 |
72 DEFINE_ATTRIBUTE_EVENT_LISTENER(loading); | 73 DEFINE_ATTRIBUTE_EVENT_LISTENER(loading); |
73 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadingdone); | 74 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadingdone); |
74 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadingerror); | 75 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadingerror); |
75 | 76 |
76 bool check(const String& font, const String& text, ExceptionState&); | 77 bool check(const String& font, const String& text, ExceptionState&); |
77 ScriptPromise load(ScriptState*, const String& font, const String& text); | 78 ScriptPromise load(ScriptState*, const String& font, const String& text); |
78 ScriptPromise ready(ScriptState*); | 79 ScriptPromise ready(ScriptState*); |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 WillBeHeapListHashSet<RefPtrWillBeMember<FontFace> > m_nonCSSConnectedFaces; | 156 WillBeHeapListHashSet<RefPtrWillBeMember<FontFace> > m_nonCSSConnectedFaces; |
156 | 157 |
157 AsyncMethodRunner<FontFaceSet> m_asyncRunner; | 158 AsyncMethodRunner<FontFaceSet> m_asyncRunner; |
158 | 159 |
159 FontLoadHistogram m_histogram; | 160 FontLoadHistogram m_histogram; |
160 }; | 161 }; |
161 | 162 |
162 } // namespace blink | 163 } // namespace blink |
163 | 164 |
164 #endif // FontFaceSet_h | 165 #endif // FontFaceSet_h |
OLD | NEW |