mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 862983 - HeaderFile annotation for WebIDL interfaces, r=bz
--HG-- extra : rebase_source : f096c032342b71aeb42999f80241697c79037b7c
This commit is contained in:
parent
b589a2e03c
commit
0cfa77f832
@ -228,10 +228,6 @@ DOMInterfaces = {
|
||||
'resultNotAddRefed': [ 'delayTime' ],
|
||||
}],
|
||||
|
||||
'DesktopNotificationCenter': {
|
||||
'headerFile': 'mozilla/dom/DesktopNotification.h',
|
||||
},
|
||||
|
||||
'DeviceMotionEvent': {
|
||||
'nativeType': 'nsDOMDeviceMotionEvent',
|
||||
},
|
||||
|
@ -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"
|
||||
|
@ -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:
|
||||
|
@ -6,6 +6,7 @@
|
||||
|
||||
interface MozObserver;
|
||||
|
||||
[HeaderFile="mozilla/dom/DesktopNotification.h"]
|
||||
interface DesktopNotificationCenter
|
||||
{
|
||||
[Creator]
|
||||
|
Loading…
Reference in New Issue
Block a user