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

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: fix nits Created 3 years, 11 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/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..fcfc22f2c8709f88fb58a0d926c45f146ea77ea5 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,12 @@ 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& callback_id,
+ 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