summaryrefslogtreecommitdiffstats
path: root/printing/printing_context_mac.h
diff options
context:
space:
mode:
authorkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-05 00:12:53 +0000
committerkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-05 00:12:53 +0000
commit7868ecabafc39bcd917276899742be136cca2ae3 (patch)
treeb008edd73081d0df868eae216e18cc6dc56d382d /printing/printing_context_mac.h
parentf41067c4ff04b9552c48e89169b28cf078c1a8ba (diff)
downloadchromium_src-7868ecabafc39bcd917276899742be136cca2ae3.zip
chromium_src-7868ecabafc39bcd917276899742be136cca2ae3.tar.gz
chromium_src-7868ecabafc39bcd917276899742be136cca2ae3.tar.bz2
(1) Hook up the print button to send the pages to the default printer for printing without displaying a native dialog.
(2) Made code changes to accept a print page range from the user and to print only those specified pages. BUG=none TEST=Enable print preview on mac, provide a valid page range and make sure print button in print preview works. Review URL: http://codereview.chromium.org/6533006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77003 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/printing_context_mac.h')
-rw-r--r--printing/printing_context_mac.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/printing/printing_context_mac.h b/printing/printing_context_mac.h
index 8f6bf34..b709460 100644
--- a/printing/printing_context_mac.h
+++ b/printing/printing_context_mac.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.
@@ -28,6 +28,7 @@ class PrintingContextMac : public PrintingContext {
bool has_selection,
PrintSettingsCallback* callback);
virtual Result UseDefaultSettings();
+ virtual Result UpdatePrintSettings(const PageRanges& ranges);
virtual Result InitWithSettings(const PrintSettings& settings);
virtual Result NewDocument(const string16& document_name);
virtual Result NewPage();