• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{% from "macros.tmpl" import license %}
2{{ license() }}
3
4#ifndef V8{{namespace}}ElementWrapperFactory_h
5#define V8{{namespace}}ElementWrapperFactory_h
6
7#include "V8{{namespace}}Element.h"
8#include "V8{{fallback_js_interface}}.h"
9#include <v8.h>
10
11namespace WebCore {
12
13class {{namespace}}Element;
14
15const WrapperTypeInfo* findWrapperTypeFor{{namespace}}TagName(const AtomicString& name);
16
17v8::Handle<v8::Object> createV8{{namespace}}Wrapper({{namespace}}Element*, v8::Handle<v8::Object> creationContext, v8::Isolate*);
18inline v8::Handle<v8::Object> createV8{{namespace}}DirectWrapper({{namespace}}Element* element, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
19{
20    return V8{{namespace}}Element::createWrapper(element, creationContext, isolate);
21}
22inline v8::Handle<v8::Object> createV8{{namespace}}FallbackWrapper({{fallback_js_interface}}* element, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
23{
24    return V8{{fallback_js_interface}}::createWrapper(element, creationContext, isolate);
25}
26
27}
28
29#endif
30