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

Side by Side Diff: sky/engine/build/scripts/templates/ElementFactory.cpp.tmpl

Issue 946083003: Rename Sky's custom2 to custom (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « sky/engine/bindings/scripts/v8_methods.py ('k') | sky/engine/core/core.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {% from "macros.tmpl" import license %} 1 {% from "macros.tmpl" import license %}
2 {{ license() }} 2 {{ license() }}
3 3
4 #include "config.h" 4 #include "config.h"
5 #include "{{namespace}}ElementFactory.h" 5 #include "{{namespace}}ElementFactory.h"
6 6
7 #include "{{namespace}}Names.h" 7 #include "{{namespace}}Names.h"
8 {% for tag in tags|sort %} 8 {% for tag in tags|sort %}
9 #include "core/{{namespace|lower}}/{{tag.interface}}.h" 9 #include "core/{{namespace|lower}}/{{tag.interface}}.h"
10 {% endfor %} 10 {% endfor %}
11 {% if fallback_interface %} 11 {% if fallback_interface %}
12 #include "core/{{namespace|lower}}/{{fallback_interface}}.h" 12 #include "core/{{namespace|lower}}/{{fallback_interface}}.h"
13 {% endif %} 13 {% endif %}
14 #include "core/dom/custom2/new_custom_element_registry.h" 14 #include "core/dom/custom/custom_element_registry.h"
15 #include "core/dom/Document.h" 15 #include "core/dom/Document.h"
16 #include "core/frame/Settings.h" 16 #include "core/frame/Settings.h"
17 #include "gen/sky/platform/RuntimeEnabledFeatures.h" 17 #include "gen/sky/platform/RuntimeEnabledFeatures.h"
18 #include "wtf/HashMap.h" 18 #include "wtf/HashMap.h"
19 19
20 namespace blink { 20 namespace blink {
21 21
22 using namespace {{namespace}}Names; 22 using namespace {{namespace}}Names;
23 23
24 typedef PassRefPtr<{{namespace}}Element> (*ConstructorFunction)( 24 typedef PassRefPtr<{{namespace}}Element> (*ConstructorFunction)(
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 bool createdByParser) 76 bool createdByParser)
77 { 77 {
78 if (!g_constructors) 78 if (!g_constructors)
79 create{{namespace}}FunctionMap(); 79 create{{namespace}}FunctionMap();
80 if (ConstructorFunction function = g_constructors->get(localName)) 80 if (ConstructorFunction function = g_constructors->get(localName))
81 return function(document, createdByParser); 81 return function(document, createdByParser);
82 return document.elementRegistry().CreateElement(document, localName); 82 return document.elementRegistry().CreateElement(document, localName);
83 } 83 }
84 84
85 } // namespace blink 85 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/bindings/scripts/v8_methods.py ('k') | sky/engine/core/core.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698