Checked in some bug fixes from michaelp to make fullscreen plugins work better/more often

This commit is contained in:
kipp%netscape.com 1998-09-09 23:52:16 +00:00
Родитель 406fcd2c21
Коммит aa29139e37
4 изменённых файлов: 26 добавлений и 4 удалений

Просмотреть файл

@ -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;
}