Add MediaStoppedReason to WCO
https://chromium-review.googlesource.com/c/chromium/src/+/758583
This commit is contained in:
parent
100291ec42
commit
2ea26cd4d7
2 changed files with 8 additions and 4 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue