class PrintViewManager : public PrintViewManagerBase,
public content::WebContentsUserData<PrintViewManager> {
public:
- virtual ~PrintViewManager();
+ ~PrintViewManager() override;
+#if defined(ENABLE_BASIC_PRINTING)
// Same as PrintNow(), but for the case where a user prints with the system
// dialog from print preview.
bool PrintForSystemDialogNow();
// Same as PrintNow(), but for the case where a user press "ctrl+shift+p" to
// show the native system dialog. This can happen from both initiator and
// preview dialog.
- bool AdvancedPrintNow();
-
- // Same as PrintNow(), but for the case where we want to send the result to
- // another destination.
- // TODO(mad) Add an argument so we can pass the destination interface.
- bool PrintToDestination();
+ bool BasicPrint();
+#endif // ENABLE_BASIC_PRINTING
// Initiate print preview of the current document by first notifying the
// renderer. Since this happens asynchronous, the print preview dialog
void set_observer(PrintViewManagerObserver* observer);
// content::WebContentsObserver implementation.
- virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
+ bool OnMessageReceived(const IPC::Message& message) override;
// content::WebContentsObserver implementation.
// Terminates or cancels the print job if one was pending.
- virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE;
+ void RenderProcessGone(base::TerminationStatus status) override;
private:
explicit PrintViewManager(content::WebContents* web_contents);