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

Unified Diff: chrome/browser/ui/webui/settings/chromeos/cups_printers_handler.h

Issue 2915703002: Query printers for autoconf info during setup. (Closed)
Patch Set: close the right dialog Created 3 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/settings/chromeos/cups_printers_handler.h
diff --git a/chrome/browser/ui/webui/settings/chromeos/cups_printers_handler.h b/chrome/browser/ui/webui/settings/chromeos/cups_printers_handler.h
index 343daeab6df52da9281b36ef9ab50c3ea5e6479e..ba7f82c0ec3b05c4d0a14a6bced17416a45f6de2 100644
--- a/chrome/browser/ui/webui/settings/chromeos/cups_printers_handler.h
+++ b/chrome/browser/ui/webui/settings/chromeos/cups_printers_handler.h
@@ -49,6 +49,23 @@ class CupsPrintersHandler : public ::settings::SettingsPageUIHandler,
void HandleUpdateCupsPrinter(const base::ListValue* args);
void HandleRemoveCupsPrinter(const base::ListValue* args);
+ // For a CupsPrinterInfo in |args|, retrieves the relevant PrinterInfo object
+ // using an IPP call to the printer.
+ void HandleGetPrinterInfo(const base::ListValue* args);
+
+ // Handles the callback for HandleGetPrinterInfo. |callback_id| is the
stevenjb 2017/06/08 15:58:28 nit: We generally avoid using two spaces between s
skau 2017/06/08 22:11:26 Done.
+ // identifier to resolve the correct Promise. |success| indicates if the
+ // query was successful. |make| is the detected printer manufacturer.
+ // |model| is the detected model. |ipp_everywhere| indicates if configuration
+ // using the CUPS IPP Everywhere driver should be attempted. If |success| is
+ // false, the values of |make|, |model| and |ipp_everywhere| are not
+ // specified.
+ void OnPrinterInfo(const std::string& callback_id,
+ bool success,
+ const std::string& make,
+ const std::string& model,
+ bool ipp_everywhere);
+
void HandleAddCupsPrinter(const base::ListValue* args);
void OnAddedPrinter(std::unique_ptr<Printer> printer,
chromeos::PrinterSetupResult result);

Powered by Google App Engine
This is Rietveld 408576698