Bug 862983 - HeaderFile annotation for WebIDL interfaces, r=bz

--HG--
extra : rebase_source : f096c032342b71aeb42999f80241697c79037b7c
This commit is contained in:
Olli Pettay 2013-04-17 23:29:09 +03:00
parent b589a2e03c
commit 0cfa77f832
4 changed files with 5 additions and 5 deletions

View File

@ -228,10 +228,6 @@ DOMInterfaces = {
'resultNotAddRefed': [ 'delayTime' ],
}],
'DesktopNotificationCenter': {
'headerFile': 'mozilla/dom/DesktopNotification.h',
},
'DeviceMotionEvent': {
'nativeType': 'nsDOMDeviceMotionEvent',
},

View File

@ -226,6 +226,8 @@ class Descriptor(DescriptorProvider):
else:
if self.workers:
headerDefault = "mozilla/dom/workers/bindings/%s.h" % ifaceName
elif not self.interface.isExternal() and self.interface.getExtendedAttribute("HeaderFile"):
headerDefault = self.interface.getExtendedAttribute("HeaderFile")[0]
else:
headerDefault = self.nativeType
headerDefault = headerDefault.replace("::", "/") + ".h"

View File

@ -897,7 +897,8 @@ class IDLInterface(IDLObjectWithScope):
elif (identifier == "PrefControlled" or
identifier == "Pref" or
identifier == "NeedNewResolve" or
identifier == "JSImplementation"):
identifier == "JSImplementation" or
identifier == "HeaderFile"):
# Known attributes that we don't need to do anything with here
pass
else:

View File

@ -6,6 +6,7 @@
interface MozObserver;
[HeaderFile="mozilla/dom/DesktopNotification.h"]
interface DesktopNotificationCenter
{
[Creator]