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

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: renamed non-event variable in script 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
« no previous file with comments | « no previous file | sdk/lib/html/scripts/htmleventgenerator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..d894e8b4f25589474ceded6fdd7bcf5670cab0f6 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 html_override_event_classes
from generator import AnalyzeOperation, ConstantOutputOrder, \
DartDomNameOfAttribute, FindMatchingAttribute, IsDartCollectionType, \
@@ -58,7 +59,8 @@ 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 html_override_event_classes):
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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698