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> | 7 #import <ApplicationServices/ApplicationServices.h> |
8 #import <AppKit/AppKit.h> | 8 #import <AppKit/AppKit.h> |
9 | 9 |
10 #import <iomanip> | 10 #import <iomanip> |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 DCHECK(!in_print_job_); | 413 DCHECK(!in_print_job_); |
414 | 414 |
415 settings_ = settings; | 415 settings_ = settings; |
416 | 416 |
417 NOTIMPLEMENTED(); | 417 NOTIMPLEMENTED(); |
418 | 418 |
419 return FAILED; | 419 return FAILED; |
420 } | 420 } |
421 | 421 |
422 PrintingContext::Result PrintingContextMac::NewDocument( | 422 PrintingContext::Result PrintingContextMac::NewDocument( |
423 const string16& document_name) { | 423 const base::string16& document_name) { |
424 DCHECK(!in_print_job_); | 424 DCHECK(!in_print_job_); |
425 | 425 |
426 in_print_job_ = true; | 426 in_print_job_ = true; |
427 | 427 |
428 PMPrintSession print_session = | 428 PMPrintSession print_session = |
429 static_cast<PMPrintSession>([print_info_.get() PMPrintSession]); | 429 static_cast<PMPrintSession>([print_info_.get() PMPrintSession]); |
430 PMPrintSettings print_settings = | 430 PMPrintSettings print_settings = |
431 static_cast<PMPrintSettings>([print_info_.get() PMPrintSettings]); | 431 static_cast<PMPrintSettings>([print_info_.get() PMPrintSettings]); |
432 PMPageFormat page_format = | 432 PMPageFormat page_format = |
433 static_cast<PMPageFormat>([print_info_.get() PMPageFormat]); | 433 static_cast<PMPageFormat>([print_info_.get() PMPageFormat]); |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 void PrintingContextMac::ReleaseContext() { | 510 void PrintingContextMac::ReleaseContext() { |
511 print_info_.reset(); | 511 print_info_.reset(); |
512 context_ = NULL; | 512 context_ = NULL; |
513 } | 513 } |
514 | 514 |
515 gfx::NativeDrawingContext PrintingContextMac::context() const { | 515 gfx::NativeDrawingContext PrintingContextMac::context() const { |
516 return context_; | 516 return context_; |
517 } | 517 } |
518 | 518 |
519 } // namespace printing | 519 } // namespace printing |
OLD | NEW |