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 25 matching lines...) Expand all Loading... |
36 #include "core/dom/DOMError.h" | 36 #include "core/dom/DOMError.h" |
37 #include "core/events/Event.h" | 37 #include "core/events/Event.h" |
38 #include "wtf/PassRefPtr.h" | 38 #include "wtf/PassRefPtr.h" |
39 #include "wtf/RefPtr.h" | 39 #include "wtf/RefPtr.h" |
40 | 40 |
41 namespace blink { | 41 namespace blink { |
42 | 42 |
43 class FontFaceSetLoadEvent final : public Event { | 43 class FontFaceSetLoadEvent final : public Event { |
44 DEFINE_WRAPPERTYPEINFO(); | 44 DEFINE_WRAPPERTYPEINFO(); |
45 public: | 45 public: |
46 static FontFaceSetLoadEvent* create() | |
47 { | |
48 return new FontFaceSetLoadEvent(); | |
49 } | |
50 | |
51 static FontFaceSetLoadEvent* create(const AtomicString& type, const FontFace
SetLoadEventInit& initializer) | 46 static FontFaceSetLoadEvent* create(const AtomicString& type, const FontFace
SetLoadEventInit& initializer) |
52 { | 47 { |
53 return new FontFaceSetLoadEvent(type, initializer); | 48 return new FontFaceSetLoadEvent(type, initializer); |
54 } | 49 } |
55 | 50 |
56 static FontFaceSetLoadEvent* createForFontFaces(const AtomicString& type, co
nst FontFaceArray& fontfaces = FontFaceArray()) | 51 static FontFaceSetLoadEvent* createForFontFaces(const AtomicString& type, co
nst FontFaceArray& fontfaces = FontFaceArray()) |
57 { | 52 { |
58 return new FontFaceSetLoadEvent(type, fontfaces); | 53 return new FontFaceSetLoadEvent(type, fontfaces); |
59 } | 54 } |
60 | 55 |
61 ~FontFaceSetLoadEvent() override; | 56 ~FontFaceSetLoadEvent() override; |
62 | 57 |
63 FontFaceArray fontfaces() const { return m_fontfaces; } | 58 FontFaceArray fontfaces() const { return m_fontfaces; } |
64 | 59 |
65 const AtomicString& interfaceName() const override; | 60 const AtomicString& interfaceName() const override; |
66 | 61 |
67 DECLARE_VIRTUAL_TRACE(); | 62 DECLARE_VIRTUAL_TRACE(); |
68 | 63 |
69 private: | 64 private: |
70 FontFaceSetLoadEvent(); | |
71 FontFaceSetLoadEvent(const AtomicString&, const FontFaceArray&); | 65 FontFaceSetLoadEvent(const AtomicString&, const FontFaceArray&); |
72 FontFaceSetLoadEvent(const AtomicString&, const FontFaceSetLoadEventInit&); | 66 FontFaceSetLoadEvent(const AtomicString&, const FontFaceSetLoadEventInit&); |
73 | 67 |
74 FontFaceArray m_fontfaces; | 68 FontFaceArray m_fontfaces; |
75 }; | 69 }; |
76 | 70 |
77 } // namespace blink | 71 } // namespace blink |
78 | 72 |
79 #endif // FontFaceSetLoadEvent_h | 73 #endif // FontFaceSetLoadEvent_h |
OLD | NEW |