| 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 "bindings/core/v8/ScriptWrappable.h" | 7 #include "bindings/core/v8/ScriptWrappable.h" |
| 8 #include "platform/RefCountedSupplement.h" | 8 #include "platform/RefCountedSupplement.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 #include "wtf/PassRefPtr.h" | 10 #include "wtf/PassRefPtr.h" |
| 11 #include "wtf/RefCounted.h" | 11 #include "wtf/RefCounted.h" |
| 12 #include "wtf/text/WTFString.h" | 12 #include "wtf/text/WTFString.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class Page; | 16 class Page; |
| 17 | 17 |
| 18 class InternalSettingsGenerated : public RefCountedWillBeGarbageCollectedFinaliz
ed<InternalSettingsGenerated>, public ScriptWrappable { | 18 class InternalSettingsGenerated : public GarbageCollectedFinalized<InternalSetti
ngsGenerated>, public ScriptWrappable { |
| 19 DEFINE_WRAPPERTYPEINFO(); | 19 DEFINE_WRAPPERTYPEINFO(); |
| 20 public: | 20 public: |
| 21 explicit InternalSettingsGenerated(Page*); | 21 explicit InternalSettingsGenerated(Page*); |
| 22 virtual ~InternalSettingsGenerated(); | 22 virtual ~InternalSettingsGenerated(); |
| 23 void resetToConsistentState(); | 23 void resetToConsistentState(); |
| 24 {% for setting in settings if setting.type|to_idl_type %} | 24 {% for setting in settings if setting.type|to_idl_type %} |
| 25 void set{{setting.name|upper_first}}({{setting.type|to_passing_type}} {{sett
ing.name}}); | 25 void set{{setting.name|upper_first}}({{setting.type|to_passing_type}} {{sett
ing.name}}); |
| 26 {% endfor %} | 26 {% endfor %} |
| 27 | 27 |
| 28 DEFINE_INLINE_VIRTUAL_TRACE() | 28 DEFINE_INLINE_VIRTUAL_TRACE() |
| 29 { | 29 { |
| 30 visitor->trace(m_page); | 30 visitor->trace(m_page); |
| 31 } | 31 } |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 RawPtrWillBeMember<Page> m_page; | 34 Member<Page> m_page; |
| 35 | 35 |
| 36 {% for setting in settings if setting.type|to_idl_type %} | 36 {% for setting in settings if setting.type|to_idl_type %} |
| 37 {{setting.type}} m_{{setting.name}}; | 37 {{setting.type}} m_{{setting.name}}; |
| 38 {% endfor %} | 38 {% endfor %} |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 } // namespace blink | 41 } // namespace blink |
| 42 | 42 |
| 43 #endif // InternalSettingsGenerated_h | 43 #endif // InternalSettingsGenerated_h |
| OLD | NEW |