mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 658909 - Add a new, much simpler API for getting WNs from JS objects. r=mrbkap
This commit is contained in:
parent
83c251ef6c
commit
97e20a07a5
@ -2689,6 +2689,11 @@ public:
|
|||||||
void
|
void
|
||||||
SetSet(XPCNativeSet* set) {XPCAutoLock al(GetLock()); mSet = set;}
|
SetSet(XPCNativeSet* set) {XPCAutoLock al(GetLock()); mSet = set;}
|
||||||
|
|
||||||
|
static XPCWrappedNative* Get(JSObject *obj) {
|
||||||
|
MOZ_ASSERT(IS_WN_WRAPPER(obj));
|
||||||
|
return (XPCWrappedNative*)js::GetObjectPrivate(obj);
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
inline void
|
inline void
|
||||||
ExpireWrapper()
|
ExpireWrapper()
|
||||||
|
Loading…
Reference in New Issue
Block a user