Index: content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java |
diff --git a/content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java b/content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java |
index a4e477fb1770788cad2a1f4b71ceb1f362c11493..5d917c8d664b824da35cec4474cb551e61900fc9 100644 |
--- a/content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java |
+++ b/content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java |
@@ -13,6 +13,7 @@ import android.os.Bundle; |
import android.text.TextUtils; |
import android.util.Log; |
import android.view.KeyEvent; |
+import android.view.View; |
import android.widget.Toast; |
import org.chromium.base.MemoryPressureListener; |
@@ -131,7 +132,19 @@ public class ContentShellActivity extends Activity { |
getActiveContentView().setContentViewClient(new ContentViewClient() { |
@Override |
public ContentVideoViewClient getContentVideoViewClient() { |
- return new ActivityContentVideoViewClient(ContentShellActivity.this); |
+ return new ActivityContentVideoViewClient(ContentShellActivity.this) { |
Ted C
2013/09/30 15:54:36
Do you need to do something similar for the Chromi
|
+ @Override |
+ public void onShowCustomView(View view) { |
+ super.onShowCustomView(view); |
+ mShellManager.setOverlayVideoMode(true); |
+ } |
+ |
+ @Override |
+ public void onDestroyContentVideoView() { |
+ super.onDestroyContentVideoView(); |
+ mShellManager.setOverlayVideoMode(false); |
+ } |
+ }; |
} |
}); |
} |