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

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

Issue 6533006: Print Preview: Hook up the print button to initiate printing without displaying a print dialog. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: '' Created 9 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
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 6b0183b64423a4dd7e175b364772ddaaed826f1d..94b5aae1544011ae6c85b7ba4b877fc1789a7ca6 100644
--- a/chrome/browser/printing/print_job_worker.h
+++ b/chrome/browser/printing/print_job_worker.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -14,6 +14,8 @@
#include "printing/printing_context.h"
#include "ui/gfx/native_widget_types.h"
+class DictionaryValue;
+
namespace printing {
class PrintedDocument;
@@ -42,6 +44,9 @@ class PrintJobWorker : public base::Thread {
bool has_selection,
bool use_overlays);
+ // Set the new print settings.
+ void SetSettings(const DictionaryValue* const new_settings);
Lei Zhang 2011/03/03 00:22:44 You probably should mention SetSettings() takes ow
kmadhusu 2011/03/04 19:39:02 Done.
+
// Starts the printing loop. Every pages are printed as soon as the data is
// available. Makes sure the new_document is the right one.
void StartPrinting(PrintedDocument* new_document);
@@ -92,6 +97,9 @@ class PrintJobWorker : public base::Thread {
// back into the IO thread for GetSettingsDone().
void GetSettingsWithUIDone(PrintingContext::Result result);
+ // Called on the UI thread to update the print settings.
+ void UpdatePrintSettings(const DictionaryValue* const new_settings);
+
// Reports settings back to owner_.
void GetSettingsDone(PrintingContext::Result result);
« no previous file with comments | « no previous file | chrome/browser/printing/print_job_worker.cc » ('j') | chrome/browser/printing/print_job_worker.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698