| 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 6d44e042af538f17c108e45c3c0b3dc3706ee2b3..c50045671ef2e5344add857ed3fc94a287ccf720 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
|
| @@ -51,7 +51,7 @@ import org.chromium.content.browser.input.InsertionHandleController;
|
| import org.chromium.content.browser.input.SelectPopupDialog;
|
| import org.chromium.content.browser.input.SelectionHandleController;
|
| import org.chromium.content.common.TraceEvent;
|
| -import org.chromium.ui.gfx.NativeWindow;
|
| +import org.chromium.ui.WindowAndroid;
|
|
|
| import java.lang.annotation.Annotation;
|
| import java.util.HashMap;
|
| @@ -451,7 +451,7 @@ public class ContentViewCore implements MotionEventDelegate, NavigationClient {
|
| * @param internalDispatcher Handles dispatching all hidden or super methods to the
|
| * containerView.
|
| * @param nativeWebContents A pointer to the native web contents.
|
| - * @param nativeWindow An instance of the NativeWindow.
|
| + * @param windowAndroid An instance of the WindowAndroid.
|
| * @param isAccessFromFileURLsGrantedByDefault Default WebSettings configuration.
|
| */
|
| // Perform important post-construction set up of the ContentViewCore.
|
| @@ -464,7 +464,7 @@ public class ContentViewCore implements MotionEventDelegate, NavigationClient {
|
| // Note that the caller remains the owner of the nativeWebContents and is responsible for
|
| // deleting it after destroying the ContentViewCore.
|
| public void initialize(ViewGroup containerView, InternalAccessDelegate internalDispatcher,
|
| - int nativeWebContents, NativeWindow nativeWindow,
|
| + int nativeWebContents, WindowAndroid windowAndroid,
|
| boolean isAccessFromFileURLsGrantedByDefault) {
|
| // Check whether to use hardware acceleration. This is a bit hacky, and
|
| // only works if the Context is actually an Activity (as it is in the
|
| @@ -486,8 +486,11 @@ public class ContentViewCore implements MotionEventDelegate, NavigationClient {
|
| (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN);
|
|
|
| mContainerView = containerView;
|
| +
|
| + int windowNativePointer = windowAndroid != null ? windowAndroid.getNativePointer() : 0;
|
| +
|
| mNativeContentViewCore = nativeInit(mHardwareAccelerated, inputEventsDeliveredAtVSync,
|
| - nativeWebContents, nativeWindow.getNativePointer());
|
| + nativeWebContents, windowNativePointer);
|
| mContentSettings = new ContentSettings(
|
| this, mNativeContentViewCore, isAccessFromFileURLsGrantedByDefault);
|
| initializeContainerView(internalDispatcher);
|
|
|