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

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
« no previous file with comments | « Source/bindings/scripts/v8_utilities.py ('k') | Source/bindings/templates/dictionary_impl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..b52b1c44aa56991fc49144d39cadc8b9278ae597 100644
--- a/Source/bindings/templates/dictionary_impl.h
+++ b/Source/bindings/templates/dictionary_impl.h
@@ -13,7 +13,8 @@
namespace blink {
-class {{cpp_class}} final {
+{# FIXME: Add "final" if this class doesn't have subclasses #}
+class {{cpp_class}}{% if parent_cpp_class %} : public {{parent_cpp_class}}{% endif %} {
ALLOW_ONLY_INLINE_ALLOCATION();
public:
{{cpp_class}}();
@@ -24,7 +25,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 %}
« no previous file with comments | « Source/bindings/scripts/v8_utilities.py ('k') | Source/bindings/templates/dictionary_impl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698