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

Unified Diff: Source/bindings/templates/union.h

Issue 689013002: IDL: Generate trace() method in union container types when required (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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: Source/bindings/templates/union.h
diff --git a/Source/bindings/templates/union.h b/Source/bindings/templates/union.h
index 651b64757916d250b0e8e4f8a12d5b0f1c6512b0..8db42b44440da1776484f0ab3943b7d77f82b09d 100644
--- a/Source/bindings/templates/union.h
+++ b/Source/bindings/templates/union.h
@@ -30,6 +30,10 @@ public:
void set{{member.type_name}}({{member.rvalue_cpp_type}});
{% endfor %}
+ {% if container.needs_trace %}
+ void trace(Visitor*);
+
+ {% endif %}
private:
enum SpecificTypes {
SpecificTypeNone,

Powered by Google App Engine
This is Rietveld 408576698