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

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

Issue 182763002: Add [WillBeGarbageCollected] to Event.idl (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
1 {% from "macros.tmpl" import wrap_with_condition, license -%} 1 {% from "macros.tmpl" import wrap_with_condition, license -%}
2 {{ license() }} 2 {{ license() }}
3 3
4 #include "config.h" 4 #include "config.h"
5 #include "core/events/{{namespace}}Factory.h" 5 #include "core/events/{{namespace}}Factory.h"
6 6
7 #include "{{namespace}}Headers.h" 7 #include "{{namespace}}Headers.h"
8 #include "RuntimeEnabledFeatures.h" 8 #include "RuntimeEnabledFeatures.h"
9 9
10 namespace WebCore { 10 namespace WebCore {
11 11
12 PassRefPtr<{{namespace}}> {{namespace}}Factory::create(const String& type) 12 PassRefPtrWillBeRawPtr<{{namespace}}> {{namespace}}Factory::create(const String& type)
13 { 13 {
14 {%- for event in events %} 14 {%- for event in events %}
15 {%- call wrap_with_condition(event.Conditional) %} 15 {%- call wrap_with_condition(event.Conditional) %}
16 if (type == "{{event|script_name}}"{% if event.RuntimeEnabled %} && RuntimeE nabledFeatures::{{event.RuntimeEnabled|lower_first}}(){% endif %}) 16 if (type == "{{event|script_name}}"{% if event.RuntimeEnabled %} && RuntimeE nabledFeatures::{{event.RuntimeEnabled|lower_first}}(){% endif %})
17 return {{event|cpp_name}}::create(); 17 return {{event|cpp_name}}::create();
18 {%- endcall %} 18 {%- endcall %}
19 {%- endfor %} 19 {%- endfor %}
20 return nullptr; 20 return nullptr;
21 } 21 }
22 22
23 } // namespace WebCore 23 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestInterfaceEventConstructor.cpp ('k') | Source/core/css/CSSFontFaceLoadEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698