Merge pull request #3877 from bbondy/master
Add media play events to webview
This commit is contained in:
commit
144b73c267
9 changed files with 38 additions and 1 deletions
|
@ -457,6 +457,14 @@ void WebContents::PluginCrashed(const base::FilePath& plugin_path,
|
|||
Emit("plugin-crashed", info.name, info.version);
|
||||
}
|
||||
|
||||
void WebContents::MediaStartedPlaying() {
|
||||
Emit("media-started-playing");
|
||||
}
|
||||
|
||||
void WebContents::MediaPaused() {
|
||||
Emit("media-paused");
|
||||
}
|
||||
|
||||
void WebContents::DocumentLoadedInFrame(
|
||||
content::RenderFrameHost* render_frame_host) {
|
||||
if (!render_frame_host->GetParent())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue