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