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

Side by Side Diff: printing/printing_context_win.cc

Issue 702603004: Renamed DISABLE_BASIC_PRINTING and ENABLE_FULL_PRINTING. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Wed Nov 5 02:31:54 PST 2014 Created 6 years, 1 month 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_win.h" 5 #include "printing/printing_context_win.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "printing/backend/print_backend.h" 11 #include "printing/backend/print_backend.h"
12 #include "printing/backend/win_helper.h" 12 #include "printing/backend/win_helper.h"
13 #include "printing/print_settings_initializer_win.h" 13 #include "printing/print_settings_initializer_win.h"
14 #include "printing/printed_document.h" 14 #include "printing/printed_document.h"
15 #include "printing/printing_context_system_dialog_win.h" 15 #include "printing/printing_context_system_dialog_win.h"
16 #include "printing/printing_utils.h" 16 #include "printing/printing_utils.h"
17 #include "printing/units.h" 17 #include "printing/units.h"
18 #include "skia/ext/platform_device.h" 18 #include "skia/ext/platform_device.h"
19 19
20 #if defined(USE_AURA) 20 #if defined(USE_AURA)
21 #include "ui/aura/remote_window_tree_host_win.h" 21 #include "ui/aura/remote_window_tree_host_win.h"
22 #include "ui/aura/window.h" 22 #include "ui/aura/window.h"
23 #endif 23 #endif
24 24
25 namespace printing { 25 namespace printing {
26 26
27 // static 27 // static
28 scoped_ptr<PrintingContext> PrintingContext::Create(Delegate* delegate) { 28 scoped_ptr<PrintingContext> PrintingContext::Create(Delegate* delegate) {
29 #if defined(DISABLE_BASIC_PRINTING) 29 #if defined(ENABLE_BASIC_PRINTING)
30 return make_scoped_ptr<PrintingContext>(new PrintingContextWin(delegate));
31 #else // DISABLE_BASIC_PRINTING
32 return make_scoped_ptr<PrintingContext>( 30 return make_scoped_ptr<PrintingContext>(
33 new PrintingContextSytemDialogWin(delegate)); 31 new PrintingContextSytemDialogWin(delegate));
34 #endif // DISABLE_BASIC_PRINTING 32 #else // ENABLE_BASIC_PRINTING
33 return make_scoped_ptr<PrintingContext>(new PrintingContextWin(delegate));
34 #endif // EENABLE_BASIC_PRINTING
35 } 35 }
36 36
37 PrintingContextWin::PrintingContextWin(Delegate* delegate) 37 PrintingContextWin::PrintingContextWin(Delegate* delegate)
38 : PrintingContext(delegate), context_(NULL) { 38 : PrintingContext(delegate), context_(NULL) {
39 } 39 }
40 40
41 PrintingContextWin::~PrintingContextWin() { 41 PrintingContextWin::~PrintingContextWin() {
42 ReleaseContext(); 42 ReleaseContext();
43 } 43 }
44 44
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 389
390 if (canceled) { 390 if (canceled) {
391 result.reset(); 391 result.reset();
392 abort_printing_ = true; 392 abort_printing_ = true;
393 } 393 }
394 394
395 return result.Pass(); 395 return result.Pass();
396 } 396 }
397 397
398 } // namespace printing 398 } // namespace printing
OLDNEW
« build/common.gypi ('K') | « content/browser/renderer_host/pepper/pepper_print_settings_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698