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

Side by Side Diff: printing/printing_context_mac.mm

Issue 2383473004: Remove PrintingContext::InitWithSettings(). (Closed)
Patch Set: fix build Created 4 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
« 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 <AppKit/AppKit.h> 7 #import <AppKit/AppKit.h>
8 8
9 #import <iomanip> 9 #import <iomanip>
10 #import <numeric> 10 #import <numeric>
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 NSDictionary* print_info_dict = [print_info_.get() dictionary]; 405 NSDictionary* print_info_dict = [print_info_.get() dictionary];
406 if (![[print_info_dict objectForKey:NSPrintAllPages] boolValue]) { 406 if (![[print_info_dict objectForKey:NSPrintAllPages] boolValue]) {
407 PageRange range; 407 PageRange range;
408 range.from = [[print_info_dict objectForKey:NSPrintFirstPage] intValue] - 1; 408 range.from = [[print_info_dict objectForKey:NSPrintFirstPage] intValue] - 1;
409 range.to = [[print_info_dict objectForKey:NSPrintLastPage] intValue] - 1; 409 range.to = [[print_info_dict objectForKey:NSPrintLastPage] intValue] - 1;
410 page_ranges.push_back(range); 410 page_ranges.push_back(range);
411 } 411 }
412 return page_ranges; 412 return page_ranges;
413 } 413 }
414 414
415 PrintingContext::Result PrintingContextMac::InitWithSettings(
416 const PrintSettings& settings) {
417 DCHECK(!in_print_job_);
418
419 settings_ = settings;
420
421 NOTIMPLEMENTED();
422
423 return FAILED;
424 }
425
426 PrintingContext::Result PrintingContextMac::NewDocument( 415 PrintingContext::Result PrintingContextMac::NewDocument(
427 const base::string16& document_name) { 416 const base::string16& document_name) {
428 DCHECK(!in_print_job_); 417 DCHECK(!in_print_job_);
429 418
430 in_print_job_ = true; 419 in_print_job_ = true;
431 420
432 PMPrintSession print_session = 421 PMPrintSession print_session =
433 static_cast<PMPrintSession>([print_info_.get() PMPrintSession]); 422 static_cast<PMPrintSession>([print_info_.get() PMPrintSession]);
434 PMPrintSettings print_settings = 423 PMPrintSettings print_settings =
435 static_cast<PMPrintSettings>([print_info_.get() PMPrintSettings]); 424 static_cast<PMPrintSettings>([print_info_.get() PMPrintSettings]);
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 void PrintingContextMac::ReleaseContext() { 503 void PrintingContextMac::ReleaseContext() {
515 print_info_.reset(); 504 print_info_.reset();
516 context_ = NULL; 505 context_ = NULL;
517 } 506 }
518 507
519 gfx::NativeDrawingContext PrintingContextMac::context() const { 508 gfx::NativeDrawingContext PrintingContextMac::context() const {
520 return context_; 509 return context_;
521 } 510 }
522 511
523 } // namespace printing 512 } // 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