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

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

Issue 10867004: Notify print preview UI if getting capabilityes failed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/ui/webui/print_preview/print_preview_handler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/print_preview/print_preview_handler.cc
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
index 94d84ce31c477408902eb29bd038bf8d07695cae..7d1008f8dabed31247450e19e54c5468605d6d20 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
+++ b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
@@ -775,6 +775,14 @@ void PrintPreviewHandler::SendPrinterCapabilities(
*settings);
}
+void PrintPreviewHandler::SendFailedToGetPrinterCapabilities(
+ const std::string& printer_name) {
+ VLOG(1) << "Get printer capabilities failed";
+ base::StringValue printer_name_value(printer_name);
+ web_ui()->CallJavascriptFunction("failedToGetPrinterCapabilities",
+ printer_name_value);
+}
+
void PrintPreviewHandler::SetupPrinterList(const ListValue& printers) {
web_ui()->CallJavascriptFunction("setPrinters", printers);
}
« no previous file with comments | « chrome/browser/ui/webui/print_preview/print_preview_handler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698