Bug 1242874 - part3 : implement different suspended methods. r=baku, r=jwwang

MozReview-Commit-ID: HHYX29gbLwk
This commit is contained in:
Alastor Wu
2016-05-03 09:52:38 +08:00
parent 14ade11bab
commit 5704a47317
13 changed files with 369 additions and 148 deletions

View File

@@ -1851,7 +1851,9 @@ nsNPAPIPluginInstance::WindowVolumeChanged(float aVolume, bool aMuted)
NS_IMETHODIMP
nsNPAPIPluginInstance::WindowSuspendChanged(nsSuspendedTypes aSuspend)
{
// TODO : implementation.
// It doesn't support suspended, so we just do something like mute/unmute.
WindowVolumeChanged(1.0, /* useless */
aSuspend != nsISuspendedTypes::NONE_SUSPENDED);
return NS_OK;
}