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

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

Issue 1691883003: Deprecate SVGZoomEvent and SVGZoomEvents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update -expected files with deprecation messages and rename counter to SVGZoomEvent Created 4 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
Index: third_party/WebKit/Source/build/scripts/templates/EventFactory.cpp.tmpl
diff --git a/third_party/WebKit/Source/build/scripts/templates/EventFactory.cpp.tmpl b/third_party/WebKit/Source/build/scripts/templates/EventFactory.cpp.tmpl
index f893780fa8857df0941555c4fc8404c87faa838b..52ef042813bc93ed3e782c71b1672b1ac243dccc 100644
--- a/third_party/WebKit/Source/build/scripts/templates/EventFactory.cpp.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/EventFactory.cpp.tmpl
@@ -8,7 +8,7 @@
{% endif %}
#include "{{namespace}}{{suffix}}Headers.h"
-#include "core/frame/UseCounter.h"
+#include "core/frame/Deprecation.h"
#include "platform/RuntimeEnabledFeatures.h"
namespace blink {
@@ -16,14 +16,18 @@ namespace blink {
PassRefPtrWillBeRawPtr<{{namespace}}> {{namespace}}{{suffix}}Factory::create(ExecutionContext* executionContext, const String& type)
{
{% for event in events %}
- {% if event|script_name|case_insensitive_matching %}
+ {% if event|script_name|create_event_whitelist %}
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 %}
- {% if not event|script_name|candidate_whitelist %}
+ {% if not event|script_name|create_event_whitelist %}
+ {% if event|script_name|create_event_deprecate_list %}
+ Deprecation::countDeprecation(executionContext, UseCounter::{{event|script_name|deprecate_name}});
+ {% else %}
UseCounter::count(executionContext, UseCounter::{{event|script_name|measure_name}});
{% endif %}
+ {% endif %}
return {{event|cpp_name}}::create();
}
{% endfor %}
« no previous file with comments | « third_party/WebKit/Source/build/scripts/make_event_factory.py ('k') | third_party/WebKit/Source/core/frame/Deprecation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698