Bug 827486, part 3 - add dependencies for CGBindingImplClass. r=bz
authorAndrew McCreight <amccreight@mozilla.com>
Mon, 18 Mar 2013 16:05:06 -0700
changeset 131755 4958713cfe14d747b5c76ff5ec6b0a7c15235714
parent 131754 0201a604e8e6150e7adc963d69c37105da822aff
child 131756 2f6ae75fb1244478cb3b57155b8409d203805ccb
push idunknown
push userunknown
push dateunknown
reviewersbz
bugs827486
milestone22.0a1
Bug 827486, part 3 - add dependencies for CGBindingImplClass. r=bz
dom/bindings/Codegen.py
--- a/dom/bindings/Codegen.py
+++ b/dom/bindings/Codegen.py
@@ -7660,16 +7660,17 @@ class CGBindingImplClass(CGClass):
     Common codegen for generating a C++ implementation of a WebIDL interface
     """
     def __init__(self, descriptor, cgMethod, cgGetter, cgSetter):
         """
         cgMethod, cgGetter and cgSetter are classes used to codegen methods,
         getters and setters.
         """
         self.descriptor = descriptor
+        self._deps = descriptor.interface.getDeps()
 
         iface = descriptor.interface
 
         self.methodDecls = []
         def appendMethod(m):
             sigs = m.signatures()
             for s in sigs[:-1]:
                 # Don't put an empty line after overloads, until we
@@ -7775,16 +7776,20 @@ class CGBindingImplClass(CGClass):
 
     def getGetParentObjectReturnType(self):
         return ("// TODO: return something sensible here, and change the return type\n"
                 "%s*" % self.descriptor.name)
 
     def getGetParentObjectBody(self):
         return None
 
+    def deps(self):
+        return self._deps
+
+
 class CGExampleClass(CGBindingImplClass):
     """
     Codegen for the actual example class implementation for this descriptor
     """
     def __init__(self, descriptor):
         CGBindingImplClass.__init__(self, descriptor, CGExampleMethod, CGExampleGetter, CGExampleSetter)
 
         extradeclarations=(