mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
return values of the correct type, other cleanup. no bug. r/sr=jst
This commit is contained in:
parent
c8ddb17574
commit
707362d6e0
@ -2001,7 +2001,7 @@ _setvalue(NPP npp, NPPVariable variable, void *result)
|
||||
|
||||
// we should keep backward compatibility with 4x where the
|
||||
// actual pointer value is checked rather than its content
|
||||
// wnen passing booleans
|
||||
// when passing booleans
|
||||
case NPPVpluginWindowBool: {
|
||||
NPBool bWindowless = (result == nsnull);
|
||||
return inst->SetWindowless(bWindowless);
|
||||
|
@ -1562,18 +1562,18 @@ nsresult ns4xPluginInstance::GetCallbacks(const NPPluginFuncs ** aCallbacks)
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
nsresult ns4xPluginInstance::SetWindowless(PRBool aWindowless)
|
||||
NPError ns4xPluginInstance::SetWindowless(PRBool aWindowless)
|
||||
{
|
||||
mWindowless = aWindowless;
|
||||
return NS_OK;
|
||||
return NPERR_NO_ERROR;
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
nsresult ns4xPluginInstance::SetTransparent(PRBool aTransparent)
|
||||
NPError ns4xPluginInstance::SetTransparent(PRBool aTransparent)
|
||||
{
|
||||
mTransparent = aTransparent;
|
||||
return NS_OK;
|
||||
return NPERR_NO_ERROR;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
@ -118,9 +118,9 @@ public:
|
||||
*/
|
||||
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,
|
||||
void* notifyData,
|
||||
|
Loading…
Reference in New Issue
Block a user