| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 public: | 72 public: |
| 73 ~FontFaceSet() override; | 73 ~FontFaceSet() override; |
| 74 | 74 |
| 75 DEFINE_ATTRIBUTE_EVENT_LISTENER(loading); | 75 DEFINE_ATTRIBUTE_EVENT_LISTENER(loading); |
| 76 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadingdone); | 76 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadingdone); |
| 77 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadingerror); | 77 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadingerror); |
| 78 | 78 |
| 79 bool check(const String& font, const String& text, ExceptionState&); | 79 bool check(const String& font, const String& text, ExceptionState&); |
| 80 ScriptPromise load(ScriptState*, const String& font, const String& text); | 80 ScriptPromise load(ScriptState*, const String& font, const String& text); |
| 81 ScriptPromise ready(ScriptState*); | 81 ScriptPromise ready(ScriptState*); |
| 82 static ScriptPromise systemFonts(ScriptState*); |
| 82 | 83 |
| 83 PassRefPtrWillBeRawPtr<FontFaceSet> addForBinding(ScriptState*, FontFace*, E
xceptionState&); | 84 PassRefPtrWillBeRawPtr<FontFaceSet> addForBinding(ScriptState*, FontFace*, E
xceptionState&); |
| 84 void clearForBinding(ScriptState*, ExceptionState&); | 85 void clearForBinding(ScriptState*, ExceptionState&); |
| 85 bool deleteForBinding(ScriptState*, FontFace*, ExceptionState&); | 86 bool deleteForBinding(ScriptState*, FontFace*, ExceptionState&); |
| 86 bool hasForBinding(ScriptState*, FontFace*, ExceptionState&) const; | 87 bool hasForBinding(ScriptState*, FontFace*, ExceptionState&) const; |
| 87 | 88 |
| 88 size_t size() const; | 89 size_t size() const; |
| 89 AtomicString status() const; | 90 AtomicString status() const; |
| 90 | 91 |
| 91 ExecutionContext* executionContext() const override; | 92 ExecutionContext* executionContext() const override; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 WillBeHeapListHashSet<RefPtrWillBeMember<FontFace>> m_nonCSSConnectedFaces; | 177 WillBeHeapListHashSet<RefPtrWillBeMember<FontFace>> m_nonCSSConnectedFaces; |
| 177 | 178 |
| 178 AsyncMethodRunner<FontFaceSet> m_asyncRunner; | 179 AsyncMethodRunner<FontFaceSet> m_asyncRunner; |
| 179 | 180 |
| 180 FontLoadHistogram m_histogram; | 181 FontLoadHistogram m_histogram; |
| 181 }; | 182 }; |
| 182 | 183 |
| 183 } // namespace blink | 184 } // namespace blink |
| 184 | 185 |
| 185 #endif // FontFaceSet_h | 186 #endif // FontFaceSet_h |
| OLD | NEW |