return values of the correct type, other cleanup. no bug. r/sr=jst

This commit is contained in:
joshmoz%gmail.com 2007-03-20 02:35:56 +00:00
parent c8ddb17574
commit 707362d6e0
3 changed files with 7 additions and 7 deletions

View File

@ -2001,7 +2001,7 @@ _setvalue(NPP npp, NPPVariable variable, void *result)
// we should keep backward compatibility with 4x where the // we should keep backward compatibility with 4x where the
// actual pointer value is checked rather than its content // actual pointer value is checked rather than its content
// wnen passing booleans // when passing booleans
case NPPVpluginWindowBool: { case NPPVpluginWindowBool: {
NPBool bWindowless = (result == nsnull); NPBool bWindowless = (result == nsnull);
return inst->SetWindowless(bWindowless); return inst->SetWindowless(bWindowless);

View File

@ -1562,18 +1562,18 @@ nsresult ns4xPluginInstance::GetCallbacks(const NPPluginFuncs ** aCallbacks)
//////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////
nsresult ns4xPluginInstance::SetWindowless(PRBool aWindowless) NPError ns4xPluginInstance::SetWindowless(PRBool aWindowless)
{ {
mWindowless = aWindowless; mWindowless = aWindowless;
return NS_OK; return NPERR_NO_ERROR;
} }
//////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////
nsresult ns4xPluginInstance::SetTransparent(PRBool aTransparent) NPError ns4xPluginInstance::SetTransparent(PRBool aTransparent)
{ {
mTransparent = aTransparent; mTransparent = aTransparent;
return NS_OK; return NPERR_NO_ERROR;
} }
//////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////

View File

@ -118,9 +118,9 @@ public:
*/ */
nsresult GetCallbacks(const NPPluginFuncs ** aCallbacks); nsresult GetCallbacks(const NPPluginFuncs ** aCallbacks);
nsresult SetWindowless(PRBool aWindowless); NPError SetWindowless(PRBool aWindowless);
nsresult SetTransparent(PRBool aTransparent); NPError SetTransparent(PRBool aTransparent);
nsresult NewNotifyStream(nsIPluginStreamListener** listener, nsresult NewNotifyStream(nsIPluginStreamListener** listener,
void* notifyData, void* notifyData,