OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "printing/printing_context_no_system_dialog.h" | 5 #include "printing/printing_context_no_system_dialog.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 #include <unicode/ulocdata.h> | 8 #include <unicode/ulocdata.h> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/memory/ptr_util.h" |
11 #include "base/values.h" | 12 #include "base/values.h" |
12 #include "printing/metafile.h" | 13 #include "printing/metafile.h" |
13 #include "printing/print_job_constants.h" | 14 #include "printing/print_job_constants.h" |
14 #include "printing/units.h" | 15 #include "printing/units.h" |
15 | 16 |
16 namespace printing { | 17 namespace printing { |
17 | 18 |
18 // static | 19 // static |
19 scoped_ptr<PrintingContext> PrintingContext::Create(Delegate* delegate) { | 20 std::unique_ptr<PrintingContext> PrintingContext::Create(Delegate* delegate) { |
20 return make_scoped_ptr<PrintingContext>( | 21 return base::WrapUnique(new PrintingContextNoSystemDialog(delegate)); |
21 new PrintingContextNoSystemDialog(delegate)); | |
22 } | 22 } |
23 | 23 |
24 PrintingContextNoSystemDialog::PrintingContextNoSystemDialog(Delegate* delegate) | 24 PrintingContextNoSystemDialog::PrintingContextNoSystemDialog(Delegate* delegate) |
25 : PrintingContext(delegate) { | 25 : PrintingContext(delegate) { |
26 } | 26 } |
27 | 27 |
28 PrintingContextNoSystemDialog::~PrintingContextNoSystemDialog() { | 28 PrintingContextNoSystemDialog::~PrintingContextNoSystemDialog() { |
29 ReleaseContext(); | 29 ReleaseContext(); |
30 } | 30 } |
31 | 31 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 // Intentional No-op. | 143 // Intentional No-op. |
144 } | 144 } |
145 | 145 |
146 gfx::NativeDrawingContext PrintingContextNoSystemDialog::context() const { | 146 gfx::NativeDrawingContext PrintingContextNoSystemDialog::context() const { |
147 // Intentional No-op. | 147 // Intentional No-op. |
148 return NULL; | 148 return NULL; |
149 } | 149 } |
150 | 150 |
151 } // namespace printing | 151 } // namespace printing |
152 | 152 |
OLD | NEW |