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

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

Issue 919213002: Handle an extension printer supporting only PWG raster data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix a comment Created 5 years, 10 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.cc ('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/printer_handler.h
diff --git a/chrome/browser/ui/webui/print_preview/printer_handler.h b/chrome/browser/ui/webui/print_preview/printer_handler.h
index 92a9bf81bc6e60b2f12d0420a2fbcb57cced3cec..d51c22ea4c4906f1de615aee078ea0e5c037e202 100644
--- a/chrome/browser/ui/webui/print_preview/printer_handler.h
+++ b/chrome/browser/ui/webui/print_preview/printer_handler.h
@@ -21,6 +21,10 @@ namespace content {
class BrowserContext;
}
+namespace gfx {
+class Size;
+}
+
// Wrapper around PrinterProviderAPI to be used by print preview.
// It makes request lifetime management easier, and hides details of more
// complex operations like printing from the print preview handler.
@@ -58,12 +62,15 @@ class PrinterHandler {
// |destination_id|: The printer to which print job should be sent.
// |capability|: Capability reported by the printer.
// |ticket_json|: The print job ticket as JSON string.
+ // |page_size|: The document page size.
// |print_data|: The document bytes to print.
// |callback| should be called in the response to the request.
+ // TODO(tbarzic): Page size should be extracted from print data.
virtual void StartPrint(
const std::string& destination_id,
const std::string& capability,
const std::string& ticket_json,
+ const gfx::Size& page_size,
const scoped_refptr<base::RefCountedMemory>& print_data,
const PrintCallback& callback) = 0;
};
« no previous file with comments | « chrome/browser/ui/webui/print_preview/print_preview_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698