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

Unified Diff: tools/dom/scripts/database.py

Issue 22594012: Treat EventTarget as a secondary superclass (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/dom/idl/dart/dart.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/database.py
diff --git a/tools/dom/scripts/database.py b/tools/dom/scripts/database.py
index 11f86670cddce97fc0fd38b7dd2e874ac22160f5..624ad004688a0b30679e8477613fd889a4551200 100755
--- a/tools/dom/scripts/database.py
+++ b/tools/dom/scripts/database.py
@@ -256,10 +256,6 @@ class Database(object):
def walk(parents):
for parent in parents:
parent_name = parent.type.id
- if parent_name == 'EventTarget':
- # Currently EventTarget is implemented as a mixin, not a proper
- # super interface---ignore its members.
- continue
if IsDartCollectionType(parent_name):
result.append(parent_name)
continue
@@ -271,7 +267,7 @@ class Database(object):
result = []
if interface.parents:
parent = interface.parents[0]
- if IsPureInterface(parent.type.id):
+ if IsPureInterface(parent.type.id) or parent.type.id == 'EventTarget':
walk(interface.parents)
else:
walk(interface.parents[1:])
« no previous file with comments | « tools/dom/idl/dart/dart.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698