Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4097)

Unified Diff: chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java

Issue 13669003: Refactoring ContentVideoViewContextDelegate.java (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix tests Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/findbugs_filter/findbugs_known_bugs.txt ('k') | content/browser/android/content_video_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java
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 25582462a18b24cc530176254ae0d58a4c32c48d..0675d1ffe81ebb14133a114e5b163e2547af2a3c 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
@@ -13,10 +13,12 @@ import android.view.KeyEvent;
import org.chromium.base.ChromiumActivity;
import org.chromium.chrome.browser.DevToolsServer;
-import org.chromium.content.browser.ActivityContentVideoViewDelegate;
+import org.chromium.content.browser.ActivityContentVideoViewClient;
import org.chromium.content.browser.AndroidBrowserProcess;
import org.chromium.content.browser.ContentVideoView;
+import org.chromium.content.browser.ContentVideoViewClient;
import org.chromium.content.browser.ContentView;
+import org.chromium.content.browser.ContentViewClient;
import org.chromium.content.browser.DeviceUtils;
import org.chromium.content.common.CommandLine;
import org.chromium.content.common.ProcessInitException;
@@ -59,9 +61,6 @@ 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);
}
@@ -144,6 +143,12 @@ public class ChromiumTestShellActivity extends ChromiumActivity {
*/
public void createTab(String url) {
mTabManager.createTab(url);
+ getActiveContentView().setContentViewClient(new ContentViewClient() {
+ @Override
+ public ContentVideoViewClient getContentVideoViewClient() {
+ return new ActivityContentVideoViewClient(ChromiumTestShellActivity.this);
+ }
+ });
}
private void waitForDebuggerIfNeeded() {
« no previous file with comments | « build/android/findbugs_filter/findbugs_known_bugs.txt ('k') | content/browser/android/content_video_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698