Checked in some bug fixes from michaelp to make fullscreen plugins work better/more often
This commit is contained in:
Родитель
406fcd2c21
Коммит
aa29139e37
|
@ -526,9 +526,16 @@ nsPluginHostImpl::FindProxyForURL(const char* url, char* *result)
|
|||
|
||||
nsresult nsPluginHostImpl :: Init(void)
|
||||
{
|
||||
nsresult rv;
|
||||
nsresult rv;
|
||||
nsISupports *object;
|
||||
|
||||
rv = nsMalloc::Create(nsnull, kIMallocIID, (void **)&mMalloc);
|
||||
rv = nsMalloc::Create(nsnull, kIMallocIID, (void **)&object);
|
||||
|
||||
if (NS_OK == rv)
|
||||
{
|
||||
rv = object->QueryInterface(kIMallocIID, (void **)&mMalloc);
|
||||
NS_RELEASE(object);
|
||||
}
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
|
|
@ -78,11 +78,13 @@ NS_IMETHODIMP nsPluginInstancePeerImpl :: SetValue(nsPluginInstancePeerVariable
|
|||
|
||||
NS_IMETHODIMP nsPluginInstancePeerImpl :: GetMIMEType(nsMIMEType *result)
|
||||
{
|
||||
*result = "model/vrml";
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsPluginInstancePeerImpl :: GetMode(nsPluginMode *result)
|
||||
{
|
||||
*result = nsPluginMode_Full;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -99,6 +101,8 @@ NS_IMETHODIMP nsPluginInstancePeerImpl :: ShowStatus(const char* message)
|
|||
NS_IMETHODIMP nsPluginInstancePeerImpl :: GetAttributes(PRUint16& n, const char*const*& names, const char*const*& values)
|
||||
{
|
||||
n = 0;
|
||||
names = nsnull;
|
||||
values = nsnull;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -526,9 +526,16 @@ nsPluginHostImpl::FindProxyForURL(const char* url, char* *result)
|
|||
|
||||
nsresult nsPluginHostImpl :: Init(void)
|
||||
{
|
||||
nsresult rv;
|
||||
nsresult rv;
|
||||
nsISupports *object;
|
||||
|
||||
rv = nsMalloc::Create(nsnull, kIMallocIID, (void **)&mMalloc);
|
||||
rv = nsMalloc::Create(nsnull, kIMallocIID, (void **)&object);
|
||||
|
||||
if (NS_OK == rv)
|
||||
{
|
||||
rv = object->QueryInterface(kIMallocIID, (void **)&mMalloc);
|
||||
NS_RELEASE(object);
|
||||
}
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
|
|
@ -78,11 +78,13 @@ NS_IMETHODIMP nsPluginInstancePeerImpl :: SetValue(nsPluginInstancePeerVariable
|
|||
|
||||
NS_IMETHODIMP nsPluginInstancePeerImpl :: GetMIMEType(nsMIMEType *result)
|
||||
{
|
||||
*result = "model/vrml";
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsPluginInstancePeerImpl :: GetMode(nsPluginMode *result)
|
||||
{
|
||||
*result = nsPluginMode_Full;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -99,6 +101,8 @@ NS_IMETHODIMP nsPluginInstancePeerImpl :: ShowStatus(const char* message)
|
|||
NS_IMETHODIMP nsPluginInstancePeerImpl :: GetAttributes(PRUint16& n, const char*const*& names, const char*const*& values)
|
||||
{
|
||||
n = 0;
|
||||
names = nsnull;
|
||||
values = nsnull;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче