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

Side by Side Diff: printing/printing_context_mac.mm

Issue 2714073002: Eliminate PS printing edge cases (Closed)
Patch Set: Fix compile errors Created 3 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <AppKit/AppKit.h> 7 #import <AppKit/AppKit.h>
8 8
9 #import <iomanip> 9 #import <iomanip>
10 #import <numeric> 10 #import <numeric>
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 PMPrintSession print_session = 498 PMPrintSession print_session =
499 static_cast<PMPrintSession>([print_info_.get() PMPrintSession]); 499 static_cast<PMPrintSession>([print_info_.get() PMPrintSession]);
500 PMSessionEndPageNoDialog(print_session); 500 PMSessionEndPageNoDialog(print_session);
501 } 501 }
502 502
503 void PrintingContextMac::ReleaseContext() { 503 void PrintingContextMac::ReleaseContext() {
504 print_info_.reset(); 504 print_info_.reset();
505 context_ = NULL; 505 context_ = NULL;
506 } 506 }
507 507
508 void PrintingContextMac::SetPostScriptEnabled(bool is_enabled) {
509 // Intentional No-op.
510 }
511
508 skia::NativeDrawingContext PrintingContextMac::context() const { 512 skia::NativeDrawingContext PrintingContextMac::context() const {
509 return context_; 513 return context_;
510 } 514 }
511 515
512 } // namespace printing 516 } // namespace printing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698