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

Unified Diff: chrome/renderer/pepper/ppb_pdf_impl.cc

Issue 22577010: Printing: Add a basic printing mode without print preview and cloud print. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 years, 4 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/renderer/pepper/pepper_pdf_host.cc ('k') | chrome/test/base/chrome_render_view_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/pepper/ppb_pdf_impl.cc
diff --git a/chrome/renderer/pepper/ppb_pdf_impl.cc b/chrome/renderer/pepper/ppb_pdf_impl.cc
index 85e92e1ccb9d9d214f6e2afe7864cc0edf08c295..a49455e10e8e229bc80dd26a84f18d5881dcb9d0 100644
--- a/chrome/renderer/pepper/ppb_pdf_impl.cc
+++ b/chrome/renderer/pepper/ppb_pdf_impl.cc
@@ -130,7 +130,7 @@ static const ResourceImageInfo kResourceImageMap[] = {
{ PP_RESOURCEIMAGE_PDF_PAN_SCROLL_ICON, IDR_PAN_SCROLL_ICON },
};
-#if defined(ENABLE_PRINTING)
+#if defined(ENABLE_FULL_PRINTING)
WebKit::WebElement GetWebElement(PP_Instance instance_id) {
content::PepperPluginInstance* instance =
@@ -155,13 +155,13 @@ bool IsPrintingEnabled(PP_Instance instance_id) {
return helper && helper->IsPrintingEnabled();
}
-#else // ENABLE_PRINTING
+#else // ENABLE_FULL_PRINTING
bool IsPrintingEnabled(PP_Instance instance_id) {
return false;
}
-#endif // ENABLE_PRINTING
+#endif // ENABLE_FULL_PRINTING
@@ -425,10 +425,10 @@ const PPB_PDF* PPB_PDF_Impl::GetInterface() {
// static
void PPB_PDF_Impl::InvokePrintingForInstance(PP_Instance instance_id) {
-#if defined(ENABLE_PRINTING)
+#if defined(ENABLE_FULL_PRINTING)
WebKit::WebElement element = GetWebElement(instance_id);
printing::PrintWebViewHelper* helper = GetPrintWebViewHelper(element);
if (helper)
helper->PrintNode(element);
-#endif // ENABLE_PRINTING
+#endif // ENABLE_FULL_PRINTING
}
« no previous file with comments | « chrome/renderer/pepper/pepper_pdf_host.cc ('k') | chrome/test/base/chrome_render_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698