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

Unified Diff: sky/engine/build/scripts/templates/EventFactory.cpp.tmpl

Issue 879743004: Remove the EventFactory machinery. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/build/scripts/scripts.gypi ('k') | sky/engine/core/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/build/scripts/templates/EventFactory.cpp.tmpl
diff --git a/sky/engine/build/scripts/templates/EventFactory.cpp.tmpl b/sky/engine/build/scripts/templates/EventFactory.cpp.tmpl
deleted file mode 100644
index c10a71df67b81be21e2e9f113c698e08a719b136..0000000000000000000000000000000000000000
--- a/sky/engine/build/scripts/templates/EventFactory.cpp.tmpl
+++ /dev/null
@@ -1,27 +0,0 @@
-{% from 'macros.tmpl' import license %}
-{{license()}}
-
-#include "config.h"
-#include "core/events/{{namespace}}Factory.h"
-
-#include "{{namespace}}{{suffix}}Headers.h"
-#include "gen/sky/platform/RuntimeEnabledFeatures.h"
-
-namespace blink {
-
-PassRefPtr<{{namespace}}> {{namespace}}{{suffix}}Factory::create(const String& type)
-{
- {% 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 %}
- return nullptr;
-}
-
-} // namespace blink
« no previous file with comments | « sky/engine/build/scripts/scripts.gypi ('k') | sky/engine/core/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698