diff --git a/atom/browser/api/atom_api_web_contents.cc b/atom/browser/api/atom_api_web_contents.cc index dc8ae6d801d9..3fabf4e90dd5 100644 --- a/atom/browser/api/atom_api_web_contents.cc +++ b/atom/browser/api/atom_api_web_contents.cc @@ -819,8 +819,10 @@ void WebContents::MediaStartedPlaying(const MediaPlayerInfo& video_type, Emit("media-started-playing"); } -void WebContents::MediaStoppedPlaying(const MediaPlayerInfo& video_type, - const MediaPlayerId& id) { +void WebContents::MediaStoppedPlaying( + const MediaPlayerInfo& video_type, + const MediaPlayerId& id, + content::WebContentsObserver::MediaStoppedReason reason) { Emit("media-paused"); } diff --git a/atom/browser/api/atom_api_web_contents.h b/atom/browser/api/atom_api_web_contents.h index 707b3ad07bc3..1b410938e1f6 100644 --- a/atom/browser/api/atom_api_web_contents.h +++ b/atom/browser/api/atom_api_web_contents.h @@ -374,8 +374,10 @@ class WebContents : public mate::TrackableObject, base::ProcessId plugin_pid) override; void MediaStartedPlaying(const MediaPlayerInfo& video_type, const MediaPlayerId& id) override; - void MediaStoppedPlaying(const MediaPlayerInfo& video_type, - const MediaPlayerId& id) override; + void MediaStoppedPlaying( + const MediaPlayerInfo& video_type, + const MediaPlayerId& id, + content::WebContentsObserver::MediaStoppedReason reason) override; void DidChangeThemeColor(SkColor theme_color) override; // brightray::InspectableWebContentsDelegate: