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

Unified Diff: content/browser/android/content_view_core_impl.cc

Issue 1731673002: Add tab reparenting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: content/browser/android/content_view_core_impl.cc
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc
index d70219a71ef275a274ba0f2cb91ad79fe20f34a8..4488c01e9ae2767843c36ad68a0a0cfdb703e826 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -273,6 +273,22 @@ ContentViewCoreImpl::~ContentViewCoreImpl() {
}
}
+void ContentViewCoreImpl::UpdateWindowAndroid(
+ JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& obj,
+ jlong window_android) {
+ if (!window_android) {
gone 2016/02/24 18:40:37 1) Do you not have to set window_android_ to null?
Yusuf 2016/02/24 19:40:36 1) Yes, I should. (and it still works! Phew!) 2)Do
+ FOR_EACH_OBSERVER(ContentViewCoreImplObserver,
+ observer_list_,
+ OnDetachedFromWindow());
+ } else {
+ window_android_ = reinterpret_cast<ui::WindowAndroid*>(window_android);
+ FOR_EACH_OBSERVER(ContentViewCoreImplObserver,
+ observer_list_,
+ OnAttachedToWindow());
+ }
+}
+
base::android::ScopedJavaLocalRef<jobject>
ContentViewCoreImpl::GetWebContentsAndroid(JNIEnv* env,
const JavaParamRef<jobject>& obj) {

Powered by Google App Engine
This is Rietveld 408576698