summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/build/scripts/core/css/templates/media_features.h.tmpl
blob: 4f7fe5d43f34926f6e4724836c051c8efa92580b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{% from "templates/macros.tmpl" import license, source_files_for_generated_file %}
{{ license() }}

{{source_files_for_generated_file(template_file, input_files)}}

#ifndef BLINK_CORE_CSS_MEDIA_FEATURES_H_
#define BLINK_CORE_CSS_MEDIA_FEATURES_H_

#define CSS_MEDIAQUERY_NAMES_FOR_EACH_MEDIAFEATURE(macro) \
    {% for entry in entries %}
    {% set constant_prefix = entry | symbol %}
    {% set method_prefix = constant_prefix | to_function_name %}
    macro({{constant_prefix}}, {{method_prefix}}){% if not loop.last %} \
    {% endif %}
    {% endfor %}

#endif  // BLINK_CORE_CSS_MEDIA_FEATURES_H_