Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(424)

Unified Diff: Source/build/scripts/templates/MediaFeatures.h.tmpl

Issue 185533012: Auto generate MediaFeatureNames, its macros and MediaTypeNames (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed comment from RuntimeEnabled Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/build/scripts/media_feature_symbol.py ('k') | Source/core/Init.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/build/scripts/templates/MediaFeatures.h.tmpl
diff --git a/Source/build/scripts/templates/MediaFeatures.h.tmpl b/Source/build/scripts/templates/MediaFeatures.h.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..224e7d07efaf279a7e1420f3621d7669cf9d50b8
--- /dev/null
+++ b/Source/build/scripts/templates/MediaFeatures.h.tmpl
@@ -0,0 +1,12 @@
+{% from "macros.tmpl" import license -%}
+{{ license() }}
+
+#ifndef MediaFeatures_h
+#define MediaFeatures_h
+
+#define CSS_MEDIAQUERY_NAMES_FOR_EACH_MEDIAFEATURE(macro) \
+{%- for entry in entries %}
+ macro({{entry|symbol}}) {%- if not loop.last %}\{%-endif %}
+{%- endfor %}
+
+#endif
« no previous file with comments | « Source/build/scripts/media_feature_symbol.py ('k') | Source/core/Init.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698