summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/mock_render_thread.h
diff options
context:
space:
mode:
authormhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-04 12:22:45 +0000
committermhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-04 12:22:45 +0000
commit1f6079539a1ffb2a17579f22280f476895d2414c (patch)
tree53a928f2167e28750be8b50fbdae58f9c2aae9dd /chrome/renderer/mock_render_thread.h
parent1156a8e6ba080e8890e2a9695bd75c34800d0808 (diff)
downloadchromium_src-1f6079539a1ffb2a17579f22280f476895d2414c.zip
chromium_src-1f6079539a1ffb2a17579f22280f476895d2414c.tar.gz
chromium_src-1f6079539a1ffb2a17579f22280f476895d2414c.tar.bz2
Implement PrintPageAsJPEG feature for Print Preview.In order to show the tab contents to the print tab, the renderer should print the page as a JPEG image so it could be rendered in the DOMUI. A unit test case has been created to make sure the image contains something from deciding whether its not 100% white.MockPrinter has been altered to remove the const parameter, since its useful to retrieve the DefaultSettings not via IPC.BUG=173 (http://crbug.com/173)TEST=created a unit test and ran it.
Review URL: http://codereview.chromium.org/196021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25445 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/mock_render_thread.h')
-rw-r--r--chrome/renderer/mock_render_thread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/renderer/mock_render_thread.h b/chrome/renderer/mock_render_thread.h
index 057f0cf..69a5186 100644
--- a/chrome/renderer/mock_render_thread.h
+++ b/chrome/renderer/mock_render_thread.h
@@ -70,7 +70,7 @@ class MockRenderThread : public RenderThreadBase {
void SendCloseMessage();
// Returns the pseudo-printer instance.
- const MockPrinter* printer() const { return printer_.get(); }
+ MockPrinter* printer() const { return printer_.get(); }
private:
// This function operates as a regular IPC listener.