diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/build/scripts/templates/InternalSettingsGenerated.h.tmpl')
-rw-r--r-- | chromium/third_party/WebKit/Source/build/scripts/templates/InternalSettingsGenerated.h.tmpl | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/chromium/third_party/WebKit/Source/build/scripts/templates/InternalSettingsGenerated.h.tmpl b/chromium/third_party/WebKit/Source/build/scripts/templates/InternalSettingsGenerated.h.tmpl index 1d2510b5a99..40e6d555b0e 100644 --- a/chromium/third_party/WebKit/Source/build/scripts/templates/InternalSettingsGenerated.h.tmpl +++ b/chromium/third_party/WebKit/Source/build/scripts/templates/InternalSettingsGenerated.h.tmpl @@ -1,9 +1,10 @@ -{% from "macros.tmpl" import license -%} +{% from "macros.tmpl" import license %} {{ license() }} #ifndef InternalSettingsGenerated_h #define InternalSettingsGenerated_h +#include "platform/heap/Handle.h" #include "platform/RefCountedSupplement.h" #include "wtf/PassRefPtr.h" #include "wtf/RefCounted.h" @@ -13,21 +14,23 @@ namespace WebCore { class Page; -class InternalSettingsGenerated : public RefCounted<InternalSettingsGenerated> { +class InternalSettingsGenerated : public RefCountedWillBeGarbageCollectedFinalized<InternalSettingsGenerated> { public: explicit InternalSettingsGenerated(Page*); virtual ~InternalSettingsGenerated(); void resetToConsistentState(); -{%- for setting in settings if setting.type|to_idl_type %} + {% for setting in settings if setting.type|to_idl_type %} void set{{setting.name|upper_first}}({{setting.type|to_passing_type}} {{setting.name}}); -{%- endfor %} + {% endfor %} + + virtual void trace(Visitor*) { } private: Page* m_page; - {%- for setting in settings if setting.type|to_idl_type %} + {% for setting in settings if setting.type|to_idl_type %} {{setting.type}} m_{{setting.name}}; - {%- endfor %} + {% endfor %} }; } // namespace WebCore |