| Index: printing/printing_context_mac.mm
|
| diff --git a/printing/printing_context_mac.mm b/printing/printing_context_mac.mm
|
| index 1826c493e6feb6719b8c1f9b34a7a9ccacde73e9..749a43c9fde89632cffaa30e516515c90b9227a2 100644
|
| --- a/printing/printing_context_mac.mm
|
| +++ b/printing/printing_context_mac.mm
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2009 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.
|
|
|
| @@ -10,6 +10,7 @@
|
| #include "base/logging.h"
|
| #include "base/mac/scoped_cftyperef.h"
|
| #include "base/sys_string_conversions.h"
|
| +#include "base/values.h"
|
| #include "printing/print_settings_initializer_mac.h"
|
|
|
| namespace printing {
|
| @@ -80,6 +81,19 @@ PrintingContext::Result PrintingContextMac::UseDefaultSettings() {
|
| return OK;
|
| }
|
|
|
| +PrintingContext::Result PrintingContextMac::UpdatePrintSettings(
|
| + const DictionaryValue* job_settings, const PageRanges& ranges) {
|
| + DCHECK(!in_print_job_);
|
| +
|
| + // TODO (kmadhusu): Update other print job settings such as number of copies,
|
| + // collate, etc.,
|
| +
|
| + // Update the print range information.
|
| + settings_.ranges = ranges;
|
| +
|
| + return OK;
|
| +}
|
| +
|
| void PrintingContextMac::ParsePrintInfo(NSPrintInfo* print_info) {
|
| ResetSettings();
|
| print_info_ = [print_info retain];
|
|
|