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

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

Issue 7038028: Initial support for cloudprint in print preview (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Lint! 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
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 0c3283c21c02e1d642664d09d9c404ba710fdef4..4fc91d6b328af93cc298fa5aa5f5a89c6362fdfe 100644
--- a/chrome/browser/ui/webui/print_preview_handler.h
+++ b/chrome/browser/ui/webui/print_preview_handler.h
@@ -6,6 +6,8 @@
#define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_
#pragma once
+#include <string>
+
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/ui/shell_dialogs.h"
@@ -64,6 +66,9 @@ class PrintPreviewHandler : public WebUIMessageHandler,
// |args| is unused.
void HandleShowSystemDialog(const ListValue* args);
+// Bring up a web page to allow the user to configure cloud print.
Lei Zhang 2011/06/09 21:23:30 nit: indentation, describe what |args| does.
Albert Bodenhamer 2011/06/10 01:29:36 Done.
+ void HandleManageCloudPrint(const ListValue* args);
+
// Ask the browser to show the native printer management dialog.
// |args| is unused.
void HandleManagePrinters(const ListValue* args);
@@ -80,8 +85,15 @@ class PrintPreviewHandler : public WebUIMessageHandler,
void SendDefaultPrinter(const StringValue& default_printer);
// Send the list of printers to the Web UI.
- void SendPrinterList(const ListValue& printers,
- const FundamentalValue& default_printer_index);
+ void SetupPrinterList(const ListValue& printers,
+ const FundamentalValue& default_printer_index);
+
+ // Send whether cloud print integration should be enabled.
+ void SendCloudPrintEnabled();
+
+ // Send the PDF data to the cloud to print.
+ void SendCloudPrintJob(const DictionaryValue& settings,
+ std::string print_ticket);
// Helper function to get the initiator tab for the print preview tab.
TabContents* GetInitiatorTab();

Powered by Google App Engine
This is Rietveld 408576698