Bug 996785 - Move global CPOW functions to top level (r=mrbkap)

This commit is contained in:
Bill McCloskey
2014-05-16 16:40:35 -07:00
parent 73a90b41a2
commit 0f7f7b7bb9
5 changed files with 33 additions and 22 deletions

View File

@@ -68,16 +68,12 @@ class JavaScriptParent
void drop(JSObject *obj);
static bool IsCPOW(JSObject *obj);
static nsresult InstanceOf(JSObject *obj, const nsID *id, bool *bp);
nsresult instanceOf(JSObject *obj, const nsID *id, bool *bp);
/*
* Check that |obj| is a DOM wrapper whose prototype chain contains
* |prototypeID| at depth |depth|.
*/
static bool DOMInstanceOf(JSContext *cx, JSObject *obj, int prototypeID, int depth, bool *bp);
bool domInstanceOf(JSContext *cx, JSObject *obj, int prototypeID, int depth, bool *bp);
mozilla::ipc::IProtocol*
@@ -103,6 +99,15 @@ class JavaScriptParent
bool inactive_;
};
bool
IsCPOW(JSObject *obj);
nsresult
InstanceOf(JSObject *obj, const nsID *id, bool *bp);
bool
DOMInstanceOf(JSContext *cx, JSObject *obj, int prototypeID, int depth, bool *bp);
} // jsipc
} // mozilla