OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |