| Index: content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java
|
| diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java
|
| index 77211351fab7e2da8043bee0dc454cdc914814e5..63bcbea4e05008e66a762d4e1e0bcc1169844ba4 100644
|
| --- a/content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java
|
| +++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java
|
| @@ -15,7 +15,7 @@ import android.widget.FrameLayout;
|
| import org.chromium.base.annotations.CalledByNative;
|
| import org.chromium.base.annotations.JNINamespace;
|
| import org.chromium.content_public.browser.WebContents;
|
| -import org.chromium.ui.base.WindowAndroid;
|
| +import org.chromium.ui.base.ViewRoot;
|
|
|
| /***
|
| * This view is used by a ContentView to render its content.
|
| @@ -56,13 +56,13 @@ public class ContentViewRenderView extends FrameLayout {
|
| /**
|
| * Initialization that requires native libraries should be done here.
|
| * Native code should add/remove the layers to be rendered through the ContentViewLayerRenderer.
|
| - * @param rootWindow The {@link WindowAndroid} this render view should be linked to.
|
| + * @param viewRoot The {@link ViewRoot} this render view should be linked to.
|
| */
|
| - public void onNativeLibraryLoaded(WindowAndroid rootWindow) {
|
| + public void onNativeLibraryLoaded(ViewRoot viewRoot) {
|
| assert !mSurfaceView.getHolder().getSurface().isValid() :
|
| "Surface created before native library loaded.";
|
| - assert rootWindow != null;
|
| - mNativeContentViewRenderView = nativeInit(rootWindow.getNativePointer());
|
| + assert viewRoot != null;
|
| + mNativeContentViewRenderView = nativeInit(viewRoot.getNativePtr());
|
| assert mNativeContentViewRenderView != 0;
|
| mSurfaceCallback = new SurfaceHolder.Callback() {
|
| @Override
|
| @@ -130,7 +130,7 @@ public class ContentViewRenderView extends FrameLayout {
|
| if (mContentViewCore != null) {
|
| mContentViewCore.onPhysicalBackingSizeChanged(getWidth(), getHeight());
|
| nativeSetCurrentWebContents(
|
| - mNativeContentViewRenderView, mContentViewCore.getWebContents());
|
| + mNativeContentViewRenderView, contentViewCore.getWebContents());
|
| } else {
|
| nativeSetCurrentWebContents(mNativeContentViewRenderView, null);
|
| }
|
| @@ -181,7 +181,7 @@ public class ContentViewRenderView extends FrameLayout {
|
| }
|
| }
|
|
|
| - private native long nativeInit(long rootWindowNativePointer);
|
| + private native long nativeInit(long viewRootNativePointer);
|
| private native void nativeDestroy(long nativeContentViewRenderView);
|
| private native void nativeSetCurrentWebContents(
|
| long nativeContentViewRenderView, WebContents webContents);
|
|
|