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

Unified Diff: android_webview/native/aw_contents.cc

Issue 54963005: Upstream printing changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address code review Created 7 years, 1 month 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: android_webview/native/aw_contents.cc
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
index 4bdcf7ee2662a29f596dde2c22969756fc4adf9e..ccedf6820899fac473f3d06682a81c2eec432332 100644
--- a/android_webview/native/aw_contents.cc
+++ b/android_webview/native/aw_contents.cc
@@ -17,6 +17,7 @@
#include "android_webview/native/aw_browser_dependency_factory.h"
#include "android_webview/native/aw_contents_client_bridge.h"
#include "android_webview/native/aw_contents_io_thread_client_impl.h"
+#include "android_webview/native/aw_pdf_exporter.h"
#include "android_webview/native/aw_picture.h"
#include "android_webview/native/aw_web_contents_delegate.h"
#include "android_webview/native/java_browser_view_renderer_helper.h"
@@ -388,6 +389,17 @@ void AwContents::GenerateMHTML(JNIEnv* env, jobject obj,
base::Bind(&GenerateMHTMLCallback, base::Owned(j_callback), target_path));
}
+void AwContents::CreatePdfExporter(JNIEnv* env,
+ jobject obj,
+ jobject pdfExporter) {
+
joth 2013/11/21 19:38:03 spurious \n
sgurun-gerrit only 2013/11/23 01:49:11 Done.
+ pdf_exporter_.reset(
+ new AwPdfExporter(env,
+ pdfExporter,
+ browser_view_renderer_.get(),
+ web_contents_.get()));
+}
+
bool AwContents::OnReceivedHttpAuthRequest(const JavaRef<jobject>& handler,
const std::string& host,
const std::string& realm) {

Powered by Google App Engine
This is Rietveld 408576698