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

Side by Side Diff: chrome/browser/printing/printing_message_filter.cc

Issue 11818062: Adds option to enable CSS backgrounds for printing. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merge with trunk. Created 7 years, 11 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/printing/printing_message_filter.h" 5 #include "chrome/browser/printing/printing_message_filter.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 params->document_cookie = 0; 71 params->document_cookie = 0;
72 params->selection_only = settings.selection_only; 72 params->selection_only = settings.selection_only;
73 params->supports_alpha_blend = settings.supports_alpha_blend(); 73 params->supports_alpha_blend = settings.supports_alpha_blend();
74 74
75 params->display_header_footer = settings.display_header_footer; 75 params->display_header_footer = settings.display_header_footer;
76 if (!settings.display_header_footer) 76 if (!settings.display_header_footer)
77 return; 77 return;
78 params->date = settings.date; 78 params->date = settings.date;
79 params->title = settings.title; 79 params->title = settings.title;
80 params->url = settings.url; 80 params->url = settings.url;
81 params->should_print_backgrounds = settings.should_print_backgrounds;
81 } 82 }
82 83
83 } // namespace 84 } // namespace
84 85
85 PrintingMessageFilter::PrintingMessageFilter(int render_process_id, 86 PrintingMessageFilter::PrintingMessageFilter(int render_process_id,
86 Profile* profile) 87 Profile* profile)
87 : print_job_manager_(g_browser_process->print_job_manager()), 88 : print_job_manager_(g_browser_process->print_job_manager()),
88 profile_io_data_(ProfileIOData::FromResourceContext( 89 profile_io_data_(ProfileIOData::FromResourceContext(
89 profile->GetResourceContext())), 90 profile->GetResourceContext())),
90 render_process_id_(render_process_id) { 91 render_process_id_(render_process_id) {
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 } 375 }
375 } 376 }
376 377
377 void PrintingMessageFilter::OnCheckForCancel(int32 preview_ui_id, 378 void PrintingMessageFilter::OnCheckForCancel(int32 preview_ui_id,
378 int preview_request_id, 379 int preview_request_id,
379 bool* cancel) { 380 bool* cancel) {
380 PrintPreviewUI::GetCurrentPrintPreviewStatus(preview_ui_id, 381 PrintPreviewUI::GetCurrentPrintPreviewStatus(preview_ui_id,
381 preview_request_id, 382 preview_request_id,
382 cancel); 383 cancel);
383 } 384 }
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/resources/print_preview/data/app_state.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698