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

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

Issue 740453004: IDL: Basic dictionary inheritance support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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/dictionary_impl.h
diff --git a/Source/bindings/templates/dictionary_impl.h b/Source/bindings/templates/dictionary_impl.h
index 9cdea3d4cc10829e56e1fd4f85028554847dfb02..0b3027c0f17414224c352fe083a397628c006f50 100644
--- a/Source/bindings/templates/dictionary_impl.h
+++ b/Source/bindings/templates/dictionary_impl.h
@@ -13,7 +13,7 @@
namespace blink {
-class {{cpp_class}} final {
+class {{cpp_class}}{% if parent_cpp_class %} : public {{parent_cpp_class}}{% endif %} {
ALLOW_ONLY_INLINE_ALLOCATION();
public:
{{cpp_class}}();
@@ -24,7 +24,7 @@ public:
void {{member.setter_name}}({{member.rvalue_cpp_type}} value) { m_{{member.cpp_name}} = value; }
{% endfor %}
- void trace(Visitor*);
+ virtual void trace(Visitor*);
private:
{% for member in members %}

Powered by Google App Engine
This is Rietveld 408576698