Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2942)

Unified Diff: chrome/browser/ui/webui/print_preview_handler.h

Issue 7056070: PrintPreview: Preview generation should not block print button. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed another corner case Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698