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

Unified Diff: chrome/browser/dom_distiller/tab_utils_android.cc

Issue 1058193002: Add support for not owning distilled WebContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix issues. Created 5 years, 7 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/dom_distiller/tab_utils.cc ('k') | chrome/browser/dom_distiller/tab_utils_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_distiller/tab_utils_android.cc
diff --git a/chrome/browser/dom_distiller/tab_utils_android.cc b/chrome/browser/dom_distiller/tab_utils_android.cc
index 855fba687e7b83c013d60bc1c9000568ef1e2654..83598cbe5bbbc90baa77c4a624117607c26604d7 100644
--- a/chrome/browser/dom_distiller/tab_utils_android.cc
+++ b/chrome/browser/dom_distiller/tab_utils_android.cc
@@ -28,6 +28,17 @@ void DistillCurrentPageAndView(JNIEnv* env,
::DistillCurrentPageAndView(web_contents);
}
+void DistillAndView(JNIEnv* env,
+ jclass clazz,
+ jobject j_source_web_contents,
+ jobject j_destination_web_contents) {
+ content::WebContents* source_web_contents =
+ content::WebContents::FromJavaWebContents(j_source_web_contents);
+ content::WebContents* destination_web_contents =
+ content::WebContents::FromJavaWebContents(j_destination_web_contents);
+ ::DistillAndView(source_web_contents, destination_web_contents);
+}
+
jstring GetFormattedUrlFromOriginalDistillerUrl(JNIEnv* env,
jclass clazz,
jstring j_url) {
« no previous file with comments | « chrome/browser/dom_distiller/tab_utils.cc ('k') | chrome/browser/dom_distiller/tab_utils_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698