chore: refactor webContents module isCurrentlyAudible api spec (#14410)

This commit is contained in:
Robo 2018-09-06 02:30:05 +05:30 committed by Charles Kerr
parent 4d23e200f0
commit 8441d09a18
4 changed files with 25 additions and 33 deletions

View file

@ -754,6 +754,11 @@ content::JavaScriptDialogManager* WebContents::GetJavaScriptDialogManager(
return dialog_manager_.get();
}
void WebContents::OnAudioStateChanged(content::WebContents* web_contents,
bool audible) {
Emit("-audio-state-changed", audible);
}
void WebContents::BeforeUnloadFired(const base::TimeTicks& proceed_time) {
// Do nothing, we override this method just to avoid compilation error since
// there are two virtual functions named BeforeUnloadFired.