OLD | NEW |
1 {% from "macros.tmpl" import license -%} | 1 {% from "macros.tmpl" import license -%} |
2 {{ license() }} | 2 {{ license() }} |
3 | 3 |
4 #ifndef V8{{namespace}}ElementWrapperFactory_h | 4 #ifndef V8{{namespace}}ElementWrapperFactory_h |
5 #define V8{{namespace}}ElementWrapperFactory_h | 5 #define V8{{namespace}}ElementWrapperFactory_h |
6 | 6 |
7 #include "V8{{namespace}}Element.h" | 7 #include "V8{{namespace}}Element.h" |
8 {%- if fallback_interface %} | 8 #include "V8{{fallback_js_interface}}.h" |
9 #include "V8{{fallback_interface}}.h" | |
10 {%- endif %} | |
11 #include <v8.h> | 9 #include <v8.h> |
12 | 10 |
13 namespace WebCore { | 11 namespace WebCore { |
14 | 12 |
15 class {{namespace}}Element; | 13 class {{namespace}}Element; |
16 | 14 |
17 WrapperTypeInfo* findWrapperTypeFor{{namespace}}TagName(const AtomicString& name
); | 15 WrapperTypeInfo* findWrapperTypeFor{{namespace}}TagName(const AtomicString& name
); |
18 | 16 |
19 v8::Handle<v8::Object> createV8{{namespace}}Wrapper({{namespace}}Element*, v8::H
andle<v8::Object> creationContext, v8::Isolate*); | 17 v8::Handle<v8::Object> createV8{{namespace}}Wrapper({{namespace}}Element*, v8::H
andle<v8::Object> creationContext, v8::Isolate*); |
20 inline v8::Handle<v8::Object> createV8{{namespace}}DirectWrapper({{namespace}}El
ement* element, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 18 inline v8::Handle<v8::Object> createV8{{namespace}}DirectWrapper({{namespace}}El
ement* element, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
21 { | 19 { |
22 return V8{{namespace}}Element::createWrapper(element, creationContext, isola
te); | 20 return V8{{namespace}}Element::createWrapper(element, creationContext, isola
te); |
23 } | 21 } |
24 {%- if fallback_interface %} | 22 inline v8::Handle<v8::Object> createV8{{namespace}}FallbackWrapper({{fallback_js
_interface}}* element, v8::Handle<v8::Object> creationContext, v8::Isolate* isol
ate) |
25 inline v8::Handle<v8::Object> createV8{{namespace}}FallbackWrapper({{fallback_in
terface}}* element, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate
) | |
26 { | 23 { |
27 return V8{{fallback_interface}}::createWrapper(element, creationContext, iso
late); | 24 return V8{{fallback_js_interface}}::createWrapper(element, creationContext,
isolate); |
28 } | 25 } |
29 {%- endif %} | |
30 | 26 |
31 } | 27 } |
32 | 28 |
33 #endif | 29 #endif |
OLD | NEW |