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

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: '' 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
« no previous file with comments | « chrome/browser/resources/print_preview.js ('k') | chrome/browser/ui/webui/print_preview_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 02324691c708e85f692658e791b27467d2424527..c25528dc64f26f40d17ff003692a96269c8b6bb9 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);
@@ -94,6 +98,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_;
« no previous file with comments | « chrome/browser/resources/print_preview.js ('k') | chrome/browser/ui/webui/print_preview_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698