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

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

Issue 2708703004: Reland "Refactor ContentViewClient (4/6)" (Closed)
Patch Set: - Created 3 years, 10 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 6c64c0b5ac2df1829bc8b979507591d4204ad06d..7a90f10bf92410129f3a10801ad1930a7c1ebaaa 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
@@ -758,7 +758,7 @@ public class AwContents implements SmartClipProvider {
mAwViewMethods = new AwViewMethodsImpl();
mFullScreenTransitionsState = new FullScreenTransitionsState(
mContainerView, mInternalAccessAdapter, mAwViewMethods);
- mContentViewClient = new AwContentViewClient(contentsClient, settings, this, mContext);
+ mContentViewClient = new AwContentViewClient(contentsClient, settings, this);
mLayoutSizer = dependencyFactory.createLayoutSizer();
mSettings = settings;
mLayoutSizer.setDelegate(new AwLayoutSizerDelegate());
@@ -1051,8 +1051,8 @@ public class AwContents implements SmartClipProvider {
mWindowAndroid = getWindowAndroid(mContext);
mContentViewCore = new ContentViewCore(mContext, PRODUCT_VERSION);
- mViewAndroidDelegate = new AwViewAndroidDelegate(mContainerView,
- mContentViewCore.getRenderCoordinates());
+ mViewAndroidDelegate = new AwViewAndroidDelegate(
+ mContainerView, mContentsClient, mContentViewCore.getRenderCoordinates());
initializeContentViewCore(mContentViewCore, mContext, mViewAndroidDelegate,
mInternalAccessAdapter, webContents, new AwGestureStateListener(),
mContentViewClient, mWindowAndroid.getWindowAndroid());

Powered by Google App Engine
This is Rietveld 408576698