summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/build/scripts/templates/element_factory.h.tmpl
blob: d448a732f98281e3c0c9a6a390a9f7ac36d67ba8 (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
{% from "templates/macros.tmpl" import license, source_files_for_generated_file %}
{{ license() }}

{{source_files_for_generated_file(template_file, input_files)}}

#ifndef BLINK_CORE_{{namespace|upper}}_ELEMENT_FACTORY_H_
#define BLINK_CORE_{{namespace|upper}}_ELEMENT_FACTORY_H_

#include "third_party/blink/renderer/core/dom/create_element_flags.h"
#include "third_party/blink/renderer/platform/wtf/forward.h"

namespace blink {

class Document;
class {{namespace}}Element;

class {{namespace}}ElementFactory {
 public:
  // If |localName| is unknown, nullptr is returned.
  static {{namespace}}Element* Create(
      const AtomicString& localName,
      Document&,
      const CreateElementFlags flags);
};

} // namespace blink

#endif