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

Unified Diff: blimp/client/core/contents/android/java/src/org/chromium/blimp/core/contents/BlimpContentsImpl.java

Issue 2270323004: Add BlimpView to a Chrome tab when Blimp is enabled. (Closed)
Patch Set: Magic now happens Created 4 years, 4 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: blimp/client/core/contents/android/java/src/org/chromium/blimp/core/contents/BlimpContentsImpl.java
diff --git a/blimp/client/core/contents/android/java/src/org/chromium/blimp/core/contents/BlimpContentsImpl.java b/blimp/client/core/contents/android/java/src/org/chromium/blimp/core/contents/BlimpContentsImpl.java
index f0680690bae2a7f9248b555e5fd5e4940dec0b7d..abdee592d0a548a35e542521ffaf118879ee2812 100644
--- a/blimp/client/core/contents/android/java/src/org/chromium/blimp/core/contents/BlimpContentsImpl.java
+++ b/blimp/client/core/contents/android/java/src/org/chromium/blimp/core/contents/BlimpContentsImpl.java
@@ -4,6 +4,8 @@
package org.chromium.blimp.core.contents;
+import android.view.ViewGroup;
+
import org.chromium.base.annotations.CalledByNative;
import org.chromium.base.annotations.JNINamespace;
import org.chromium.blimp_public.contents.BlimpContents;
@@ -33,6 +35,9 @@ public class BlimpContentsImpl implements BlimpContents {
// single JNI hop for each call to observers.
private BlimpContentsObserverProxy mObserverProxy;
+ // The Android View for this BlimpContents.
+ private BlimpView mBlimpView;
+
private BlimpContentsImpl(
long nativeBlimpContentsImplAndroid, BlimpNavigationController navigationController) {
mNativeBlimpContentsImplAndroid = nativeBlimpContentsImplAndroid;
@@ -55,6 +60,16 @@ public class BlimpContentsImpl implements BlimpContents {
return mNativeBlimpContentsImplAndroid;
}
+ @CalledByNative
+ private void setBlimpView(BlimpView blimpView) {
+ mBlimpView = blimpView;
+ }
+
+ @Override
+ public ViewGroup getView() {
+ return mBlimpView;
+ }
+
@Override
public BlimpNavigationController getNavigationController() {
return mBlimpNavigationController;

Powered by Google App Engine
This is Rietveld 408576698