OLD | NEW |
1 {% from "macros.tmpl" import license %} | 1 {% from "macros.tmpl" import license %} |
2 {{ license() }} | 2 {{ license() }} |
3 | 3 |
4 #ifndef {{namespace}}ElementFactory_h | 4 #ifndef {{namespace}}ElementFactory_h |
5 #define {{namespace}}ElementFactory_h | 5 #define {{namespace}}ElementFactory_h |
6 | 6 |
7 #include "core/dom/Document.h" | 7 #include "core/dom/Document.h" |
8 #include "platform/heap/Handle.h" | 8 #include "platform/heap/Handle.h" |
9 #include "wtf/Forward.h" | 9 #include "platform/wtf/Forward.h" |
10 #include "wtf/PassRefPtr.h" | 10 #include "platform/wtf/PassRefPtr.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class Document; | 14 class Document; |
15 class {{namespace}}Element; | 15 class {{namespace}}Element; |
16 {% if namespace == 'HTML' %} | 16 {% if namespace == 'HTML' %} |
17 class HTMLFormElement; | 17 class HTMLFormElement; |
18 {% endif %} | 18 {% endif %} |
19 | 19 |
20 class {{namespace}}ElementFactory { | 20 class {{namespace}}ElementFactory { |
21 public: | 21 public: |
22 static {{namespace}}Element* create{{namespace}}Element( | 22 static {{namespace}}Element* create{{namespace}}Element( |
23 const AtomicString& localName, | 23 const AtomicString& localName, |
24 Document&, | 24 Document&, |
25 CreateElementFlags flags = kCreatedByParser); | 25 CreateElementFlags flags = kCreatedByParser); |
26 }; | 26 }; |
27 | 27 |
28 } // namespace blink | 28 } // namespace blink |
29 | 29 |
30 #endif | 30 #endif |
OLD | NEW |