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

Unified Diff: printing/printing_context.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: printing/printing_context.h
diff --git a/printing/printing_context.h b/printing/printing_context.h
index 6d51f0209c3de41c931378c37ec49f1d61118603..33c7ed6d9f092169e307880229715fdc87eaa86c 100644
--- a/printing/printing_context.h
+++ b/printing/printing_context.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.
@@ -13,6 +13,8 @@
#include "printing/print_settings.h"
#include "ui/gfx/native_widget_types.h"
+class DictionaryValue;
+
namespace printing {
// An abstraction of a printer context, implemented by objects that describe the
@@ -50,6 +52,10 @@ class PrintingContext {
// Initializes with predefined settings.
virtual Result InitWithSettings(const PrintSettings& settings) = 0;
+ // Update print settings.
+ virtual Result UpdatePrintSettings(const DictionaryValue* job_settings,
Lei Zhang 2011/02/18 05:21:42 Why do you have |job_settings| that's unused in al
kmadhusu 2011/02/21 01:30:26 Removed that argument.
+ const PageRanges& ranges) = 0;
+
// Does platform specific setup of the printer before the printing. Signal the
// printer that a document is about to be spooled.
// Warning: This function enters a message loop. That may cause side effects

Powered by Google App Engine
This is Rietveld 408576698