Add MediaStoppedReason to WCO

https://chromium-review.googlesource.com/c/chromium/src/+/758583
This commit is contained in:
deepak1556 2018-04-11 20:57:14 +05:30 committed by Samuel Attard
parent 100291ec42
commit 2ea26cd4d7
2 changed files with 8 additions and 4 deletions

View file

@ -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");
}

View file

@ -374,8 +374,10 @@ class WebContents : public mate::TrackableObject<WebContents>,
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: