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

Unified Diff: chrome/renderer/print_web_view_helper.h

Issue 125082: Add Print Selection support to Chrome. This change is fairly involved since ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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 | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/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/print_web_view_helper.h
===================================================================
--- chrome/renderer/print_web_view_helper.h (revision 18804)
+++ chrome/renderer/print_web_view_helper.h (working copy)
@@ -20,6 +20,7 @@
class RenderView;
class WebView;
+struct ViewMsg_Print_Params;
struct ViewMsg_PrintPage_Params;
struct ViewMsg_PrintPages_Params;
@@ -36,7 +37,17 @@
void SyncPrint(WebFrame* frame);
+ // Is there a background print in progress?
+ bool IsPrinting() {
+ return print_web_view_.get() != NULL;
+ }
+
+ // Notification when printing is done - signal teardown
+ void DidFinishPrinting(bool success);
+
protected:
+ bool CopyAndPrint(const ViewMsg_PrintPages_Params& params,
+ WebFrame* web_frame);
// Prints the page listed in |params|.
void PrintPage(const ViewMsg_PrintPage_Params& params,
@@ -44,6 +55,7 @@
WebFrame* frame);
// Prints all the pages listed in |params|.
+ // It will implicitly revert the document to display CSS media type.
void PrintPages(const ViewMsg_PrintPages_Params& params, WebFrame* frame);
// IPC::Message::Sender
@@ -52,7 +64,6 @@
int32 routing_id();
// WebViewDeletegate
- virtual void DidStartLoading(WebView* webview) {}
virtual void DidStopLoading(WebView* webview);
virtual gfx::NativeViewId GetContainingView(WebWidget* webwidget);
virtual void DidInvalidateRect(WebWidget* webwidget,
@@ -85,6 +96,7 @@
private:
RenderView* render_view_;
scoped_ptr<WebView> print_web_view_;
+ scoped_ptr<ViewMsg_PrintPages_Params> print_pages_params_;
private:
DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper);
Property changes on: chrome\renderer\print_web_view_helper.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/print_web_view_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698