diff options
author | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-13 22:54:12 +0000 |
---|---|---|
committer | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-13 22:54:12 +0000 |
commit | b23aee0f939e07a9531935e7f0daa8a346912708 (patch) | |
tree | 6d10b5cde48ef5b3b1cf42831bded0960c40f7a6 /chrome/renderer/mock_render_thread.h | |
parent | 7ede31fe8ed08ff9c3e016a021a40d831e5e3587 (diff) | |
download | chromium_src-b23aee0f939e07a9531935e7f0daa8a346912708.zip chromium_src-b23aee0f939e07a9531935e7f0daa8a346912708.tar.gz chromium_src-b23aee0f939e07a9531935e7f0daa8a346912708.tar.bz2 |
Wire up printing on the Mac
Get the printing support class stack building and hooked up on the Mac.
Add support for creating NativeMetafile objects with PDF print data on the renderer side, and passing them to the browser via the existing printing IPC system.
Flip on the simpler printing unit tests (those that don't require PDF -> bitmap conversion).
BUG=13158
TEST=Print on the Mac--it should work!
Review URL: http://codereview.chromium.org/276004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28907 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/mock_render_thread.h')
-rw-r--r-- | chrome/renderer/mock_render_thread.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/renderer/mock_render_thread.h b/chrome/renderer/mock_render_thread.h index eb1a458..d4ed9f7 100644 --- a/chrome/renderer/mock_render_thread.h +++ b/chrome/renderer/mock_render_thread.h @@ -87,8 +87,15 @@ class MockRenderThread : public RenderThreadBase { const std::string& source_extension_id, const std::string& target_extension_id, int* port_id); +#if defined(OS_WIN) void OnDuplicateSection(base::SharedMemoryHandle renderer_handle, base::SharedMemoryHandle* browser_handle); +#endif + +#if defined(OS_MACOSX) + void OnAllocatePDFTransport(size_t buffer_size, + base::SharedMemoryHandle* handle); +#endif // The RenderView expects default print settings. void OnGetDefaultPrintSettings(ViewMsg_Print_Params* setting); |