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

Unified Diff: Source/bindings/templates/interface.cpp

Issue 101533007: IDL compiler: [InitializedByEventConstructor] (basic) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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: Source/bindings/templates/interface.cpp
diff --git a/Source/bindings/templates/interface.cpp b/Source/bindings/templates/interface.cpp
index c0e9a1c3161630568227c79e32fb165edaeba218..8741049ebb0d3e7618a2dec36c59766c63a7da4f 100644
--- a/Source/bindings/templates/interface.cpp
+++ b/Source/bindings/templates/interface.cpp
@@ -255,7 +255,16 @@ static const V8DOMConfiguration::MethodConfiguration {{v8_class}}Methods[] = {
bool fill{{cpp_class}}Init({{cpp_class}}Init& eventInit, const Dictionary& options, ExceptionState& exceptionState, const String& forEventName)
{
Dictionary::ConversionContext conversionContext(forEventName.isEmpty() ? String("{{interface_name}}") : forEventName, "", exceptionState);
- {# FIXME: implement [InitializedByEventConstructor] #}
+ {# FIXME: parent interface #}
+ {% for attribute in attributes
+ if attribute.is_initialized_by_event_constructor %}
+ {# FIXME: implement [ImplementedAs] #}
+ {# FIXME: implement [DeprecateAs] #}
+ {# FIXME: special-case any #}
+ {# FIXME: implement withPropertyAttributes #}
+ if (!options.convert(conversionContext, "{{attribute.name}}", eventInit.{{attribute.name}}))
+ return false;
+ {% endfor %}
return true;
}
« no previous file with comments | « Source/bindings/scripts/unstable/v8_attributes.py ('k') | Source/bindings/tests/idls/TestInterfaceEventConstructor.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698