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

Unified Diff: chrome/renderer/printing/print_web_view_helper.h

Issue 138933002: Check frame before generation print preview. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/renderer/printing/print_web_view_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/printing/print_web_view_helper.h
diff --git a/chrome/renderer/printing/print_web_view_helper.h b/chrome/renderer/printing/print_web_view_helper.h
index 70fb801d8944d479bb06324cf7dabb21630c4bc8..bf54d3afc1df772ca69d044913b60530e6d2e28a 100644
--- a/chrome/renderer/printing/print_web_view_helper.h
+++ b/chrome/renderer/printing/print_web_view_helper.h
@@ -137,25 +137,6 @@ class PrintWebViewHelper
// Returns true if the current destination printer is PRINT_TO_PDF.
bool IsPrintToPdfRequested(const base::DictionaryValue& settings);
- // Returns the print scaling option to retain/scale/crop the source page size
- // to fit the printable area of the paper.
- //
- // We retain the source page size when the current destination printer is
- // SAVE_AS_PDF.
- //
- // We crop the source page size to fit the printable area or we print only the
- // left top page contents when
- // (1) Source is PDF and the user has requested not to fit to printable area
- // via |job_settings|.
- // (2) Source is PDF. This is the first preview request and print scaling
- // option is disabled for initiator renderer plugin.
- //
- // In all other cases, we scale the source page to fit the printable area.
- blink::WebPrintScalingOption GetPrintScalingOption(
- bool source_is_html,
- const base::DictionaryValue& job_settings,
- const PrintMsg_Print_Params& params);
-
// Initiate print preview.
void OnInitiatePrintPreview(bool selection_only);
« no previous file with comments | « no previous file | chrome/renderer/printing/print_web_view_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698