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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwContents.java

Issue 14169011: [Android] Rename NativeWindow to WindowAndroid. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Return Activity context for now Created 7 years, 8 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 | « no previous file | android_webview/java/src/org/chromium/android_webview/AwNativeWindow.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/java/src/org/chromium/android_webview/AwContents.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContents.java b/android_webview/java/src/org/chromium/android_webview/AwContents.java
index bbf71012109650a0d0bbe4d76e7f079c8b53e201..1d8651c5ad8ce377b127248e4bb10c789855daf9 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
@@ -43,7 +43,6 @@ import org.chromium.components.navigation_interception.InterceptNavigationDelega
import org.chromium.components.navigation_interception.NavigationParams;
import org.chromium.net.GURLUtils;
import org.chromium.ui.gfx.DeviceDisplayInfo;
-import org.chromium.ui.gfx.NativeWindow;
import java.io.File;
import java.lang.annotation.Annotation;
@@ -284,10 +283,8 @@ public class AwContents {
mCleanupReference = new CleanupReference(this, new DestroyRunnable(mNativeAwContents));
int nativeWebContents = nativeGetWebContents(mNativeAwContents);
- mContentViewCore.initialize(containerView, internalAccessAdapter,
- nativeWebContents,
- new AwNativeWindow(mContainerView.getContext()),
- isAccessFromFileURLsGrantedByDefault);
+ mContentViewCore.initialize(containerView, internalAccessAdapter, nativeWebContents,
+ null, isAccessFromFileURLsGrantedByDefault);
mContentViewCore.setContentViewClient(mContentsClient);
mLayoutSizer = new AwLayoutSizer(new AwLayoutSizerDelegate());
mContentViewCore.setContentSizeChangeListener(new AwContentStateChangeListener());
@@ -531,8 +528,7 @@ public class AwContents {
// set it correctly when when we copy the settings from the old ContentViewCore
// into the new one.
newCore.initialize(mContainerView, mInternalAccessAdapter,
- newWebContentsPtr, new AwNativeWindow(mContainerView.getContext()),
- false);
+ newWebContentsPtr, null, false);
newCore.setContentViewClient(mContentsClient);
mContentsClient.installWebContentsObserver(newCore);
« no previous file with comments | « no previous file | android_webview/java/src/org/chromium/android_webview/AwNativeWindow.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698