Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / build / scripts / templates / InternalSettingsGenerated.h.tmpl
1 {% from "macros.tmpl" import license %}
2 {{ license() }}
3
4 #ifndef InternalSettingsGenerated_h
5 #define InternalSettingsGenerated_h
6
7 #include "platform/heap/Handle.h"
8 #include "platform/RefCountedSupplement.h"
9 #include "wtf/PassRefPtr.h"
10 #include "wtf/RefCounted.h"
11 #include "wtf/text/WTFString.h"
12
13 namespace WebCore {
14
15 class Page;
16
17 class InternalSettingsGenerated : public RefCountedWillBeGarbageCollectedFinalized<InternalSettingsGenerated> {
18 public:
19     explicit InternalSettingsGenerated(Page*);
20     virtual ~InternalSettingsGenerated();
21     void resetToConsistentState();
22     {% for setting in settings if setting.type|to_idl_type %}
23     void set{{setting.name|upper_first}}({{setting.type|to_passing_type}} {{setting.name}});
24     {% endfor %}
25
26     virtual void trace(Visitor*) { }
27
28 private:
29     Page* m_page;
30
31     {% for setting in settings if setting.type|to_idl_type %}
32     {{setting.type}} m_{{setting.name}};
33     {% endfor %}
34 };
35
36 } // namespace WebCore
37
38 #endif // InternalSettingsGenerated_h