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 0c3283c21c02e1d642664d09d9c404ba710fdef4..d9bc0ff45cb89ffdb51a71437ac5bf5c4135b902 100644 |
--- a/chrome/browser/ui/webui/print_preview_handler.h |
+++ b/chrome/browser/ui/webui/print_preview_handler.h |
@@ -56,6 +56,10 @@ class PrintPreviewHandler : public WebUIMessageHandler, |
// First element of |args| is a job settings JSON string. |
void HandlePrint(const ListValue* args); |
+ // Handles the request to hide the preview tab for printing. |
+ // |args| is unused. |
+ void HandleHidePreview(const ListValue* args); |
+ |
// Get the printer capabilities. |
// First element of |args| is the printer name. |
void HandleGetPrinterCapabilities(const ListValue* args); |
@@ -95,6 +99,12 @@ class PrintPreviewHandler : public WebUIMessageHandler, |
// Adds all the recorded stats taken so far to histogram counts. |
void ReportStats(); |
+ // Helper function to hide the preview tab for printing. |
+ void HidePreviewTab(); |
+ |
+ // Helper function to clear initiator tab details for this preview tab. |
+ void ClearInitiatorTabDetails(); |
+ |
// Pointer to current print system. |
scoped_refptr<printing::PrintBackend> print_backend_; |