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

Unified Diff: Source/build/scripts/templates/EventFactory.cpp.tmpl

Issue 250933005: Make createEvent do case-insensitive matches (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Do not use startsWith for Event(s) Created 6 years, 7 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/make_event_factory.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/build/scripts/templates/EventFactory.cpp.tmpl
diff --git a/Source/build/scripts/templates/EventFactory.cpp.tmpl b/Source/build/scripts/templates/EventFactory.cpp.tmpl
index c4cfdd415096a8354a5f4d536be18310ed3e0a2c..2b14b41a19be06ccad2a270c5b88e52eb1ba36ff 100644
--- a/Source/build/scripts/templates/EventFactory.cpp.tmpl
+++ b/Source/build/scripts/templates/EventFactory.cpp.tmpl
@@ -13,7 +13,11 @@ PassRefPtrWillBeRawPtr<{{namespace}}> {{namespace}}Factory::create(const String&
{
{% for event in events %}
{% filter enable_conditional(event.Conditional) %}
+ {% if event|script_name|case_insensitive_matching %}
+ if (equalIgnoringCase(type, "{{event|script_name}}"){% if event.RuntimeEnabled %} && RuntimeEnabledFeatures::{{event.RuntimeEnabled|lower_first}}(){% endif %})
+ {% else %}
if (type == "{{event|script_name}}"{% if event.RuntimeEnabled %} && RuntimeEnabledFeatures::{{event.RuntimeEnabled|lower_first}}(){% endif %})
+ {% endif %}
return {{event|cpp_name}}::create();
{% endfilter %}
{% endfor %}
« no previous file with comments | « Source/build/scripts/make_event_factory.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698