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

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

Issue 2329463004: ABANDONED CL: Changes needed to make things compile after running rewrite_to_chrome_style tool. (Closed)
Patch Set: More fixes - things build fine at this point. Created 3 years, 8 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
Index: third_party/WebKit/Source/build/scripts/templates/MediaFeatures.h.tmpl
diff --git a/third_party/WebKit/Source/build/scripts/templates/MediaFeatures.h.tmpl b/third_party/WebKit/Source/build/scripts/templates/MediaFeatures.h.tmpl
index d4a56ab0eb1f8bacb4d4e2595bf4efd2ec06c565..e357f3b1c269aa206090fb129fcb4deb342036f8 100644
--- a/third_party/WebKit/Source/build/scripts/templates/MediaFeatures.h.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/MediaFeatures.h.tmpl
@@ -6,7 +6,9 @@
#define CSS_MEDIAQUERY_NAMES_FOR_EACH_MEDIAFEATURE(macro) \
{% for entry in entries %}
- macro({{entry|symbol}}){% if not loop.last %} \
+ {% set constant_prefix = entry | symbol %}
+ {% set method_prefix = constant_prefix | upper_first_letter %}
+ macro({{constant_prefix}}, {{method_prefix}}){% if not loop.last %} \
{% endif %}
{% endfor %}

Powered by Google App Engine
This is Rietveld 408576698