summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/render_view.h
diff options
context:
space:
mode:
authormaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-19 17:36:22 +0000
committermaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-19 17:36:22 +0000
commit88a3eccb5605fc9224ce59c76473b7aae2c31bc8 (patch)
tree9c31830256ada147c4f19ffb90659da3fb97fa3d /chrome/renderer/render_view.h
parentf3735c5dc0269579afc173d9e519243c305e1186 (diff)
downloadchromium_src-88a3eccb5605fc9224ce59c76473b7aae2c31bc8.zip
chromium_src-88a3eccb5605fc9224ce59c76473b7aae2c31bc8.tar.gz
chromium_src-88a3eccb5605fc9224ce59c76473b7aae2c31bc8.tar.bz2
Remove code duplicated from webcore and use the common PrintContext facility.
Review URL: http://codereview.chromium.org/20470 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12100 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_view.h')
-rw-r--r--chrome/renderer/render_view.h20
1 files changed, 3 insertions, 17 deletions
diff --git a/chrome/renderer/render_view.h b/chrome/renderer/render_view.h
index 7263cb7..05e94c2 100644
--- a/chrome/renderer/render_view.h
+++ b/chrome/renderer/render_view.h
@@ -572,17 +572,10 @@ class RenderView : public RenderWidget,
// Notification of volume property of an audio output stream.
void OnAudioStreamVolume(int stream_id, double left, double right);
- // Switches the frame's CSS media type to "print" and calculate the number of
- // printed pages that are to be expected. |frame| will be used to calculate
- // the number of expected pages for this frame only.
- int SwitchFrameToPrintMediaType(const ViewMsg_Print_Params& params,
- WebFrame* frame);
-
- // Switches the frame's CSS media type to "display".
- void SwitchFrameToDisplayMediaType(WebFrame* frame);
-
// Prints the page listed in |params|.
- void PrintPage(const ViewMsg_PrintPage_Params& params, WebFrame* frame);
+ void PrintPage(const ViewMsg_PrintPage_Params& params,
+ const gfx::Size& canvas_size,
+ WebFrame* frame);
// Prints all the pages listed in |params|.
void PrintPages(const ViewMsg_PrintPages_Params& params, WebFrame* frame);
@@ -733,13 +726,6 @@ class RenderView : public RenderWidget,
// check this to know if they should pump messages/tasks then.
scoped_ptr<base::WaitableEvent> modal_dialog_event_;
- // Document width when in print CSS media type. 0 otherwise.
- int printed_document_width_;
-
- // Backup the view size before printing since it needs to be overriden. This
- // value is set to restore the view size when printing is done.
- gfx::Size printing_view_size_;
-
scoped_refptr<DebugMessageHandler> debug_message_handler_;
// Provides access to this renderer from the remote Inspector UI.