Support controlling the visibility of WebIDL interfaces via the Pref annotation.

This commit is contained in:
Josh Matthews 2016-03-18 13:13:02 -04:00
parent 224bcd7057
commit bb47f72f25
2 changed files with 65 additions and 4 deletions

View file

@ -351,6 +351,9 @@ class Descriptor(DescriptorProvider):
assert self.interface.hasInterfaceObject()
return self.interface.isCallback() or self.hasDescendants()
def isExposedConditionally(self):
return self.interface.isExposedConditionally()
def isGlobal(self):
"""
Returns true if this is the primary interface for a global object