| 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 | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #ifndef FontFace_h | 31 #ifndef FontFace_h |
| 32 #define FontFace_h | 32 #define FontFace_h |
| 33 | 33 |
| 34 #include "bindings/core/v8/ActiveScriptWrappable.h" | 34 #include "bindings/core/v8/ActiveScriptWrappable.h" |
| 35 #include "bindings/core/v8/ScriptPromise.h" | 35 #include "bindings/core/v8/ScriptPromise.h" |
| 36 #include "bindings/core/v8/ScriptPromiseProperty.h" | 36 #include "bindings/core/v8/ScriptPromiseProperty.h" |
| 37 #include "bindings/core/v8/ScriptWrappable.h" | 37 #include "bindings/core/v8/ScriptWrappable.h" |
| 38 #include "core/CSSPropertyNames.h" | 38 #include "core/CSSPropertyNames.h" |
| 39 #include "core/css/CSSValue.h" | 39 #include "core/css/CSSValue.h" |
| 40 #include "core/dom/ActiveDOMObject.h" | |
| 41 #include "core/dom/DOMException.h" | 40 #include "core/dom/DOMException.h" |
| 41 #include "core/dom/SuspendableObject.h" |
| 42 #include "platform/fonts/FontTraits.h" | 42 #include "platform/fonts/FontTraits.h" |
| 43 #include "wtf/text/WTFString.h" | 43 #include "wtf/text/WTFString.h" |
| 44 | 44 |
| 45 namespace blink { | 45 namespace blink { |
| 46 | 46 |
| 47 class CSSFontFace; | 47 class CSSFontFace; |
| 48 class CSSValue; | 48 class CSSValue; |
| 49 class DOMArrayBuffer; | 49 class DOMArrayBuffer; |
| 50 class DOMArrayBufferView; | 50 class DOMArrayBufferView; |
| 51 class Document; | 51 class Document; |
| 52 class ExceptionState; | 52 class ExceptionState; |
| 53 class FontFaceDescriptors; | 53 class FontFaceDescriptors; |
| 54 class StringOrArrayBufferOrArrayBufferView; | 54 class StringOrArrayBufferOrArrayBufferView; |
| 55 class StylePropertySet; | 55 class StylePropertySet; |
| 56 class StyleRuleFontFace; | 56 class StyleRuleFontFace; |
| 57 | 57 |
| 58 class FontFace : public GarbageCollectedFinalized<FontFace>, | 58 class FontFace : public GarbageCollectedFinalized<FontFace>, |
| 59 public ScriptWrappable, | 59 public ScriptWrappable, |
| 60 public ActiveScriptWrappable, | 60 public ActiveScriptWrappable, |
| 61 public ActiveDOMObject { | 61 public SuspendableObject { |
| 62 DEFINE_WRAPPERTYPEINFO(); | 62 DEFINE_WRAPPERTYPEINFO(); |
| 63 USING_GARBAGE_COLLECTED_MIXIN(FontFace); | 63 USING_GARBAGE_COLLECTED_MIXIN(FontFace); |
| 64 WTF_MAKE_NONCOPYABLE(FontFace); | 64 WTF_MAKE_NONCOPYABLE(FontFace); |
| 65 | 65 |
| 66 public: | 66 public: |
| 67 enum LoadStatusType { Unloaded, Loading, Loaded, Error }; | 67 enum LoadStatusType { Unloaded, Loading, Loaded, Error }; |
| 68 | 68 |
| 69 static FontFace* create(ExecutionContext*, | 69 static FontFace* create(ExecutionContext*, |
| 70 const AtomicString& family, | 70 const AtomicString& family, |
| 71 StringOrArrayBufferOrArrayBufferView&, | 71 StringOrArrayBufferOrArrayBufferView&, |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 Member<LoadedProperty> m_loadedProperty; | 175 Member<LoadedProperty> m_loadedProperty; |
| 176 Member<CSSFontFace> m_cssFontFace; | 176 Member<CSSFontFace> m_cssFontFace; |
| 177 HeapVector<Member<LoadFontCallback>> m_callbacks; | 177 HeapVector<Member<LoadFontCallback>> m_callbacks; |
| 178 }; | 178 }; |
| 179 | 179 |
| 180 using FontFaceArray = HeapVector<Member<FontFace>>; | 180 using FontFaceArray = HeapVector<Member<FontFace>>; |
| 181 | 181 |
| 182 } // namespace blink | 182 } // namespace blink |
| 183 | 183 |
| 184 #endif // FontFace_h | 184 #endif // FontFace_h |
| OLD | NEW |