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

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

Issue 1805843002: [v8 gc] Introduce a base class for all objects that can have pending activity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 4 years, 9 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 {% 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 {% for filename in header_includes %} 5 {% for filename in header_includes %}
6 #include "{{filename}}" 6 #include "{{filename}}"
7 {% endfor %} 7 {% endfor %}
8 8
9 namespace blink { 9 namespace blink {
10 10
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 visitor->trace(scriptWrappable->toImpl<{{cpp_class}}>()); 68 visitor->trace(scriptWrappable->toImpl<{{cpp_class}}>());
69 {% elif gc_type == 'WillBeGarbageCollectedObject' %} 69 {% elif gc_type == 'WillBeGarbageCollectedObject' %}
70 #if ENABLE(OILPAN) 70 #if ENABLE(OILPAN)
71 visitor->trace(scriptWrappable->toImpl<{{cpp_class}}>()); 71 visitor->trace(scriptWrappable->toImpl<{{cpp_class}}>());
72 #endif 72 #endif
73 {% endif %} 73 {% endif %}
74 } 74 }
75 {% if has_visit_dom_wrapper %} 75 {% if has_visit_dom_wrapper %}
76 static void visitDOMWrapper(v8::Isolate*, ScriptWrappable*, const v8::Persis tent<v8::Object>&); 76 static void visitDOMWrapper(v8::Isolate*, ScriptWrappable*, const v8::Persis tent<v8::Object>&);
77 {% endif %} 77 {% endif %}
78 {% if active_scriptwrappable %}
79 static ActiveScriptWrappable* toActiveScriptWrappable(v8::Local<v8::Object>) ;
80 {% endif %}
78 {% for method in methods %} 81 {% for method in methods %}
79 {% if method.is_custom %} 82 {% if method.is_custom %}
80 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::V alue>&); 83 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::V alue>&);
81 {% endif %} 84 {% endif %}
82 {% if method.is_custom_call_prologue %} 85 {% if method.is_custom_call_prologue %}
83 static void {{method.name}}MethodPrologueCustom(const v8::FunctionCallbackIn fo<v8::Value>&, {{cpp_class}}*); 86 static void {{method.name}}MethodPrologueCustom(const v8::FunctionCallbackIn fo<v8::Value>&, {{cpp_class}}*);
84 {% endif %} 87 {% endif %}
85 {% if method.is_custom_call_epilogue %} 88 {% if method.is_custom_call_epilogue %}
86 static void {{method.name}}MethodEpilogueCustom(const v8::FunctionCallbackIn fo<v8::Value>&, {{cpp_class}}*); 89 static void {{method.name}}MethodEpilogueCustom(const v8::FunctionCallbackIn fo<v8::Value>&, {{cpp_class}}*);
87 {% endif %} 90 {% endif %}
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 184
182 {% endif %} 185 {% endif %}
183 template <> 186 template <>
184 struct V8TypeOf<{{cpp_class}}> { 187 struct V8TypeOf<{{cpp_class}}> {
185 typedef {{v8_class}} Type; 188 typedef {{v8_class}} Type;
186 }; 189 };
187 190
188 } // namespace blink 191 } // namespace blink
189 192
190 #endif // {{v8_class}}_h 193 #endif // {{v8_class}}_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698