summaryrefslogtreecommitdiffstats
path: root/src/core/print_view_manager_qt.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-02-23 17:11:05 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-03-27 09:13:09 +0000
commitbce063054682e590e9fa8aa9d2ec19ca26ea3d49 (patch)
tree72eafcf4e0d2c6518ffd38772f7f5758bf6a4137 /src/core/print_view_manager_qt.h
parent817c117cf89f15e1877107597c8daeff956fd1a6 (diff)
Adaptations for Chromium 56
Change-Id: I78240d7956de4716757761fc6517f031b4adb822 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'src/core/print_view_manager_qt.h')
-rw-r--r--src/core/print_view_manager_qt.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/core/print_view_manager_qt.h b/src/core/print_view_manager_qt.h
index b2ba73b27..af19a89ef 100644
--- a/src/core/print_view_manager_qt.h
+++ b/src/core/print_view_manager_qt.h
@@ -51,6 +51,7 @@
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/web_contents_user_data.h"
+#include "printing/features/features.h"
#include "printing/printed_pages_source.h"
struct PrintHostMsg_RequestPrintPreview_Params;
@@ -82,7 +83,7 @@ public:
~PrintViewManagerQt() override;
typedef base::Callback<void(const std::vector<char> &result)> PrintToPDFCallback;
typedef base::Callback<void(bool success)> PrintToPDFFileCallback;
-#if defined(ENABLE_BASIC_PRINTING)
+#if BUILDFLAG(ENABLE_BASIC_PRINTING)
// Method to print a page to a Pdf document with page size \a pageSize in location \a filePath.
void PrintToPDFFileWithCallback(const QPageLayout &pageLayout,
bool printInColor,
@@ -107,16 +108,17 @@ protected:
void RenderProcessGone(base::TerminationStatus status) override;
// content::WebContentsObserver implementation.
- bool OnMessageReceived(const IPC::Message& message) override;
+ bool OnMessageReceived(const IPC::Message& message,
+ content::RenderFrameHost* render_frame_host) override;
// IPC handlers
void OnDidShowPrintDialog();
void OnRequestPrintPreview(const PrintHostMsg_RequestPrintPreview_Params&);
void OnMetafileReadyForPrinting(const PrintHostMsg_DidPreviewDocument_Params& params);
-#if defined(ENABLE_BASIC_PRINTING)
+#if BUILDFLAG(ENABLE_BASIC_PRINTING)
bool PrintToPDFInternal(const QPageLayout &, bool printInColor);
-#endif //
+#endif // BUILDFLAG(ENABLE_BASIC_PRINTING)
base::FilePath m_pdfOutputPath;
PrintToPDFCallback m_pdfPrintCallback;