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

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

Issue 552733002: bindings: Cleans up V8{HTML,SVG}ElementWrapperFactory. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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/scripts.gypi ('k') | Source/build/scripts/templates/ElementWrapperFactory.h.tmpl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/build/scripts/templates/ElementWrapperFactory.cpp.tmpl
diff --git a/Source/build/scripts/templates/ElementWrapperFactory.cpp.tmpl b/Source/build/scripts/templates/ElementWrapperFactory.cpp.tmpl
deleted file mode 100644
index 44317ae7ce3a211495aaed1ce3abbd4c18f7897d..0000000000000000000000000000000000000000
--- a/Source/build/scripts/templates/ElementWrapperFactory.cpp.tmpl
+++ /dev/null
@@ -1,44 +0,0 @@
-{% from "macros.tmpl" import license %}
-{{ license() }}
-
-#include "config.h"
-#include "V8{{namespace}}ElementWrapperFactory.h"
-
-#include "{{namespace}}Names.h"
-{% for tag in tags|sort if tag.has_js_interface %}
-#include "bindings/core/v8/V8{{tag.interface}}.h"
-{% endfor %}
-{% for tag in tags|sort if tag.has_js_interface %}
-#include "core/{{namespace|lower}}/{{tag.js_interface}}.h"
-{% endfor %}
-#include "core/{{namespace|lower}}/{{fallback_js_interface}}.h"
-#include "core/dom/Document.h"
-#include "core/frame/Settings.h"
-#include "platform/RuntimeEnabledFeatures.h"
-#include "wtf/StdLibExtras.h"
-
-namespace blink {
-
-using namespace {{namespace}}Names;
-
-const WrapperTypeInfo* findWrapperTypeFor{{namespace}}TagName(const AtomicString& name)
-{
- typedef HashMap<StringImpl*, const WrapperTypeInfo*> NameTypeMap;
- DEFINE_STATIC_LOCAL(NameTypeMap, map, ());
- if (map.isEmpty()) {
- // FIXME: This seems wrong. We should list every interface here, not
- // just the ones that have specialized JavaScript interfaces.
- {% for tag in tags|sort if tag.has_js_interface %}
- {% filter enable_conditional(tag.Conditional) %}
- map.set({{tag|symbol}}Tag.localName().impl(), &V8{{tag.js_interface}}::wrapperTypeInfo);
- {% endfilter %}
- {% endfor %}
- }
-
- if (const WrapperTypeInfo* result = map.get(name.impl()))
- return result;
-
- return &V8{{fallback_js_interface}}::wrapperTypeInfo;
-}
-
-} // namespace blink
« no previous file with comments | « Source/build/scripts/scripts.gypi ('k') | Source/build/scripts/templates/ElementWrapperFactory.h.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698