| Index: chrome/browser/ui/webui/print_preview_handler.h
|
| diff --git a/chrome/browser/ui/webui/print_preview_handler.h b/chrome/browser/ui/webui/print_preview_handler.h
|
| index 04e12a6b3cb4bccdf95aca617bd08f1fddfd18aa..776b88cf91082f06fe68ba02031096a3dfd44164 100644
|
| --- a/chrome/browser/ui/webui/print_preview_handler.h
|
| +++ b/chrome/browser/ui/webui/print_preview_handler.h
|
| @@ -8,6 +8,7 @@
|
|
|
| #include "base/memory/ref_counted.h"
|
| #include "base/memory/weak_ptr.h"
|
| +#include "chrome/browser/printing/print_view_manager_observer.h"
|
| #include "chrome/browser/ui/shell_dialogs.h"
|
| #include "content/browser/webui/web_ui.h"
|
|
|
| @@ -23,7 +24,8 @@ class PrintBackend;
|
| // The handler for Javascript messages related to the "print preview" dialog.
|
| class PrintPreviewHandler : public WebUIMessageHandler,
|
| public base::SupportsWeakPtr<PrintPreviewHandler>,
|
| - public SelectFileDialog::Listener {
|
| + public SelectFileDialog::Listener,
|
| + public printing::PrintViewManagerObserver {
|
| public:
|
| PrintPreviewHandler();
|
| virtual ~PrintPreviewHandler();
|
| @@ -35,9 +37,15 @@ class PrintPreviewHandler : public WebUIMessageHandler,
|
| virtual void FileSelected(const FilePath& path, int index, void* params);
|
| virtual void FileSelectionCanceled(void* params);
|
|
|
| + // PrintViewManagerObserver implementation.
|
| + virtual void OnPrintDialogShown();
|
| +
|
| // Displays a modal dialog, prompting the user to select a file.
|
| void SelectFile(const FilePath& default_path);
|
|
|
| + //
|
| + void OnNavigation();
|
| +
|
| private:
|
| friend class PrintSystemTaskProxy;
|
|
|
|
|