| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 class CSSFontFaceSource; | 48 class CSSFontFaceSource; |
| 49 class Dictionary; | 49 class Dictionary; |
| 50 class Document; | 50 class Document; |
| 51 class ExceptionState; | 51 class ExceptionState; |
| 52 class Font; | 52 class Font; |
| 53 class FontResource; | 53 class FontResource; |
| 54 class FontsReadyPromiseResolver; | 54 class FontsReadyPromiseResolver; |
| 55 class ExecutionContext; | 55 class ExecutionContext; |
| 56 | 56 |
| 57 class FontFaceSet : public RefCountedSupplement<Document, FontFaceSet>, public A
ctiveDOMObject, public EventTargetWithInlineData { | 57 class FontFaceSet FINAL : public RefCountedSupplement<Document, FontFaceSet>, pu
blic ActiveDOMObject, public EventTargetWithInlineData { |
| 58 REFCOUNTED_EVENT_TARGET(FontFaceSet); | 58 REFCOUNTED_EVENT_TARGET(FontFaceSet); |
| 59 public: | 59 public: |
| 60 virtual ~FontFaceSet(); | 60 virtual ~FontFaceSet(); |
| 61 | 61 |
| 62 DEFINE_ATTRIBUTE_EVENT_LISTENER(loading); | 62 DEFINE_ATTRIBUTE_EVENT_LISTENER(loading); |
| 63 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadingdone); | 63 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadingdone); |
| 64 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadingerror); | 64 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadingerror); |
| 65 | 65 |
| 66 Vector<RefPtr<FontFace> > match(const String& font, const String& text, Exce
ptionState&); | 66 Vector<RefPtr<FontFace> > match(const String& font, const String& text, Exce
ptionState&); |
| 67 bool check(const String& font, const String& text, ExceptionState&); | 67 bool check(const String& font, const String& text, ExceptionState&); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 FontFaceArray m_failedFonts; | 125 FontFaceArray m_failedFonts; |
| 126 | 126 |
| 127 AsyncMethodRunner<FontFaceSet> m_asyncRunner; | 127 AsyncMethodRunner<FontFaceSet> m_asyncRunner; |
| 128 | 128 |
| 129 FontLoadHistogram m_histogram; | 129 FontLoadHistogram m_histogram; |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 } // namespace WebCore | 132 } // namespace WebCore |
| 133 | 133 |
| 134 #endif // FontFaceSet_h | 134 #endif // FontFaceSet_h |
| OLD | NEW |