mirror of
https://github.com/electron/electron.git
synced 2026-01-28 08:48:14 -05:00
Add MediaStoppedReason to WCO
https://chromium-review.googlesource.com/c/chromium/src/+/758583
This commit is contained in:
committed by
Samuel Attard
parent
100291ec42
commit
2ea26cd4d7
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user