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 "wtf/Forward.h" | 7 #include "wtf/Forward.h" |
8 #include "wtf/PassRefPtr.h" | 8 #include "wtf/PassRefPtr.h" |
9 | 9 |
10 namespace WebCore { | 10 namespace WebCore { |
11 | 11 |
12 class Document; | 12 class Document; |
13 class {{namespace}}Element; | 13 class {{namespace}}Element; |
14 | 14 {% if namespace == 'HTML' %} |
15 {%- if namespace == 'HTML' %} | |
16 class HTMLFormElement; | 15 class HTMLFormElement; |
17 {%- endif %} | 16 {% endif %} |
18 | 17 |
19 class {{namespace}}ElementFactory { | 18 class {{namespace}}ElementFactory { |
20 public: | 19 public: |
21 static PassRefPtr<{{namespace}}Element> create{{namespace}}Element(const Ato
micString& localName, | 20 static PassRefPtr<{{namespace}}Element> create{{namespace}}Element(const Ato
micString& localName, |
22 Document&
, | 21 Document&
, |
23 {%- if na
mespace == 'HTML' %} | 22 {% if nam
espace == 'HTML' %} |
24 HTMLFormE
lement* = 0, | 23 HTMLFormE
lement* = 0, |
25 {%- endif
%} | 24 {% endif
%} |
26 bool crea
tedByParser = true); | 25 bool crea
tedByParser = true); |
27 }; | 26 }; |
28 | 27 |
29 } // WebCore | 28 } // WebCore |
30 | 29 |
31 #endif | 30 #endif |
OLD | NEW |