OLD | NEW |
1 {% from "macros.tmpl" import license -%} | 1 {% from "macros.tmpl" import license -%} |
2 {{ license() }} | 2 {{ license() }} |
3 | 3 |
4 #ifndef InternalSettingsGenerated_h | 4 #ifndef InternalSettingsGenerated_h |
5 #define InternalSettingsGenerated_h | 5 #define InternalSettingsGenerated_h |
6 | 6 |
7 #include "core/platform/RefCountedSupplement.h" | 7 #include "platform/RefCountedSupplement.h" |
8 #include "wtf/PassRefPtr.h" | 8 #include "wtf/PassRefPtr.h" |
9 #include "wtf/RefCounted.h" | 9 #include "wtf/RefCounted.h" |
10 #include "wtf/text/WTFString.h" | 10 #include "wtf/text/WTFString.h" |
11 | 11 |
12 namespace WebCore { | 12 namespace WebCore { |
13 | 13 |
14 class Page; | 14 class Page; |
15 | 15 |
16 class InternalSettingsGenerated : public RefCounted<InternalSettingsGenerated> { | 16 class InternalSettingsGenerated : public RefCounted<InternalSettingsGenerated> { |
17 public: | 17 public: |
18 explicit InternalSettingsGenerated(Page*); | 18 explicit InternalSettingsGenerated(Page*); |
19 virtual ~InternalSettingsGenerated(); | 19 virtual ~InternalSettingsGenerated(); |
20 void resetToConsistentState(); | 20 void resetToConsistentState(); |
21 {%- for setting in settings if setting.type|to_idl_type %} | 21 {%- for setting in settings if setting.type|to_idl_type %} |
22 void set{{setting.name|upper_first}}({{setting.type|to_passing_type}} {{sett
ing.name}}); | 22 void set{{setting.name|upper_first}}({{setting.type|to_passing_type}} {{sett
ing.name}}); |
23 {%- endfor %} | 23 {%- endfor %} |
24 | 24 |
25 private: | 25 private: |
26 Page* m_page; | 26 Page* m_page; |
27 | 27 |
28 {%- for setting in settings if setting.type|to_idl_type %} | 28 {%- for setting in settings if setting.type|to_idl_type %} |
29 {{setting.type}} m_{{setting.name}}; | 29 {{setting.type}} m_{{setting.name}}; |
30 {%- endfor %} | 30 {%- endfor %} |
31 }; | 31 }; |
32 | 32 |
33 } // namespace WebCore | 33 } // namespace WebCore |
34 | 34 |
35 #endif // InternalSettingsGenerated_h | 35 #endif // InternalSettingsGenerated_h |
OLD | NEW |