public PrintedPagesSource,
public content::WebContentsObserver {
public:
- virtual ~PrintViewManagerBase();
+ ~PrintViewManagerBase() override;
-#if !defined(DISABLE_BASIC_PRINTING)
+#if defined(ENABLE_BASIC_PRINTING)
// Prints the current document immediately. Since the rendering is
// asynchronous, the actual printing will not be completed on the return of
// this function. Returns false if printing is impossible at the moment.
virtual bool PrintNow();
-#endif // !DISABLE_BASIC_PRINTING
+#endif // ENABLE_BASIC_PRINTING
// Whether to block scripted printing for our tab or not.
void UpdateScriptedPrintingBlocked();
// PrintedPagesSource implementation.
- virtual base::string16 RenderSourceName() OVERRIDE;
+ base::string16 RenderSourceName() override;
protected:
explicit PrintViewManagerBase(content::WebContents* web_contents);
bool PrintNowInternal(IPC::Message* message);
// Terminates or cancels the print job if one was pending.
- virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE;
+ void RenderProcessGone(base::TerminationStatus status) override;
// content::WebContentsObserver implementation.
- virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
+ bool OnMessageReceived(const IPC::Message& message) override;
// IPC Message handlers.
virtual void OnPrintingFailed(int cookie);
private:
// content::NotificationObserver implementation.
- virtual void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) OVERRIDE;
+ void Observe(int type,
+ const content::NotificationSource& source,
+ const content::NotificationDetails& details) override;
// content::WebContentsObserver implementation.
- virtual void DidStartLoading(
- content::RenderViewHost* render_view_host) OVERRIDE;
+ void DidStartLoading(content::RenderViewHost* render_view_host) override;
// Cancels the print job.
- virtual void NavigationStopped() OVERRIDE;
+ void NavigationStopped() override;
// IPC Message handlers.
void OnDidGetPrintedPagesCount(int cookie, int number_pages);