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

Side by Side Diff: printing/printing_context_no_system_dialog.cc

Issue 2117713002: Print directly to CUPS using the IPP APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ippRead
Patch Set: Update patch Created 4 years, 5 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 unified diff | Download patch
OLDNEW
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/memory/ptr_util.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "printing/metafile.h" 13 #include "printing/metafile.h"
14 #include "printing/print_job_constants.h" 14 #include "printing/print_job_constants.h"
15 #include "printing/units.h" 15 #include "printing/units.h"
16 16
17 namespace printing { 17 namespace printing {
18 18
19 #if !defined(USE_CUPS)
19 // static 20 // static
20 std::unique_ptr<PrintingContext> PrintingContext::Create(Delegate* delegate) { 21 std::unique_ptr<PrintingContext> PrintingContext::Create(Delegate* delegate) {
21 return base::WrapUnique(new PrintingContextNoSystemDialog(delegate)); 22 return base::WrapUnique(new PrintingContextNoSystemDialog(delegate));
22 } 23 }
24 #endif // !defined(USE_CUPS)
23 25
24 PrintingContextNoSystemDialog::PrintingContextNoSystemDialog(Delegate* delegate) 26 PrintingContextNoSystemDialog::PrintingContextNoSystemDialog(Delegate* delegate)
25 : PrintingContext(delegate) { 27 : PrintingContext(delegate) {
26 } 28 }
27 29
28 PrintingContextNoSystemDialog::~PrintingContextNoSystemDialog() { 30 PrintingContextNoSystemDialog::~PrintingContextNoSystemDialog() {
29 ReleaseContext(); 31 ReleaseContext();
30 } 32 }
31 33
32 void PrintingContextNoSystemDialog::AskUserForSettings( 34 void PrintingContextNoSystemDialog::AskUserForSettings(
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // Intentional No-op. 145 // Intentional No-op.
144 } 146 }
145 147
146 gfx::NativeDrawingContext PrintingContextNoSystemDialog::context() const { 148 gfx::NativeDrawingContext PrintingContextNoSystemDialog::context() const {
147 // Intentional No-op. 149 // Intentional No-op.
148 return NULL; 150 return NULL;
149 } 151 }
150 152
151 } // namespace printing 153 } // namespace printing
152 154
OLDNEW
« printing/printing_context_chromeos.cc ('K') | « printing/printing_context_chromeos.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698