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

Issue 6826027: Connect the right metafiles for print preview on Linux and Windows. (Closed)

Created:
9 years, 8 months ago by vandebo (ex-Chrome)
Modified:
9 years, 7 months ago
Reviewers:
Lei Zhang, jam
CC:
chromium-reviews
Visibility:
Public.

Description

Connect the right metafiles for print preview on Linux and Windows. + Remove the NativeMetafileFactory since we can't just use preview flag. + Update each Metafile constructor site to use PreviewMetafile or NativeMetafileImpl. + Fix misc. problems blocking pdf generation on Windows. + Rename the metafile interface. BUG=NONE TEST=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=81161

Patch Set 1 #

Patch Set 2 : Fix compile issues and rename MetafileInterface to Metafile #

Total comments: 12

Patch Set 3 : Address comments + nits. #

Patch Set 4 : Rebase #

Patch Set 5 : Fix compile problems #

Unified diffs Side-by-side diffs Delta from patch set Stats (+308 lines, -623 lines) Patch
M chrome/browser/printing/print_dialog_gtk.h View 1 2 3 4 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/printing/print_dialog_gtk.cc View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/printing/print_view_manager.cc View 1 2 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_handler.cc View 1 4 chunks +6 lines, -12 lines 0 comments Download
M chrome/common/common_param_traits_unittest.cc View 1 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/renderer/mock_printer.cc View 1 2 chunks +4 lines, -7 lines 0 comments Download
M chrome/renderer/print_web_view_helper.h View 1 2 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/renderer/print_web_view_helper.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/renderer/print_web_view_helper_linux.cc View 1 10 chunks +20 lines, -22 lines 0 comments Download
M chrome/renderer/print_web_view_helper_mac.mm View 1 2 7 chunks +17 lines, -20 lines 0 comments Download
M chrome/renderer/print_web_view_helper_win.cc View 1 2 3 4 5 chunks +65 lines, -72 lines 0 comments Download
M content/plugin/webplugin_delegate_stub.cc View 1 2 chunks +7 lines, -10 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/webplugin_delegate_proxy.cc View 1 2 chunks +4 lines, -6 lines 0 comments Download
M printing/emf_win.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M printing/image.h View 1 2 4 chunks +5 lines, -4 lines 0 comments Download
M printing/image.cc View 1 3 chunks +6 lines, -8 lines 0 comments Download
M printing/image_cairo.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M printing/image_mac.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M printing/image_win.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
A + printing/metafile.h View 1 4 chunks +5 lines, -6 lines 0 comments Download
A printing/metafile_impl.h View 1 1 chunk +33 lines, -0 lines 0 comments Download
A printing/metafile_skia_wrapper.h View 1 1 chunk +34 lines, -0 lines 0 comments Download
A + printing/metafile_skia_wrapper.cc View 1 3 chunks +11 lines, -13 lines 0 comments Download
D printing/native_metafile.h View 1 1 chunk +0 lines, -152 lines 0 comments Download
D printing/native_metafile_factory.h View 1 1 chunk +0 lines, -42 lines 0 comments Download
D printing/native_metafile_factory.cc View 1 1 chunk +0 lines, -47 lines 0 comments Download
D printing/native_metafile_skia_wrapper.h View 1 chunk +0 lines, -34 lines 0 comments Download
D printing/native_metafile_skia_wrapper.cc View 1 chunk +0 lines, -55 lines 0 comments Download
M printing/pdf_metafile_cairo_linux.h View 1 3 chunks +4 lines, -9 lines 0 comments Download
M printing/pdf_metafile_cg_mac.h View 1 3 chunks +4 lines, -10 lines 0 comments Download
M printing/pdf_metafile_skia.h View 1 3 chunks +5 lines, -10 lines 0 comments Download
M printing/print_dialog_gtk_interface.h View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
printing/printed_document.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M printing/printed_document.cc View 1 4 chunks +5 lines, -5 lines 0 comments Download
M printing/printed_document_cairo.cc View 1 chunk +1 line, -1 line 0 comments Download
M printing/printed_document_mac.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M printing/printed_document_win.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M printing/printed_page.h View 1 3 chunks +4 lines, -4 lines 0 comments Download
M printing/printed_page.cc View 1 3 chunks +5 lines, -5 lines 0 comments Download
M printing/printing.gyp View 1 2 3 2 chunks +4 lines, -5 lines 0 comments Download
M printing/printing_context_cairo.h View 1 2 3 2 chunks +2 lines, -5 lines 0 comments Download
M printing/printing_context_cairo.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M skia/ext/vector_platform_device_skia.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.cc View 1 3 chunks +11 lines, -14 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Lei Zhang
http://codereview.chromium.org/6826027/diff/2001/chrome/browser/printing/print_view_manager.cc File chrome/browser/printing/print_view_manager.cc (right): http://codereview.chromium.org/6826027/diff/2001/chrome/browser/printing/print_view_manager.cc#newcode23 chrome/browser/printing/print_view_manager.cc:23: #include "printing/metafile_impl.h" you probably don't need both. metafile_impl.h will ...
9 years, 8 months ago (2011-04-11 02:51:10 UTC) #1
vandebo (ex-Chrome)
+jam for change in content/ http://codereview.chromium.org/6826027/diff/2001/chrome/browser/printing/print_view_manager.cc File chrome/browser/printing/print_view_manager.cc (right): http://codereview.chromium.org/6826027/diff/2001/chrome/browser/printing/print_view_manager.cc#newcode23 chrome/browser/printing/print_view_manager.cc:23: #include "printing/metafile_impl.h" On 2011/04/11 ...
9 years, 8 months ago (2011-04-11 06:16:07 UTC) #2
Lei Zhang
LGTM, but you probably have to rebase one more time because I modified print_dialog_gtk.cc.
9 years, 8 months ago (2011-04-11 06:37:09 UTC) #3
vandebo (ex-Chrome)
On 2011/04/11 06:37:09, Lei Zhang wrote: > LGTM, but you probably have to rebase one ...
9 years, 8 months ago (2011-04-11 07:18:45 UTC) #4
jam
9 years, 8 months ago (2011-04-11 21:39:14 UTC) #5
content lgtm

Powered by Google App Engine
This is Rietveld 408576698