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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java

Issue 2179563003: Android: Remove ContentViewCore::GetLayer() from public interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 5 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: 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 a9f0f54a489b682638bab1f4462b3a50279f84e5..77211351fab7e2da8043bee0dc454cdc914814e5 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
@@ -14,6 +14,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;
/***
@@ -128,10 +129,10 @@ public class ContentViewRenderView extends FrameLayout {
if (mContentViewCore != null) {
mContentViewCore.onPhysicalBackingSizeChanged(getWidth(), getHeight());
- nativeSetCurrentContentViewCore(mNativeContentViewRenderView,
- mContentViewCore.getNativeContentViewCore());
+ nativeSetCurrentWebContents(
+ mNativeContentViewRenderView, mContentViewCore.getWebContents());
} else {
- nativeSetCurrentContentViewCore(mNativeContentViewRenderView, 0);
+ nativeSetCurrentWebContents(mNativeContentViewRenderView, null);
}
}
@@ -182,8 +183,8 @@ public class ContentViewRenderView extends FrameLayout {
private native long nativeInit(long rootWindowNativePointer);
private native void nativeDestroy(long nativeContentViewRenderView);
- private native void nativeSetCurrentContentViewCore(long nativeContentViewRenderView,
- long nativeContentViewCore);
+ private native void nativeSetCurrentWebContents(
+ long nativeContentViewRenderView, WebContents webContents);
private native void nativeSurfaceCreated(long nativeContentViewRenderView);
private native void nativeSurfaceDestroyed(long nativeContentViewRenderView);
private native void nativeSurfaceChanged(long nativeContentViewRenderView,

Powered by Google App Engine
This is Rietveld 408576698