void MediaElementSession::addBehaviorRestriction(BehaviorRestrictions restriction) { LOG(Media, "MediaElementSession::addBehaviorRestriction - adding %s", restrictionName(restriction).utf8().data()); m_restrictions |= restriction; if (restriction & OverrideUserGestureRequirementForMainContent) m_mainContentCheckTimer.startRepeating(elementMainContentCheckInterval); }
void MediaElementSession::removeBehaviorRestriction(BehaviorRestrictions restriction) { LOG(Media, "MediaElementSession::removeBehaviorRestriction - removing %s", restrictionName(restriction).utf8().data()); m_restrictions &= ~restriction; }
void HTMLMediaSession::addBehaviorRestriction(BehaviorRestrictions restriction) { LOG(Media, "HTMLMediaSession::addBehaviorRestriction - adding %s", restrictionName(restriction)); m_restrictions |= restriction; }
void HTMLMediaSession::removeBehaviorRestriction(BehaviorRestrictions restriction) { LOG(Media, "HTMLMediaSession::removeBehaviorRestriction - removing %s", restrictionName(restriction)); m_restrictions &= ~restriction; }
void MediaElementSession::addBehaviorRestriction(BehaviorRestrictions restriction) { LOG(Media, "MediaElementSession::addBehaviorRestriction - adding %s", restrictionName(restriction).utf8().data()); m_restrictions |= restriction; }