Bug 694769 - Remove nsIScriptContext::GetScriptGlobal in favour of GetGlobalJSObject; r=smaug
This commit is contained in:
@@ -100,8 +100,8 @@ NS_HandleScriptError(nsIScriptGlobalObject *aScriptGlobal,
|
||||
|
||||
|
||||
#define NS_ISCRIPTGLOBALOBJECT_IID \
|
||||
{ 0x4eb16819, 0x4e81, 0x406e, \
|
||||
{ 0x93, 0x05, 0x6f, 0x30, 0xfc, 0xd2, 0x62, 0x4a } }
|
||||
{ 0x08f73284, 0x26e3, 0x4fa6, \
|
||||
{ 0xbf, 0x89, 0x83, 0x26, 0xf9, 0x2a, 0x94, 0xb3 } }
|
||||
|
||||
/**
|
||||
* The global object which keeps a script context for each supported script
|
||||
@@ -128,15 +128,7 @@ public:
|
||||
*/
|
||||
virtual nsIScriptContext *GetScriptContext(PRUint32 lang) = 0;
|
||||
|
||||
/**
|
||||
* Get the opaque "global" object for the specified lang.
|
||||
*/
|
||||
virtual void *GetScriptGlobal(PRUint32 lang) = 0;
|
||||
|
||||
// Set/GetContext deprecated methods - use GetScriptContext/Global
|
||||
virtual JSObject *GetGlobalJSObject() {
|
||||
return (JSObject *)GetScriptGlobal(nsIProgrammingLanguage::JAVASCRIPT);
|
||||
}
|
||||
virtual JSObject* GetGlobalJSObject() = 0;
|
||||
|
||||
virtual nsIScriptContext *GetContext() {
|
||||
return GetScriptContext(nsIProgrammingLanguage::JAVASCRIPT);
|
||||
|
||||
Reference in New Issue
Block a user