Implement WebContenstAudioMuted in AtomBrowserClient
This commit is contained in:
parent
54f06b0ba9
commit
4f660f3e6f
3 changed files with 9 additions and 11 deletions
|
@ -303,6 +303,13 @@ void AtomBrowserClient::WebNotificationAllowed(
|
|||
permission_helper->RequestWebNotificationPermission(callback);
|
||||
}
|
||||
|
||||
bool AtomBrowserClient::WebContentsAudioMuted(
|
||||
int render_process_id) {
|
||||
content::WebContents* web_contents =
|
||||
WebContentsPreferences::GetWebContentsFromProcessID(render_process_id);
|
||||
return web_contents->IsAudioMuted();
|
||||
}
|
||||
|
||||
void AtomBrowserClient::RenderProcessHostDestroyed(
|
||||
content::RenderProcessHost* host) {
|
||||
int process_id = host->GetID();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue