Add API to mute/unmute a page.
authoradachan@apple.com <adachan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 29 Oct 2014 18:56:42 +0000 (18:56 +0000)
committeradachan@apple.com <adachan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 29 Oct 2014 18:56:42 +0000 (18:56 +0000)
commit827f36e7fe4e25e2df7772ffadee721fbde15dce
treefa9b6bd18387ce5ed20b2adab648e66b0119e797
parent6dc8d825e63aa6d64ed1ba8607010bc1e02a882a
Add API to mute/unmute a page.
https://bugs.webkit.org/show_bug.cgi?id=138150

Reviewed by Eric Carlson.

No new tests, since it's difficult to test whether the Page has indeed been muted.

* dom/Document.cpp:
(WebCore::Document::setMuted):
Go through each AudioProducer and call setMuted() on it.
* dom/Document.h:
* page/AudioProducer.h:
Add setMuted(bool). HTMLMediaElement, the only derived class of AudioProducer so far,
has already implemented setMuted().
* page/Page.cpp:
(WebCore::Page::setMuted):
Go through all its frames and call setMuted() on each frame's Document.
* page/Page.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@175336 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/dom/Document.cpp
Source/WebCore/dom/Document.h
Source/WebCore/page/AudioProducer.h
Source/WebCore/page/Page.cpp
Source/WebCore/page/Page.h