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

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

Issue 2353063005: Refactor ContentViewClient (1/6) (Closed)
Patch Set: cast to activity Created 4 years, 3 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
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 e80d8c392804ed6f620ba7237017574bcec50cc4..6735b00476a4700c1d3b8bce923ce04db846676d 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
@@ -102,6 +102,7 @@ public class AwContents implements SmartClipProvider,
private static final boolean TRACE = false;
private static final int NO_WARN = 0;
private static final int WARN = 1;
+ private static final String PRODUCT_VERSION = AwContentsStatics.getProductVersion();
private static final String WEB_ARCHIVE_EXTENSION = ".mht";
// The request code should be unique per WebView/AwContents object.
@@ -771,7 +772,7 @@ public class AwContents implements SmartClipProvider,
mSettings = settings;
mLayoutSizer.setDelegate(new AwLayoutSizerDelegate());
mWebContentsDelegate = new AwWebContentsDelegateAdapter(
- this, contentsClient, mContentViewClient, mContext, mContainerView);
+ this, contentsClient, settings, mContext, mContainerView);
mContentsClientBridge = new AwContentsClientBridge(mContext, contentsClient,
AwContentsStatics.getClientCertLookupTable());
mZoomControls = new AwZoomControls(this);
@@ -1048,7 +1049,7 @@ public class AwContents implements SmartClipProvider,
WebContents webContents = nativeGetWebContents(mNativeAwContents);
mWindowAndroid = getWindowAndroid(mContext);
- mContentViewCore = new ContentViewCore(mContext);
+ mContentViewCore = new ContentViewCore(mContext, PRODUCT_VERSION);
mViewAndroidDelegate = new AwViewAndroidDelegate(mContainerView,
mContentViewCore.getRenderCoordinates());
initializeContentViewCore(mContentViewCore, mContext, mViewAndroidDelegate,

Powered by Google App Engine
This is Rietveld 408576698