mirror of
https://github.com/electron/electron.git
synced 2026-01-28 16:58:21 -05:00
OnAudioStateChanged doesn't take a WebContents
This commit is contained in:
committed by
Aleksei Kuzmin
parent
517d38f191
commit
948fe2107e
@@ -762,8 +762,7 @@ content::JavaScriptDialogManager* WebContents::GetJavaScriptDialogManager(
|
||||
return dialog_manager_.get();
|
||||
}
|
||||
|
||||
void WebContents::OnAudioStateChanged(content::WebContents* web_contents,
|
||||
bool audible) {
|
||||
void WebContents::OnAudioStateChanged(bool audible) {
|
||||
Emit("-audio-state-changed", audible);
|
||||
}
|
||||
|
||||
|
||||
@@ -358,8 +358,7 @@ class WebContents : public mate::TrackableObject<WebContents>,
|
||||
const content::BluetoothChooser::EventHandler& handler) override;
|
||||
content::JavaScriptDialogManager* GetJavaScriptDialogManager(
|
||||
content::WebContents* source) override;
|
||||
void OnAudioStateChanged(content::WebContents* web_contents,
|
||||
bool audible) override;
|
||||
void OnAudioStateChanged(bool audible) override;
|
||||
|
||||
// content::WebContentsObserver:
|
||||
void BeforeUnloadFired(const base::TimeTicks& proceed_time) override;
|
||||
|
||||
Reference in New Issue
Block a user