mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This CL generated by |sed -i '/sky\/engine\/config.h/d'| and a manual sweep to catch some oddballs. TBR=eseidel@chromium.org Review URL: https://codereview.chromium.org/1206763002.
36 lines
907 B
Cheetah
36 lines
907 B
Cheetah
{% from "macros.tmpl" import license %}
|
|
{{ license() }}
|
|
|
|
#include "{{namespace}}{{suffix}}Names.h"
|
|
|
|
#include "wtf/StaticConstructors.h"
|
|
|
|
namespace blink {
|
|
namespace {{namespace}}Names {
|
|
|
|
using namespace WTF;
|
|
|
|
{% for entry in entries|sort %}
|
|
{% filter enable_conditional(entry.Conditional) %}
|
|
DEFINE_GLOBAL(AtomicString, {{entry|symbol}})
|
|
{% endfilter %}
|
|
{% endfor %}
|
|
|
|
void init{{suffix}}()
|
|
{
|
|
{% for entry in entries|sort %}
|
|
{% filter enable_conditional(entry.Conditional) %}
|
|
StringImpl* {{entry|symbol}}Impl = StringImpl::createStatic("{{entry|cpp_name}}", {{entry|cpp_name|length}}, {{entry|cpp_name|hash}});
|
|
{% endfilter %}
|
|
{% endfor %}
|
|
|
|
{% for entry in entries|sort %}
|
|
{% filter enable_conditional(entry.Conditional) %}
|
|
new ((void*)&{{entry|symbol}}) AtomicString({{entry|symbol}}Impl);
|
|
{% endfilter %}
|
|
{% endfor %}
|
|
}
|
|
|
|
} // {{namespace}}Names
|
|
} // namespace blink
|