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

Unified Diff: third_party/WebKit/Source/bindings/templates/callback_function.cpp.tmpl

Issue 2434763002: [wrapper-tracing] Bring remoteplayback up to date (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/templates/callback_function.cpp.tmpl
diff --git a/third_party/WebKit/Source/bindings/templates/callback_function.cpp.tmpl b/third_party/WebKit/Source/bindings/templates/callback_function.cpp.tmpl
index ecf618e362ab4a4ebc7ca4369ceabf67c2288b65..d5c90f1200a685ff3962f989ab656d9f9c0efc5b 100644
--- a/third_party/WebKit/Source/bindings/templates/callback_function.cpp.tmpl
+++ b/third_party/WebKit/Source/bindings/templates/callback_function.cpp.tmpl
@@ -22,6 +22,11 @@ DEFINE_TRACE({{cpp_class}})
{
}
+DEFINE_TRACE_WRAPPERS({{cpp_class}})
+{
+ visitor->traceWrappers(&reinterpret_cast<ScopedPersistent<v8::Object>&>(const_cast<ScopedPersistent<v8::Function>&>(m_callback)));
Marcel Hlopko 2016/10/19 15:08:17 Kentaro, just to be sure, should really each blink
Michael Lippautz 2016/10/19 15:13:41 This infra merely adds the capability of blink cal
haraken 2016/10/19 15:31:43 In almost all cases, the spec requires to add a st
haraken 2016/10/19 15:31:43 Can we add an overloaded function to traceWrappers
Michael Lippautz 2016/10/19 15:44:34 traceWrappers is overloaded with the two basic v8
Michael Lippautz 2016/10/19 15:44:35 Acknowledged.
+}
+
bool {{cpp_class}}::call({{argument_declarations | join(', ')}})
{
if (!scriptState->contextIsValid())

Powered by Google App Engine
This is Rietveld 408576698