OLD | NEW |
1 {% include 'copyright_block.txt' %} | 1 {% include 'copyright_block.txt' %} |
2 #ifndef {{v8_class}}_h | 2 #ifndef {{v8_class}}_h |
3 #define {{v8_class}}_h | 3 #define {{v8_class}}_h |
4 | 4 |
5 {% filter conditional(conditional_string) %} | 5 {% filter conditional(conditional_string) %} |
6 {% for filename in header_includes %} | 6 {% for filename in header_includes %} |
7 #include "{{filename}}" | 7 #include "{{filename}}" |
8 {% endfor %} | 8 {% endfor %} |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 {% endif %} | 39 {% endif %} |
40 {{exported}}static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*); | 40 {{exported}}static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*); |
41 {% if is_array_buffer_or_view %} | 41 {% if is_array_buffer_or_view %} |
42 {{exported}}static {{cpp_class}}* toImpl(v8::Local<v8::Object> object); | 42 {{exported}}static {{cpp_class}}* toImpl(v8::Local<v8::Object> object); |
43 {% else %} | 43 {% else %} |
44 static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Valu
e>, v8::Isolate*); | 44 static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Valu
e>, v8::Isolate*); |
45 {{exported}}static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*)
; | 45 {{exported}}static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*)
; |
46 static {{cpp_class}}* toImpl(v8::Local<v8::Object> object) | 46 static {{cpp_class}}* toImpl(v8::Local<v8::Object> object) |
47 { | 47 { |
48 return blink::toScriptWrappable(object)->toImpl<{{cpp_class}}>(); | 48 return toScriptWrappable(object)->toImpl<{{cpp_class}}>(); |
49 } | 49 } |
50 {% endif %} | 50 {% endif %} |
51 {{exported}}static {{cpp_class}}* toImplWithTypeCheck(v8::Isolate*, v8::Loca
l<v8::Value>); | 51 {{exported}}static {{cpp_class}}* toImplWithTypeCheck(v8::Isolate*, v8::Loca
l<v8::Value>); |
52 {% if has_partial_interface %} | 52 {% if has_partial_interface %} |
53 {{exported}}static WrapperTypeInfo wrapperTypeInfo; | 53 {{exported}}static WrapperTypeInfo wrapperTypeInfo; |
54 {% else %} | 54 {% else %} |
55 {{exported}}static const WrapperTypeInfo wrapperTypeInfo; | 55 {{exported}}static const WrapperTypeInfo wrapperTypeInfo; |
56 {% endif %} | 56 {% endif %} |
57 static void refObject(ScriptWrappable*); | 57 static void refObject(ScriptWrappable*); |
58 static void derefObject(ScriptWrappable*); | 58 static void derefObject(ScriptWrappable*); |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 {% endif %} | 181 {% endif %} |
182 template <> | 182 template <> |
183 struct V8TypeOf<{{cpp_class}}> { | 183 struct V8TypeOf<{{cpp_class}}> { |
184 typedef {{v8_class}} Type; | 184 typedef {{v8_class}} Type; |
185 }; | 185 }; |
186 | 186 |
187 } // namespace blink | 187 } // namespace blink |
188 {% endfilter %} | 188 {% endfilter %} |
189 | 189 |
190 #endif // {{v8_class}}_h | 190 #endif // {{v8_class}}_h |
OLD | NEW |