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

Unified Diff: chrome/browser/android/tab_android.cc

Issue 1731673002: Add tab reparenting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove test 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
« no previous file with comments | « chrome/browser/android/tab_android.h ('k') | content/browser/android/content_view_core_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/tab_android.cc
diff --git a/chrome/browser/android/tab_android.cc b/chrome/browser/android/tab_android.cc
index 80157cef7d3c36fc67944ffc230da12c4b826458..15613c38ced8b0ca66740dd87be81985a7fecb23 100644
--- a/chrome/browser/android/tab_android.cc
+++ b/chrome/browser/android/tab_android.cc
@@ -434,6 +434,19 @@ void TabAndroid::InitWebContents(
content_layer_->InsertChild(content_view_core->GetLayer(), 0);
}
+void TabAndroid::UpdateDelegates(
+ JNIEnv* env,
+ const JavaParamRef<jobject>& obj,
+ const JavaParamRef<jobject>& jweb_contents_delegate,
+ const JavaParamRef<jobject>& jcontext_menu_populator) {
+ ContextMenuHelper::FromWebContents(web_contents())->SetPopulator(
+ jcontext_menu_populator);
+ web_contents_delegate_.reset(
+ new chrome::android::TabWebContentsDelegateAndroid(
+ env, jweb_contents_delegate));
+ web_contents()->SetDelegate(web_contents_delegate_.get());
+}
+
void TabAndroid::DestroyWebContents(JNIEnv* env,
const JavaParamRef<jobject>& obj,
jboolean delete_native) {
« no previous file with comments | « chrome/browser/android/tab_android.h ('k') | content/browser/android/content_view_core_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698