| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 typedef RefCountedSupplement<Document, FontFaceSet> SupplementType; | 68 typedef RefCountedSupplement<Document, FontFaceSet> SupplementType; |
| 69 #endif | 69 #endif |
| 70 public: | 70 public: |
| 71 virtual ~FontFaceSet(); | 71 virtual ~FontFaceSet(); |
| 72 | 72 |
| 73 DEFINE_ATTRIBUTE_EVENT_LISTENER(loading); | 73 DEFINE_ATTRIBUTE_EVENT_LISTENER(loading); |
| 74 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadingdone); | 74 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadingdone); |
| 75 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadingerror); | 75 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadingerror); |
| 76 | 76 |
| 77 bool check(const String& font, const String& text, ExceptionState&); | 77 bool check(const String& font, const String& text, ExceptionState&); |
| 78 ScriptPromise load(const String& font, const String& text); | 78 ScriptPromise load(ScriptState*, const String& font, const String& text); |
| 79 ScriptPromise ready(); | 79 ScriptPromise ready(ScriptState*); |
| 80 | 80 |
| 81 void add(FontFace*, ExceptionState&); | 81 void add(FontFace*, ExceptionState&); |
| 82 void clear(); | 82 void clear(); |
| 83 bool remove(FontFace*, ExceptionState&); | 83 bool remove(FontFace*, ExceptionState&); |
| 84 void forEach(PassOwnPtr<FontFaceSetForEachCallback>, ScriptValue& thisArg) c
onst; | 84 void forEach(PassOwnPtr<FontFaceSetForEachCallback>, ScriptValue& thisArg) c
onst; |
| 85 void forEach(PassOwnPtr<FontFaceSetForEachCallback>) const; | 85 void forEach(PassOwnPtr<FontFaceSetForEachCallback>) const; |
| 86 bool has(FontFace*, ExceptionState&) const; | 86 bool has(FontFace*, ExceptionState&) const; |
| 87 | 87 |
| 88 unsigned long size() const; | 88 unsigned long size() const; |
| 89 AtomicString status() const; | 89 AtomicString status() const; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 ListHashSet<RefPtrWillBeMember<FontFace> > m_nonCSSConnectedFaces; | 157 ListHashSet<RefPtrWillBeMember<FontFace> > m_nonCSSConnectedFaces; |
| 158 | 158 |
| 159 AsyncMethodRunner<FontFaceSet> m_asyncRunner; | 159 AsyncMethodRunner<FontFaceSet> m_asyncRunner; |
| 160 | 160 |
| 161 FontLoadHistogram m_histogram; | 161 FontLoadHistogram m_histogram; |
| 162 }; | 162 }; |
| 163 | 163 |
| 164 } // namespace WebCore | 164 } // namespace WebCore |
| 165 | 165 |
| 166 #endif // FontFaceSet_h | 166 #endif // FontFaceSet_h |
| OLD | NEW |