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

Side by Side Diff: Source/build/scripts/templates/ElementWrapperFactory.cpp.tmpl

Issue 344593002: Qualify RuntimeEnabledFeatures.h and remove unnecessary include dir. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebaseline Created 6 years, 6 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 #include "config.h" 4 #include "config.h"
5 #include "V8{{namespace}}ElementWrapperFactory.h" 5 #include "V8{{namespace}}ElementWrapperFactory.h"
6 6
7 #include "RuntimeEnabledFeatures.h"
8 #include "{{namespace}}Names.h" 7 #include "{{namespace}}Names.h"
9 #include "bindings/v8/CustomElementWrapper.h" 8 #include "bindings/v8/CustomElementWrapper.h"
10 {% for tag in tags|sort if tag.has_js_interface %} 9 {% for tag in tags|sort if tag.has_js_interface %}
11 #include "V8{{tag.interface}}.h" 10 #include "V8{{tag.interface}}.h"
12 {% endfor %} 11 {% endfor %}
13 {% for tag in tags|sort if tag.has_js_interface %} 12 {% for tag in tags|sort if tag.has_js_interface %}
14 #include "core/{{namespace|lower}}/{{tag.js_interface}}.h" 13 #include "core/{{namespace|lower}}/{{tag.js_interface}}.h"
15 {% endfor %} 14 {% endfor %}
16 #include "core/{{namespace|lower}}/{{fallback_js_interface}}.h" 15 #include "core/{{namespace|lower}}/{{fallback_js_interface}}.h"
17 #include "core/dom/ContextFeatures.h" 16 #include "core/dom/ContextFeatures.h"
18 #include "core/dom/Document.h" 17 #include "core/dom/Document.h"
19 #include "core/frame/Settings.h" 18 #include "core/frame/Settings.h"
19 #include "platform/RuntimeEnabledFeatures.h"
20 #include "wtf/StdLibExtras.h" 20 #include "wtf/StdLibExtras.h"
21 21
22 namespace WebCore { 22 namespace WebCore {
23 23
24 using namespace {{namespace}}Names; 24 using namespace {{namespace}}Names;
25 25
26 typedef v8::Handle<v8::Object> (*Create{{namespace}}ElementWrapperFunction)({{na mespace}}Element*, v8::Handle<v8::Object> creationContext, v8::Isolate*); 26 typedef v8::Handle<v8::Object> (*Create{{namespace}}ElementWrapperFunction)({{na mespace}}Element*, v8::Handle<v8::Object> creationContext, v8::Isolate*);
27 27
28 static v8::Handle<v8::Object> create{{namespace}}ElementWrapper({{namespace}}Ele ment*, v8::Handle<v8::Object>, v8::Isolate*) 28 static v8::Handle<v8::Object> create{{namespace}}ElementWrapper({{namespace}}Ele ment*, v8::Handle<v8::Object>, v8::Isolate*)
29 { 29 {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 {% endfor %} 88 {% endfor %}
89 } 89 }
90 90
91 if (const WrapperTypeInfo* result = map.get(name.impl())) 91 if (const WrapperTypeInfo* result = map.get(name.impl()))
92 return result; 92 return result;
93 93
94 return &V8{{fallback_js_interface}}::wrapperTypeInfo; 94 return &V8{{fallback_js_interface}}::wrapperTypeInfo;
95 } 95 }
96 96
97 } 97 }
OLDNEW
« no previous file with comments | « Source/build/scripts/templates/ElementTypeHelpers.h.tmpl ('k') | Source/build/scripts/templates/EventFactory.cpp.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698