| 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_mac.h" | 5 #include "printing/printing_context_mac.h" |
| 6 | 6 |
| 7 #import <ApplicationServices/ApplicationServices.h> | 7 #import <ApplicationServices/ApplicationServices.h> |
| 8 #import <AppKit/AppKit.h> | 8 #import <AppKit/AppKit.h> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 void PrintingContextMac::Cancel() { | 194 void PrintingContextMac::Cancel() { |
| 195 abort_printing_ = true; | 195 abort_printing_ = true; |
| 196 in_print_job_ = false; | 196 in_print_job_ = false; |
| 197 context_ = NULL; | 197 context_ = NULL; |
| 198 | 198 |
| 199 PMPrintSession print_session = | 199 PMPrintSession print_session = |
| 200 static_cast<PMPrintSession>([print_info_ PMPrintSession]); | 200 static_cast<PMPrintSession>([print_info_ PMPrintSession]); |
| 201 PMSessionEndPageNoDialog(print_session); | 201 PMSessionEndPageNoDialog(print_session); |
| 202 } | 202 } |
| 203 | 203 |
| 204 void PrintingContextMac::DismissDialog() { | |
| 205 NOTIMPLEMENTED(); | |
| 206 } | |
| 207 | |
| 208 void PrintingContextMac::ReleaseContext() { | 204 void PrintingContextMac::ReleaseContext() { |
| 209 if (print_info_) { | 205 if (print_info_) { |
| 210 [print_info_ autorelease]; | 206 [print_info_ autorelease]; |
| 211 print_info_ = nil; | 207 print_info_ = nil; |
| 212 context_ = NULL; | 208 context_ = NULL; |
| 213 } | 209 } |
| 214 } | 210 } |
| 215 | 211 |
| 216 gfx::NativeDrawingContext PrintingContextMac::context() const { | 212 gfx::NativeDrawingContext PrintingContextMac::context() const { |
| 217 return context_; | 213 return context_; |
| 218 } | 214 } |
| 219 | 215 |
| 220 } // namespace printing | 216 } // namespace printing |
| OLD | NEW |