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

Unified Diff: client/dom/scripts/idlnode.py

Issue 9403004: Wrapperless dart:html generator (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Final version to check in. changes generator script but doesn't check in an active version of the … Created 8 years, 10 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 | « client/dom/scripts/generator.py ('k') | client/dom/scripts/idlnode_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/dom/scripts/idlnode.py
diff --git a/client/dom/scripts/idlnode.py b/client/dom/scripts/idlnode.py
index 356c77f1f262fc4081501e1b353e35bc9dae8acf..a4a54bea734a34edf48d104fbea8480f014cf9a9 100755
--- a/client/dom/scripts/idlnode.py
+++ b/client/dom/scripts/idlnode.py
@@ -351,7 +351,21 @@ class IDLInterface(IDLNode):
self.is_supplemental = 'Supplemental' in self.ext_attrs
self.is_no_interface_object = 'NoInterfaceObject' in self.ext_attrs
self.is_fc_suppressed = 'Suppressed' in self.ext_attrs
+ self.javascript_binding_name = self.id
+ def has_attribute(self, candidate):
+ for attribute in self.attributes:
+ if attribute.id == candidate.id and attribute.is_fc_getter == candidate.is_fc_getter and attribute.is_fc_setter == candidate.is_fc_setter:
+ return True
+ return False
+
+ def merge(self, other):
+ self.operations.extend(other.operations)
+ for attribute in other.attributes:
+ if not self.has_attribute(attribute):
+ self.attributes.append(attribute)
+
+ self.constants.extend(other.constants)
class IDLParentInterface(IDLNode):
"""This IDLNode specialization is for 'Interface Child : Parent {}'
« no previous file with comments | « client/dom/scripts/generator.py ('k') | client/dom/scripts/idlnode_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698