blob: bec4e08a03dcf40413e9bfb2d2942f713201daa2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{% from "macros.tmpl" import license %}
{{ license() }}
#include "InternalSettingsGenerated.h"
#include "core/page/Page.h"
#include "core/frame/Settings.h"
namespace blink {
InternalSettingsGenerated::InternalSettingsGenerated(Page* page)
: m_page(page)
{% for setting in settings if setting.type|to_idl_type %}
, m_{{setting.name}}(page->settings().{{setting.name}}())
{% endfor %}
{
}
InternalSettingsGenerated::~InternalSettingsGenerated()
{
}
void InternalSettingsGenerated::resetToConsistentState()
{
{% for setting in settings if setting.type|to_idl_type %}
m_page->settings().set{{setting.name|upper_first}}(m_{{setting.name}});
{% endfor %}
}
{% for setting in settings if setting.type|to_idl_type %}
void InternalSettingsGenerated::set{{setting.name|upper_first}}({{setting.type|to_passing_type}} {{setting.name}})
{
m_page->settings().set{{setting.name|upper_first}}({{setting.name}});
}
{% endfor %}
DEFINE_TRACE(InternalSettingsGenerated)
{
visitor->trace(m_page);
}
} // namespace blink
|