| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 class Font; | 53 class Font; |
| 54 class FontFaceCache; | 54 class FontFaceCache; |
| 55 class FontResource; | 55 class FontResource; |
| 56 class ExecutionContext; | 56 class ExecutionContext; |
| 57 | 57 |
| 58 using FontFaceSetIterable = PairIterable<Member<FontFace>, Member<FontFace>>; | 58 using FontFaceSetIterable = PairIterable<Member<FontFace>, Member<FontFace>>; |
| 59 | 59 |
| 60 class FontFaceSet final : public EventTargetWithInlineData, public Supplement<Do
cument>, public ActiveDOMObject, public FontFaceSetIterable { | 60 class FontFaceSet final : public EventTargetWithInlineData, public Supplement<Do
cument>, public ActiveDOMObject, public FontFaceSetIterable { |
| 61 USING_GARBAGE_COLLECTED_MIXIN(FontFaceSet); | 61 USING_GARBAGE_COLLECTED_MIXIN(FontFaceSet); |
| 62 DEFINE_WRAPPERTYPEINFO(); | 62 DEFINE_WRAPPERTYPEINFO(); |
| 63 WTF_MAKE_NONCOPYABLE(FontFaceSet); |
| 63 public: | 64 public: |
| 64 ~FontFaceSet() override; | 65 ~FontFaceSet() override; |
| 65 | 66 |
| 66 DEFINE_ATTRIBUTE_EVENT_LISTENER(loading); | 67 DEFINE_ATTRIBUTE_EVENT_LISTENER(loading); |
| 67 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadingdone); | 68 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadingdone); |
| 68 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadingerror); | 69 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadingerror); |
| 69 | 70 |
| 70 bool check(const String& font, const String& text, ExceptionState&); | 71 bool check(const String& font, const String& text, ExceptionState&); |
| 71 ScriptPromise load(ScriptState*, const String& font, const String& text); | 72 ScriptPromise load(ScriptState*, const String& font, const String& text); |
| 72 ScriptPromise ready(ScriptState*); | 73 ScriptPromise ready(ScriptState*); |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 HeapListHashSet<Member<FontFace>> m_nonCSSConnectedFaces; | 173 HeapListHashSet<Member<FontFace>> m_nonCSSConnectedFaces; |
| 173 | 174 |
| 174 Member<AsyncMethodRunner<FontFaceSet>> m_asyncRunner; | 175 Member<AsyncMethodRunner<FontFaceSet>> m_asyncRunner; |
| 175 | 176 |
| 176 FontLoadHistogram m_histogram; | 177 FontLoadHistogram m_histogram; |
| 177 }; | 178 }; |
| 178 | 179 |
| 179 } // namespace blink | 180 } // namespace blink |
| 180 | 181 |
| 181 #endif // FontFaceSet_h | 182 #endif // FontFaceSet_h |
| OLD | NEW |