mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-01 05:43:46 +00:00
Bug 952375. Include headers for external interfaces in UnionConversions.h. r=dzbarsky
This commit is contained in:
parent
5704575923
commit
8ddd74e1a2
@ -878,7 +878,15 @@ def UnionConversions(descriptors, dictionaries, callbacks, config):
|
|||||||
if f.isSpiderMonkeyInterface():
|
if f.isSpiderMonkeyInterface():
|
||||||
headers.add("jsfriendapi.h")
|
headers.add("jsfriendapi.h")
|
||||||
headers.add("mozilla/dom/TypedArray.h")
|
headers.add("mozilla/dom/TypedArray.h")
|
||||||
elif not f.inner.isExternal():
|
elif f.inner.isExternal():
|
||||||
|
providers = getRelevantProviders(descriptor, config)
|
||||||
|
for p in providers:
|
||||||
|
try:
|
||||||
|
typeDesc = p.getDescriptor(f.inner.identifier.name)
|
||||||
|
except NoSuchDescriptorError:
|
||||||
|
continue
|
||||||
|
headers.add(typeDesc.headerFile)
|
||||||
|
else:
|
||||||
headers.add(CGHeaders.getDeclarationFilename(f.inner))
|
headers.add(CGHeaders.getDeclarationFilename(f.inner))
|
||||||
# Check for whether we have a possibly-XPConnect-implemented
|
# Check for whether we have a possibly-XPConnect-implemented
|
||||||
# interface. If we do, the right descriptor will come from
|
# interface. If we do, the right descriptor will come from
|
||||||
|
Loading…
Reference in New Issue
Block a user