| Index: content/browser/android/content_view_core_impl.cc
|
| diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc
|
| index 474e99536851d6b9c8e2de9aa1644b96243cda30..9a5671494a968f0128e96bccd01f2b13def914e2 100644
|
| --- a/content/browser/android/content_view_core_impl.cc
|
| +++ b/content/browser/android/content_view_core_impl.cc
|
| @@ -16,6 +16,7 @@
|
| #include "base/values.h"
|
| #include "cc/layers/layer.h"
|
| #include "cc/output/begin_frame_args.h"
|
| +#include "content/browser/android/content_video_view.h"
|
| #include "content/browser/android/interstitial_page_delegate_android.h"
|
| #include "content/browser/android/load_url_params.h"
|
| #include "content/browser/android/touch_point.h"
|
| @@ -330,6 +331,7 @@ void ContentViewCoreImpl::OnShow(JNIEnv* env, jobject obj) {
|
|
|
| void ContentViewCoreImpl::Show() {
|
| GetWebContents()->WasShown();
|
| + ResumeVideo();
|
| }
|
|
|
| void ContentViewCoreImpl::Hide() {
|
| @@ -341,6 +343,13 @@ void ContentViewCoreImpl::PauseVideo() {
|
| RenderViewHost* host = web_contents_->GetRenderViewHost();
|
| if (host)
|
| host->Send(new ViewMsg_PauseVideo(host->GetRoutingID()));
|
| + if (ContentVideoView::GetInstance())
|
| + ContentVideoView::GetInstance()->SuspendFullscreen();
|
| +}
|
| +
|
| +void ContentViewCoreImpl::ResumeVideo() {
|
| + if (ContentVideoView::GetInstance())
|
| + ContentVideoView::GetInstance()->ResumeFullscreenIfSuspended();
|
| }
|
|
|
| void ContentViewCoreImpl::OnTabCrashed() {
|
|
|