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

Unified Diff: chrome/renderer/print_web_view_helper.h

Issue 9703013: Printing: Catch more error conditions and remove more cruft. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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
Index: chrome/renderer/print_web_view_helper.h
===================================================================
--- chrome/renderer/print_web_view_helper.h (revision 126455)
+++ chrome/renderer/print_web_view_helper.h (working copy)
@@ -109,6 +109,7 @@
enum PrintingResult {
OK,
+ FAIL_PRINT_INIT,
FAIL_PRINT,
FAIL_PREVIEW,
};
@@ -193,7 +194,7 @@
// Initialize print page settings with default settings.
// Used only for native printing workflow.
- bool InitPrintSettings(WebKit::WebFrame* frame, const WebKit::WebNode& node);
+ bool InitPrintSettings();
// Initialize print page settings with default settings and prepare the frame
// for print. A new PrepareFrameAndViewForPrint is created to fulfill the
@@ -338,6 +339,7 @@
// Returns true if print preview should continue, false on failure.
bool PreviewPageRendered(int page_number, printing::Metafile* metafile);
+ // WebView used only to print the selection.
WebKit::WebView* print_web_view_;
scoped_ptr<PrintMsg_PrintPages_Params> print_pages_params_;

Powered by Google App Engine
This is Rietveld 408576698