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

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

Issue 2273683003: Use visitDOMWrapper to preserve WebGL JS object wrappers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 3 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 has_visit_dom_wrapper_extra %}
80 static void visitDOMWrapperExtra(v8::Isolate*, ScriptWrappable*, const v8::P ersistent<v8::Object>&);
81 {% endif %}
79 {% for method in methods %} 82 {% for method in methods %}
80 {% if method.is_custom %} 83 {% if method.is_custom %}
81 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::V alue>&); 84 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::V alue>&);
82 {% endif %} 85 {% endif %}
83 {% if method.is_custom_call_prologue %} 86 {% if method.is_custom_call_prologue %}
84 static void {{method.name}}MethodPrologueCustom(const v8::FunctionCallbackIn fo<v8::Value>&, {{cpp_class}}*); 87 static void {{method.name}}MethodPrologueCustom(const v8::FunctionCallbackIn fo<v8::Value>&, {{cpp_class}}*);
85 {% endif %} 88 {% endif %}
86 {% if method.is_custom_call_epilogue %} 89 {% if method.is_custom_call_epilogue %}
87 static void {{method.name}}MethodEpilogueCustom(const v8::FunctionCallbackIn fo<v8::Value>&, {{cpp_class}}*); 90 static void {{method.name}}MethodEpilogueCustom(const v8::FunctionCallbackIn fo<v8::Value>&, {{cpp_class}}*);
88 {% endif %} 91 {% endif %}
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 template <> 188 template <>
186 struct V8TypeOf<{{cpp_class}}> { 189 struct V8TypeOf<{{cpp_class}}> {
187 typedef {{v8_class}} Type; 190 typedef {{v8_class}} Type;
188 }; 191 };
189 192
190 } // namespace blink 193 } // namespace blink
191 194
192 #endif // {{v8_class}}_h 195 #endif // {{v8_class}}_h
193 196
194 {% endfilter %}{# format_blink_cpp_source_code #} 197 {% endfilter %}{# format_blink_cpp_source_code #}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698