| Index: content/shell/android/java/src/org/chromium/content_shell/Shell.java
|
| diff --git a/content/shell/android/java/src/org/chromium/content_shell/Shell.java b/content/shell/android/java/src/org/chromium/content_shell/Shell.java
|
| index e2f82e34584bb68430d33a6a1396760ae116293b..b818f6958cd3714487edac0ef87531dc0716ef2f 100644
|
| --- a/content/shell/android/java/src/org/chromium/content_shell/Shell.java
|
| +++ b/content/shell/android/java/src/org/chromium/content_shell/Shell.java
|
| @@ -29,6 +29,7 @@ import org.chromium.base.annotations.JNINamespace;
|
| import org.chromium.content.browser.ActivityContentVideoViewEmbedder;
|
| import org.chromium.content.browser.ContentVideoViewEmbedder;
|
| import org.chromium.content.browser.ContentView;
|
| +import org.chromium.content.browser.ContentViewAndroidDelegate;
|
| import org.chromium.content.browser.ContentViewClient;
|
| import org.chromium.content.browser.ContentViewCore;
|
| import org.chromium.content.browser.ContentViewRenderView;
|
| @@ -36,7 +37,6 @@ import org.chromium.content_public.browser.ActionModeCallbackHelper;
|
| import org.chromium.content_public.browser.LoadUrlParams;
|
| import org.chromium.content_public.browser.NavigationController;
|
| import org.chromium.content_public.browser.WebContents;
|
| -import org.chromium.ui.base.ViewAndroidDelegate;
|
| import org.chromium.ui.base.WindowAndroid;
|
|
|
| /**
|
| @@ -68,6 +68,7 @@ public class Shell extends LinearLayout {
|
| private long mNativeShell;
|
| private ContentViewRenderView mContentViewRenderView;
|
| private WindowAndroid mWindow;
|
| + private ContentViewAndroidDelegate mViewAndroidDelegate;
|
|
|
| private boolean mLoading;
|
| private boolean mIsFullscreen;
|
| @@ -286,6 +287,10 @@ public class Shell extends LinearLayout {
|
| }
|
| }
|
|
|
| + public ContentViewAndroidDelegate getViewAndroidDelegate() {
|
| + return mViewAndroidDelegate;
|
| + }
|
| +
|
| /**
|
| * Initializes the ContentView based on the native tab contents pointer passed in.
|
| * @param webContents A {@link WebContents} object.
|
| @@ -296,8 +301,8 @@ public class Shell extends LinearLayout {
|
| Context context = getContext();
|
| mContentViewCore = new ContentViewCore(context, "");
|
| ContentView cv = ContentView.createContentView(context, mContentViewCore);
|
| - mContentViewCore.initialize(ViewAndroidDelegate.createBasicDelegate(cv), cv,
|
| - webContents, mWindow);
|
| + mViewAndroidDelegate = new ContentViewAndroidDelegate(cv);
|
| + mContentViewCore.initialize(mViewAndroidDelegate, cv, webContents, mWindow);
|
| mContentViewCore.setActionModeCallback(defaultActionCallback());
|
| mContentViewCore.setContentViewClient(mContentViewClient);
|
| mWebContents = mContentViewCore.getWebContents();
|
|
|