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

Side by Side Diff: printing/printing_context_mac.mm

Issue 6510007: Printing: Delete dead code in PrintJob and cleanup corresponding code in Prin... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « printing/printing_context_mac.h ('k') | printing/printing_context_win.h » ('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_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
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
OLDNEW
« no previous file with comments | « printing/printing_context_mac.h ('k') | printing/printing_context_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698