| Index: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| index 89414b4ab13612e3db29577d84c7e4f425d16c15..5e91f8455de14654e87aa900ac2d22bc1eaf557e 100644
|
| --- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| +++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| @@ -785,6 +785,16 @@ public class ContentViewCore implements AccessibilityStateChangeListener, Screen
|
| mWebContentsObserver = new ContentViewWebContentsObserver(this);
|
| }
|
|
|
| + /**
|
| + * Updates the native {@link ContentViewCore} with a new window. This moves the NativeView and
|
| + * attached it to the new NativeWindow linked with the given {@link WindowAndroid}.
|
| + * @param windowAndroid The new {@link WindowAndroid} for this {@link ContentViewCore}.
|
| + */
|
| + public void updateWindowAndroid(WindowAndroid windowAndroid) {
|
| + long windowNativePointer = windowAndroid == null ? 0 : windowAndroid.getNativePointer();
|
| + nativeUpdateWindowAndroid(mNativeContentViewCore, windowNativePointer);
|
| + }
|
| +
|
| @VisibleForTesting
|
| public void createContentViewAndroidDelegate() {
|
| mViewAndroidDelegate = new ContentViewAndroidDelegate(mContainerView, mRenderCoordinates);
|
| @@ -3208,6 +3218,8 @@ public class ContentViewCore implements AccessibilityStateChangeListener, Screen
|
| long windowAndroidPtr, HashSet<Object> retainedObjectSet);
|
| private static native ContentViewCore nativeFromWebContentsAndroid(WebContents webContents);
|
|
|
| + private native void nativeUpdateWindowAndroid(
|
| + long nativeContentViewCoreImpl, long windowAndroidPtr);
|
| private native WebContents nativeGetWebContentsAndroid(long nativeContentViewCoreImpl);
|
| private native WindowAndroid nativeGetJavaWindowAndroid(long nativeContentViewCoreImpl);
|
|
|
|
|