Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: third_party/WebKit/Source/bindings/templates/interface.h.tmpl

Issue 2671553003: Remove uses of VisitDOMWrapper (Closed)
Patch Set: Add DependentLifetime when removing Custom=VisitDOMWrapper Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 {{exported}}static WrapperTypeInfo wrapperTypeInfo; 46 {{exported}}static WrapperTypeInfo wrapperTypeInfo;
47 {% else %} 47 {% else %}
48 {{exported}}static const WrapperTypeInfo wrapperTypeInfo; 48 {{exported}}static const WrapperTypeInfo wrapperTypeInfo;
49 {% endif %} 49 {% endif %}
50 static void trace(Visitor* visitor, ScriptWrappable* scriptWrappable) { 50 static void trace(Visitor* visitor, ScriptWrappable* scriptWrappable) {
51 visitor->trace(scriptWrappable->toImpl<{{cpp_class}}>()); 51 visitor->trace(scriptWrappable->toImpl<{{cpp_class}}>());
52 } 52 }
53 static void traceWrappers(WrapperVisitor* visitor, ScriptWrappable* scriptWrap pable) { 53 static void traceWrappers(WrapperVisitor* visitor, ScriptWrappable* scriptWrap pable) {
54 visitor->traceWrappers(scriptWrappable->toImpl<{{cpp_class}}>()); 54 visitor->traceWrappers(scriptWrappable->toImpl<{{cpp_class}}>());
55 } 55 }
56 {% if has_visit_dom_wrapper %}
57 static void visitDOMWrapper(v8::Isolate*, ScriptWrappable*, const v8::Persiste nt<v8::Object>&);
58 {% endif %}
59 {% if has_visit_dom_wrapper_custom %}
60 static void visitDOMWrapperCustom(v8::Isolate*, ScriptWrappable*, const v8::Pe rsistent<v8::Object>&);
61 {% endif %}
62 {% for method in methods %} 56 {% for method in methods %}
63 {% if method.is_custom %} 57 {% if method.is_custom %}
64 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::Val ue>&); 58 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::Val ue>&);
65 {% endif %} 59 {% endif %}
66 {% if method.is_custom_call_prologue %} 60 {% if method.is_custom_call_prologue %}
67 static void {{method.name}}MethodPrologueCustom(const v8::FunctionCallbackInfo <v8::Value>&, {{cpp_class}}*); 61 static void {{method.name}}MethodPrologueCustom(const v8::FunctionCallbackInfo <v8::Value>&, {{cpp_class}}*);
68 {% endif %} 62 {% endif %}
69 {% if method.is_custom_call_epilogue %} 63 {% if method.is_custom_call_epilogue %}
70 static void {{method.name}}MethodEpilogueCustom(const v8::FunctionCallbackInfo <v8::Value>&, {{cpp_class}}*); 64 static void {{method.name}}MethodEpilogueCustom(const v8::FunctionCallbackInfo <v8::Value>&, {{cpp_class}}*);
71 {% endif %} 65 {% endif %}
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 template <> 271 template <>
278 struct V8TypeOf<{{cpp_class}}> { 272 struct V8TypeOf<{{cpp_class}}> {
279 typedef {{v8_class}} Type; 273 typedef {{v8_class}} Type;
280 }; 274 };
281 275
282 } // namespace blink 276 } // namespace blink
283 277
284 #endif // {{v8_class}}_h 278 #endif // {{v8_class}}_h
285 279
286 {% endfilter %}{# format_blink_cpp_source_code #} 280 {% endfilter %}{# format_blink_cpp_source_code #}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698