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

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: Initial comments 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..28bbf5106ccd96b5b62dc37ac5f273542c243dfa 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -273,6 +273,23 @@ ContentViewCoreImpl::~ContentViewCoreImpl() {
}
}
+void ContentViewCoreImpl::UpdateWindowAndroid(
+ JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& obj,
+ jlong window_android) {
+ if (window_android) {
+ window_android_ = reinterpret_cast<ui::WindowAndroid*>(window_android);
+ FOR_EACH_OBSERVER(ContentViewCoreImplObserver,
+ observer_list_,
+ OnAttachedToWindow());
+ } else {
+ FOR_EACH_OBSERVER(ContentViewCoreImplObserver,
+ observer_list_,
gone 2016/02/24 21:01:37 nit: indentation is wonky.
Yusuf 2016/02/24 21:07:37 Done.
+ OnDetachedFromWindow());
+ window_android_ = NULL;
+ }
+}
+
base::android::ScopedJavaLocalRef<jobject>
ContentViewCoreImpl::GetWebContentsAndroid(JNIEnv* env,
const JavaParamRef<jobject>& obj) {

Powered by Google App Engine
This is Rietveld 408576698