OLD | NEW |
1 {% filter format_blink_cpp_source_code %} | 1 {% filter format_blink_cpp_source_code %} |
2 | 2 |
3 {% include 'copyright_block.txt' %} | 3 {% include 'copyright_block.txt' %} |
4 #ifndef {{v8_class}}_h | 4 #ifndef {{v8_class}}_h |
5 #define {{v8_class}}_h | 5 #define {{v8_class}}_h |
6 | 6 |
7 {% for filename in header_includes %} | 7 {% for filename in header_includes %} |
8 #include "{{filename}}" | 8 #include "{{filename}}" |
9 {% endfor %} | 9 {% endfor %} |
10 | 10 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 { | 69 { |
70 visitor->trace(scriptWrappable->toImpl<{{cpp_class}}>()); | 70 visitor->trace(scriptWrappable->toImpl<{{cpp_class}}>()); |
71 } | 71 } |
72 static void traceWrappers(WrapperVisitor* visitor, ScriptWrappable* scriptWr
appable) | 72 static void traceWrappers(WrapperVisitor* visitor, ScriptWrappable* scriptWr
appable) |
73 { | 73 { |
74 visitor->traceWrappers(scriptWrappable->toImpl<{{cpp_class}}>()); | 74 visitor->traceWrappers(scriptWrappable->toImpl<{{cpp_class}}>()); |
75 } | 75 } |
76 {% if has_visit_dom_wrapper %} | 76 {% if has_visit_dom_wrapper %} |
77 static void visitDOMWrapper(v8::Isolate*, ScriptWrappable*, const v8::Persis
tent<v8::Object>&); | 77 static void visitDOMWrapper(v8::Isolate*, ScriptWrappable*, const v8::Persis
tent<v8::Object>&); |
78 {% endif %} | 78 {% endif %} |
79 {% if active_scriptwrappable %} | |
80 static ActiveScriptWrappable* toActiveScriptWrappable(v8::Local<v8::Object>)
; | |
81 {% endif %} | |
82 {% for method in methods %} | 79 {% for method in methods %} |
83 {% if method.is_custom %} | 80 {% if method.is_custom %} |
84 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::V
alue>&); | 81 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::V
alue>&); |
85 {% endif %} | 82 {% endif %} |
86 {% if method.is_custom_call_prologue %} | 83 {% if method.is_custom_call_prologue %} |
87 static void {{method.name}}MethodPrologueCustom(const v8::FunctionCallbackIn
fo<v8::Value>&, {{cpp_class}}*); | 84 static void {{method.name}}MethodPrologueCustom(const v8::FunctionCallbackIn
fo<v8::Value>&, {{cpp_class}}*); |
88 {% endif %} | 85 {% endif %} |
89 {% if method.is_custom_call_epilogue %} | 86 {% if method.is_custom_call_epilogue %} |
90 static void {{method.name}}MethodEpilogueCustom(const v8::FunctionCallbackIn
fo<v8::Value>&, {{cpp_class}}*); | 87 static void {{method.name}}MethodEpilogueCustom(const v8::FunctionCallbackIn
fo<v8::Value>&, {{cpp_class}}*); |
91 {% endif %} | 88 {% endif %} |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 template <> | 187 template <> |
191 struct V8TypeOf<{{cpp_class}}> { | 188 struct V8TypeOf<{{cpp_class}}> { |
192 typedef {{v8_class}} Type; | 189 typedef {{v8_class}} Type; |
193 }; | 190 }; |
194 | 191 |
195 } // namespace blink | 192 } // namespace blink |
196 | 193 |
197 #endif // {{v8_class}}_h | 194 #endif // {{v8_class}}_h |
198 | 195 |
199 {% endfilter %}{# format_blink_cpp_source_code #} | 196 {% endfilter %}{# format_blink_cpp_source_code #} |
OLD | NEW |