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

Side by Side Diff: third_party/WebKit/Source/build/scripts/templates/EventFactory.cpp.tmpl

Issue 2611823003: ABANDONED CL: Changes to compile and pass tests after Big Blink Rename (excluding functions). (Closed)
Patch Set: Inducing merge conflicts to force human review and changes after rename. Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 {% from 'macros.tmpl' import license %} 1 {% from 'macros.tmpl' import license %}
2 {{license()}} 2 {{license()}}
3 3
4 {% if suffix == 'Modules' %} 4 {% if suffix == 'Modules' %}
5 #include "modules/{{namespace}}{{suffix}}Factory.h" 5 #include "modules/{{namespace}}{{suffix}}Factory.h"
6 {% else %} 6 {% else %}
7 #include "core/events/{{namespace}}Factory.h" 7 #include "core/events/{{namespace}}Factory.h"
8 {% endif %} 8 {% endif %}
9 9
10 #include "{{namespace}}{{suffix}}Headers.h" 10 #include "{{namespace}}{{suffix}}Headers.h"
11 #include "core/frame/Deprecation.h" 11 #include "core/frame/Deprecation.h"
12 #include "platform/RuntimeEnabledFeatures.h" 12 #include "platform/RuntimeEnabledFeatures.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 {{namespace}}* {{namespace}}{{suffix}}Factory::create(ExecutionContext* executio nContext, const String& type) { 16 {{namespace}}* {{namespace}}{{suffix}}Factory::create(ExecutionContext* executio nContext, const String& type) {
17 {% for event in events if event|script_name|create_event_whitelist or event|sc ript_name|create_event_legacy_whitelist %} 17 {% for event in events if event|script_name|create_event_whitelist or event|sc ript_name|create_event_legacy_whitelist %}
18 {% if event|script_name|create_event_whitelist %} 18 {% if event|script_name|create_event_whitelist %}
19 if (equalIgnoringCase(type, "{{event|script_name}}"){% if event.RuntimeEnabled %} && RuntimeEnabledFeatures::{{event.RuntimeEnabled|lower_first}}(){% endif %} ) { 19 if (equalIgnoringCase(type, "{{event|script_name}}"){% if event.RuntimeEnabled %} && RuntimeEnabledFeatures::{{event.RuntimeEnabled|lower_first}}(){% endif %} ) {
20 {% else %} 20 {% else %}
21 if (type == "{{event|script_name}}"{% if event.RuntimeEnabled %} && RuntimeEna bledFeatures::{{event.RuntimeEnabled|lower_first}}(){% endif %}) { 21 if (type == "{{event|script_name}}"{% if event.RuntimeEnabled %} && RuntimeEna bledFeatures::{{event.RuntimeEnabled|lower_first}}(){% endif %}) {
22 {% endif %} 22 {% endif %}
23 {% if not event|script_name|create_event_whitelist %} 23 {% if not event|script_name|create_event_whitelist %}
24 UseCounter::count(executionContext, UseCounter::{{event|script_name|measure_ name}}); 24 UseCounter::count(executionContext, UseCounter::k{{event|script_name|measure _name}});
25 {% endif %} 25 {% endif %}
26 return {{event|cpp_name}}::create(); 26 return {{event|cpp_name}}::create();
27 } 27 }
28 {% endfor %} 28 {% endfor %}
29 return nullptr; 29 return nullptr;
30 } 30 }
31 31
32 } // namespace blink 32 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698