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

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

Issue 8165004: Stubs for printing under Aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/printing/print_job_worker.cc
diff --git a/chrome/browser/printing/print_job_worker.cc b/chrome/browser/printing/print_job_worker.cc
index 7a850c0d59cbe6a9a8769926356b14c2c66dba45..27e510a4e6c017286522d60631b9cd7431af9ba1 100644
--- a/chrome/browser/printing/print_job_worker.cc
+++ b/chrome/browser/printing/print_job_worker.cc
@@ -57,8 +57,14 @@ PrintJobWorker::PrintJobWorker(PrintJobWorkerOwner* owner)
// The object is created in the IO thread.
DCHECK_EQ(owner_->message_loop(), MessageLoop::current());
+#if defined(USE_AURA) && !defined(OS_CHROMEOS)
+ // TODO(saintlou): Our goal is to have Aura for ChromeOS. So the
+ // printing USE_AURA && !OS_CHROMEOS is not a use case for shipping.
+ NOTIMPLEMENTED();
kmadhusu 2011/10/05 22:44:52 Is there any specific reason for adding this check
+#else
printing_context_.reset(PrintingContext::Create(
g_browser_process->GetApplicationLocale()));
+#endif
}
PrintJobWorker::~PrintJobWorker() {
@@ -311,7 +317,11 @@ void PrintJobWorker::SpoolPage(PrintedPage& page) {
}
// Actual printing.
-#if defined(OS_WIN) || defined(OS_MACOSX)
+#if defined(USE_AURA) && !defined(OS_CHROMEOS)
+ // TODO(saintlou): Our goal is to have Aura for ChromeOS. So the
+ // printing USE_AURA && !OS_CHROMEOS is not a use case for shipping.
+ NOTIMPLEMENTED();
+#elif defined(OS_WIN) || defined(OS_MACOSX)
document_->RenderPrintedPage(page, printing_context_->context());
#elif defined(OS_POSIX)
document_->RenderPrintedPage(page, printing_context_.get());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698