mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-21 07:47:32 +09:00
PiP initial commit
This commit is contained in:
parent
5ec3ae4a4c
commit
9a1d4edaa9
14 changed files with 377 additions and 1 deletions
|
|
@ -5183,6 +5183,15 @@ bool HTMLMediaElement::IsActive() const
|
|||
return ownerDoc && ownerDoc->IsActive() && ownerDoc->IsVisible();
|
||||
}
|
||||
|
||||
void HTMLMediaElement::SetMozPictureInPicture(bool aEnabled)
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
mPictureInPicture = aEnabled;
|
||||
if (mDecoder && !mDecoder->IsShutdown()) {
|
||||
mDecoder->NotifyOwnerActivityChanged(!IsHidden());
|
||||
}
|
||||
}
|
||||
|
||||
bool HTMLMediaElement::IsHidden() const
|
||||
{
|
||||
nsIDocument* ownerDoc;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue