diff options
author | Josh Matthews <josh@joshmatthews.net> | 2016-03-18 13:13:02 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2016-04-29 11:03:15 -0400 |
commit | bb47f72f2502a7f2d08735b4a3f4bd460f601236 (patch) | |
tree | 384ba84904af4b8bdd2cdd66cd35f82a39586110 /components/script/dom/bindings/codegen/Configuration.py | |
parent | 224bcd7057c9b5aeb8f0064de9e1d0551b75a01b (diff) | |
download | servo-bb47f72f2502a7f2d08735b4a3f4bd460f601236.tar.gz servo-bb47f72f2502a7f2d08735b4a3f4bd460f601236.zip |
Support controlling the visibility of WebIDL interfaces via the Pref annotation.
Diffstat (limited to 'components/script/dom/bindings/codegen/Configuration.py')
-rw-r--r-- | components/script/dom/bindings/codegen/Configuration.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/bindings/codegen/Configuration.py b/components/script/dom/bindings/codegen/Configuration.py index 99727f8acc0..9a1c5e2f4df 100644 --- a/components/script/dom/bindings/codegen/Configuration.py +++ b/components/script/dom/bindings/codegen/Configuration.py @@ -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 |