Upstream version 9.38.198.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 "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"
13
14 namespace blink {
15
16 class Page;
17
18 class InternalSettingsGenerated : public RefCountedWillBeGarbageCollectedFinalized<InternalSettingsGenerated>, public ScriptWrappable {
19 public:
20     explicit InternalSettingsGenerated(Page*);
21     virtual ~InternalSettingsGenerated();
22     void resetToConsistentState();
23     {% for setting in settings if setting.type|to_idl_type %}
24     void set{{setting.name|upper_first}}({{setting.type|to_passing_type}} {{setting.name}});
25     {% endfor %}
26
27     virtual void trace(Visitor*) { }
28
29 private:
30     Page* m_page;
31
32     {% for setting in settings if setting.type|to_idl_type %}
33     {{setting.type}} m_{{setting.name}};
34     {% endfor %}
35 };
36
37 } // namespace blink
38
39 #endif // InternalSettingsGenerated_h