OLD | NEW |
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 Loading... |
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 gfx::NativeDrawingContext PrintingContextMac::context() const { | 508 skia::NativeDrawingContext PrintingContextMac::context() const { |
509 return context_; | 509 return context_; |
510 } | 510 } |
511 | 511 |
512 } // namespace printing | 512 } // namespace printing |
OLD | NEW |