diff options
author | yongsheng.zhu@intel.com <yongsheng.zhu@intel.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-25 02:16:55 +0000 |
---|---|---|
committer | yongsheng.zhu@intel.com <yongsheng.zhu@intel.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-25 02:16:55 +0000 |
commit | 0ad9d11da42e810d56d0aa642b5764d24ca9b7b1 (patch) | |
tree | a249851ccee0116831c19c883308612c8c48f827 /chrome/android | |
parent | aa84b4e722f3140f49dfc859059fc24b121b493a (diff) | |
download | chromium_src-0ad9d11da42e810d56d0aa642b5764d24ca9b7b1.zip chromium_src-0ad9d11da42e810d56d0aa642b5764d24ca9b7b1.tar.gz chromium_src-0ad9d11da42e810d56d0aa642b5764d24ca9b7b1.tar.bz2 |
Enable fullscreen video in test shell
Use ContentVideoView to play video. The patch is from
fengx.dai@intel.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/12441012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190324 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/android')
-rw-r--r-- | chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java b/chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java index 00682ad..e580831 100644 --- a/chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java +++ b/chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java @@ -15,7 +15,9 @@ import org.chromium.base.ChromiumActivity; import org.chromium.chrome.browser.DevToolsServer; import org.chromium.chrome.browser.TabBase; import org.chromium.content.app.LibraryLoader; +import org.chromium.content.browser.ActivityContentVideoViewDelegate; import org.chromium.content.browser.AndroidBrowserProcess; +import org.chromium.content.browser.ContentVideoView; import org.chromium.content.browser.ContentView; import org.chromium.content.browser.DeviceUtils; import org.chromium.content.common.CommandLine; @@ -59,6 +61,9 @@ public class ChromiumTestShellActivity extends ChromiumActivity { mWindow.restoreInstanceState(savedInstanceState); mTabManager.setWindow(mWindow); + ContentVideoView.registerContentVideoViewContextDelegate( + new ActivityContentVideoViewDelegate(this)); + mDevToolsServer = new DevToolsServer(true, "chromium_testshell_devtools_remote"); mDevToolsServer.setRemoteDebuggingEnabled(true); } |