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

Side by Side Diff: printing/printing_context_cairo.cc

Issue 3292019: Printing: Convert several wstrings to string16. (Closed)
Patch Set: Review fixes. Created 10 years, 3 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
« no previous file with comments | « printing/printing_context.h ('k') | printing/printing_context_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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.h" 5 #include "printing/printing_context.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace printing { 9 namespace printing {
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 void PrintingContext::ResetSettings() { 53 void PrintingContext::ResetSettings() {
54 #ifndef NDEBUG 54 #ifndef NDEBUG
55 page_number_ = -1; 55 page_number_ = -1;
56 #endif 56 #endif
57 dialog_box_dismissed_ = false; 57 dialog_box_dismissed_ = false;
58 abort_printing_ = false; 58 abort_printing_ = false;
59 in_print_job_ = false; 59 in_print_job_ = false;
60 } 60 }
61 61
62 PrintingContext::Result PrintingContext::NewDocument( 62 PrintingContext::Result PrintingContext::NewDocument(
63 const std::wstring& document_name) { 63 const string16& document_name) {
64 DCHECK(!in_print_job_); 64 DCHECK(!in_print_job_);
65 65
66 NOTIMPLEMENTED(); 66 NOTIMPLEMENTED();
67 67
68 #ifndef NDEBUG 68 #ifndef NDEBUG
69 page_number_ = 0; 69 page_number_ = 0;
70 #endif 70 #endif
71 71
72 return FAILED; 72 return FAILED;
73 } 73 }
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 void PrintingContext::DismissDialog() { 117 void PrintingContext::DismissDialog() {
118 NOTIMPLEMENTED(); 118 NOTIMPLEMENTED();
119 } 119 }
120 120
121 PrintingContext::Result PrintingContext::OnError() { 121 PrintingContext::Result PrintingContext::OnError() {
122 ResetSettings(); 122 ResetSettings();
123 return abort_printing_ ? CANCEL : FAILED; 123 return abort_printing_ ? CANCEL : FAILED;
124 } 124 }
125 125
126 } // namespace printing 126 } // namespace printing
OLDNEW
« no previous file with comments | « printing/printing_context.h ('k') | printing/printing_context_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698