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

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

Issue 2606043004: Perform printer setup on Chrome OS before selecting printer. (Closed)
Patch Set: Created 4 years 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/print_preview_handler.h
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_handler.h b/chrome/browser/ui/webui/print_preview/print_preview_handler.h
index 56a737952dbf7504e6114e8e2d6f6068d083e812..37a040befbfa3a84a2eadfd09602aeadb5c7235b 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_handler.h
+++ b/chrome/browser/ui/webui/print_preview/print_preview_handler.h
@@ -155,6 +155,9 @@ class PrintPreviewHandler
// Gets the printer capabilities. First element of |args| is the printer name.
void HandleGetPrinterCapabilities(const base::ListValue* args);
+ // Performs printer setup. First element of |args| is the printer name.
+ void HandlePrinterSetup(const base::ListValue* args);
+
#if BUILDFLAG(ENABLE_BASIC_PRINT_DIALOG)
// Asks the initiator renderer to show the native print system dialog. |args|
// is unused.
@@ -219,6 +222,11 @@ class PrintPreviewHandler
const std::string& printer_name,
std::unique_ptr<base::DictionaryValue> settings_info);
+ // Send the result of performing printer setup. |settings_info| contains
+ // printer capabilities.
+ void SendPrinterSetup(const std::string& printer_name,
+ std::unique_ptr<base::DictionaryValue> settings_info);
+
// Send the list of printers to the Web UI.
void SetupPrinterList(const printing::PrinterList& printer_list);

Powered by Google App Engine
This is Rietveld 408576698