Merge pull request #3877 from bbondy/master

Add media play events to webview
This commit is contained in:
Cheng Zhao 2015-12-21 18:22:30 +08:00
commit 144b73c267
9 changed files with 38 additions and 1 deletions

View file

@ -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())