| 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 <ApplicationServices/ApplicationServices.h> | |
| 8 #import <AppKit/AppKit.h> | 7 #import <AppKit/AppKit.h> |
| 9 | 8 |
| 10 #import <iomanip> | 9 #import <iomanip> |
| 11 #import <numeric> | 10 #import <numeric> |
| 12 | 11 |
| 13 #include "base/logging.h" | 12 #include "base/logging.h" |
| 14 #include "base/mac/scoped_cftyperef.h" | 13 #include "base/mac/scoped_cftyperef.h" |
| 15 #include "base/mac/scoped_nsautorelease_pool.h" | 14 #include "base/mac/scoped_nsautorelease_pool.h" |
| 16 #include "base/mac/scoped_nsexception_enabler.h" | 15 #include "base/mac/scoped_nsexception_enabler.h" |
| 17 #include "base/strings/sys_string_conversions.h" | 16 #include "base/strings/sys_string_conversions.h" |
| (...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 void PrintingContextMac::ReleaseContext() { | 518 void PrintingContextMac::ReleaseContext() { |
| 520 print_info_.reset(); | 519 print_info_.reset(); |
| 521 context_ = NULL; | 520 context_ = NULL; |
| 522 } | 521 } |
| 523 | 522 |
| 524 gfx::NativeDrawingContext PrintingContextMac::context() const { | 523 gfx::NativeDrawingContext PrintingContextMac::context() const { |
| 525 return context_; | 524 return context_; |
| 526 } | 525 } |
| 527 | 526 |
| 528 } // namespace printing | 527 } // namespace printing |
| OLD | NEW |