Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / Source / build / scripts / templates / InternalSettingsGenerated.h.tmpl
blob9a02e1687067e7fc64a7b7e4ef0a283de57b97f8
1 {% from "macros.tmpl" import license %}
2 {{ license() }}
4 #ifndef InternalSettingsGenerated_h
5 #define InternalSettingsGenerated_h
7 #include "bindings/core/v8/ScriptWrappable.h"
8 #include "platform/RefCountedSupplement.h"
9 #include "platform/heap/Handle.h"
10 #include "wtf/PassRefPtr.h"
11 #include "wtf/RefCounted.h"
12 #include "wtf/text/WTFString.h"
14 namespace blink {
16 class Page;
18 class InternalSettingsGenerated : public RefCountedWillBeGarbageCollectedFinalized<InternalSettingsGenerated>, public ScriptWrappable {
19     DEFINE_WRAPPERTYPEINFO();
20 public:
21     explicit InternalSettingsGenerated(Page*);
22     virtual ~InternalSettingsGenerated();
23     void resetToConsistentState();
24     {% for setting in settings if setting.type|to_idl_type %}
25     void set{{setting.name|upper_first}}({{setting.type|to_passing_type}} {{setting.name}});
26     {% endfor %}
28     DEFINE_INLINE_VIRTUAL_TRACE()
29     {
30         visitor->trace(m_page);
31     }
33 private:
34     RawPtrWillBeMember<Page> m_page;
36     {% for setting in settings if setting.type|to_idl_type %}
37     {{setting.type}} m_{{setting.name}};
38     {% endfor %}
41 } // namespace blink
43 #endif // InternalSettingsGenerated_h