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

Unified Diff: chrome/browser/printing/print_job_worker.h

Issue 10483006: Print support for Windows Metro... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Self CR changes Created 8 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/printing/print_job_worker.h
diff --git a/chrome/browser/printing/print_job_worker.h b/chrome/browser/printing/print_job_worker.h
index fee682dba66f54bd138ab5bd3748693c15d926f0..93b5bc69fb97683e0780d84987318e78d6953d14 100644
--- a/chrome/browser/printing/print_job_worker.h
+++ b/chrome/browser/printing/print_job_worker.h
@@ -11,6 +11,7 @@
#include "base/memory/weak_ptr.h"
#include "base/threading/thread.h"
#include "printing/page_number.h"
+#include "printing/print_destination_interface.h"
#include "printing/printing_context.h"
#include "printing/print_job_constants.h"
#include "ui/gfx/native_widget_types.h"
@@ -39,6 +40,10 @@ class PrintJobWorker : public base::Thread {
void SetNewOwner(PrintJobWorkerOwner* new_owner);
+ // Set a destination for print.
+ // This superceeds the document's rendering destination.
robertshield 2012/06/28 17:48:54 superceed -> supercede
MAD 2012/06/28 19:05:51 Done.
+ void SetPrintDestination(PrintDestinationInterface* destination);
+
// Initializes the print settings. If |ask_user_for_settings| is true, a
// Print... dialog box will be shown to ask the user his preference.
void GetSettings(bool ask_user_for_settings,
@@ -118,6 +123,9 @@ class PrintJobWorker : public base::Thread {
// The printed document. Only has read-only access.
scoped_refptr<PrintedDocument> document_;
+ // The print destination, may be NULL.
+ scoped_refptr<PrintDestinationInterface> destination_;
+
// The print job owning this worker thread. It is guaranteed to outlive this
// object.
PrintJobWorkerOwner* owner_;

Powered by Google App Engine
This is Rietveld 408576698