blob: 6ee6ad6818d0fdc877b8c29ec89631d99495710d (
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
|
{% from "macros.tmpl" import license %}
{{ license() }}
#ifndef {{namespace}}{{suffix}}Names_h
#define {{namespace}}{{suffix}}Names_h
{% set symbol_export = '%s ' % export if export else '' %}
{% if suffix %}
#include "core/{{namespace}}Names.h"
{% else %}
#include "wtf/text/AtomicString.h"
{% endif %}
{% if export == 'CORE_EXPORT' %}
#include "core/CoreExport.h"
{% elif export == 'MODULES_EXPORT' %}
#include "modules/ModulesExport.h"
{% else %}
#include "platform/PlatformExport.h"
{% endif %}
// Generated from:
{% for entry in in_files|sort %}
// - {{entry}}
{% endfor %}
namespace blink {
namespace {{namespace}}Names {
{% for entry in entries|sort %}
{{symbol_export}}extern const WTF::AtomicString& {{entry|symbol}};
{% endfor %}
const unsigned {{namespace}}{{suffix}}NamesCount = {{entries|length}};
{{symbol_export}}void init{{suffix}}();
} // {{namespace}}Names
} // namespace blink
#endif
|