OnAudioStateChanged doesn't take a WebContents

This commit is contained in:
Jeremy Apthorp 2018-09-14 17:18:14 -07:00 committed by Aleksei Kuzmin
parent 517d38f191
commit 948fe2107e
2 changed files with 2 additions and 4 deletions

View file

@ -762,8 +762,7 @@ content::JavaScriptDialogManager* WebContents::GetJavaScriptDialogManager(
return dialog_manager_.get(); return dialog_manager_.get();
} }
void WebContents::OnAudioStateChanged(content::WebContents* web_contents, void WebContents::OnAudioStateChanged(bool audible) {
bool audible) {
Emit("-audio-state-changed", audible); Emit("-audio-state-changed", audible);
} }

View file

@ -358,8 +358,7 @@ class WebContents : public mate::TrackableObject<WebContents>,
const content::BluetoothChooser::EventHandler& handler) override; const content::BluetoothChooser::EventHandler& handler) override;
content::JavaScriptDialogManager* GetJavaScriptDialogManager( content::JavaScriptDialogManager* GetJavaScriptDialogManager(
content::WebContents* source) override; content::WebContents* source) override;
void OnAudioStateChanged(content::WebContents* web_contents, void OnAudioStateChanged(bool audible) override;
bool audible) override;
// content::WebContentsObserver: // content::WebContentsObserver:
void BeforeUnloadFired(const base::TimeTicks& proceed_time) override; void BeforeUnloadFired(const base::TimeTicks& proceed_time) override;