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

Unified Diff: sdk/lib/html/scripts/htmldartgenerator.py

Issue 11469039: Make ScriptProcessorNode not a proper event (because it isn't). This fixes the last of the static a… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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: sdk/lib/html/scripts/htmldartgenerator.py
diff --git a/sdk/lib/html/scripts/htmldartgenerator.py b/sdk/lib/html/scripts/htmldartgenerator.py
index d5d563013191482fce784a027bb206d0cd08c5fa..ef64f256d79d595a05fa9150355a396f95c89d93 100644
--- a/sdk/lib/html/scripts/htmldartgenerator.py
+++ b/sdk/lib/html/scripts/htmldartgenerator.py
@@ -5,6 +5,7 @@
"""This module provides shared functionality for the system to generate
dart:html APIs from the IDL database."""
+from htmleventgenerator import use_idl_event_style
from generator import AnalyzeOperation, ConstantOutputOrder, \
DartDomNameOfAttribute, FindMatchingAttribute, IsDartCollectionType, \
@@ -58,7 +59,7 @@ class HtmlDartGenerator(object):
self.AddConstant(const)
for attr in sorted(interface.attributes, ConstantOutputOrder):
- if attr.type.id != 'EventListener':
+ if attr.type.id != 'EventListener' or interface.id in use_idl_event_style:
self.AddAttribute(attr, declare_only)
# The implementation should define an indexer if the interface directly
« no previous file with comments | « no previous file | sdk/lib/html/scripts/htmleventgenerator.py » ('j') | sdk/lib/html/scripts/htmleventgenerator.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698