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

Side by Side Diff: printing/printing_context_mac.mm

Issue 24989002: Cleanup: Use base namespace in printing/. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 2 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_no_system_dialog.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) 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
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
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
OLDNEW
« no previous file with comments | « printing/printing_context_mac.h ('k') | printing/printing_context_no_system_dialog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698