• rbpotter's avatar
    Use DPI from Print Preview on Windows, handle non square · 116c2e17
    rbpotter authored
    - On Windows, use DPI set in print preview to set the printer DPI. Print
      preview DPI was previously only used for extension/cloud printers.
    - Fix handling of non-square DPI - use x and y DPI to compute the
      correct page size to report from the printer instead of assuming
      both resolutions are the same when computing page size. Assuming both
      are identical results in incorrect page sizes for non square DPI.
    - Note that we have to use only 1 DPI for rendering in both
      dimensions, this CL just fixes the bad page size behavior.
    
    BUG=648774
    CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
    
    Review-Url: https://codereview.chromium.org/2795453002
    Cr-Commit-Position: refs/heads/master@{#461799}
    116c2e17
Name
Last commit
Last update
..
android Loading commit data...
backend Loading commit data...
features Loading commit data...
test/data Loading commit data...
BUILD.gn Loading commit data...
DEPS Loading commit data...
OWNERS Loading commit data...
cups_config_helper.py Loading commit data...
emf_win.cc Loading commit data...
emf_win.h Loading commit data...
emf_win_unittest.cc Loading commit data...
image.cc Loading commit data...
image.h Loading commit data...
image_android.cc Loading commit data...
image_linux.cc Loading commit data...
image_mac.cc Loading commit data...
image_win.cc Loading commit data...
metafile.cc Loading commit data...
metafile.h Loading commit data...
metafile_skia_wrapper.cc Loading commit data...
metafile_skia_wrapper.h Loading commit data...
native_drawing_context.h Loading commit data...
page_number.cc Loading commit data...
page_number.h Loading commit data...
page_number_unittest.cc Loading commit data...
page_range.cc Loading commit data...
page_range.h Loading commit data...
page_range_unittest.cc Loading commit data...
page_setup.cc Loading commit data...
page_setup.h Loading commit data...
page_setup_unittest.cc Loading commit data...
page_size_margins.h Loading commit data...
pdf_metafile_cg_mac.cc Loading commit data...
pdf_metafile_cg_mac.h Loading commit data...
pdf_metafile_cg_mac_unittest.cc Loading commit data...
pdf_metafile_skia.cc Loading commit data...
pdf_metafile_skia.h Loading commit data...
pdf_render_settings.h Loading commit data...
pdf_transform.cc Loading commit data...
pdf_transform.h Loading commit data...
pdf_transform_unittest.cc Loading commit data...
print_dialog_gtk_interface.h Loading commit data...
print_job_constants.cc Loading commit data...
print_job_constants.h Loading commit data...
print_settings.cc Loading commit data...
print_settings.h Loading commit data...
print_settings_conversion.cc Loading commit data...
print_settings_conversion.h Loading commit data...
print_settings_initializer_mac.cc Loading commit data...
print_settings_initializer_mac.h Loading commit data...
print_settings_initializer_win.cc Loading commit data...
print_settings_initializer_win.h Loading commit data...
printed_document.cc Loading commit data...
printed_document.h Loading commit data...
printed_document_chromeos.cc Loading commit data...
printed_document_linux.cc Loading commit data...
printed_document_mac.cc Loading commit data...
printed_document_win.cc Loading commit data...
printed_page.cc Loading commit data...
printed_page.h Loading commit data...
printed_page_unittest.cc Loading commit data...
printed_pages_source.h Loading commit data...
printing_context.cc Loading commit data...
printing_context.h Loading commit data...
printing_context_android.cc Loading commit data...
printing_context_android.h Loading commit data...
printing_context_chromeos.cc Loading commit data...
printing_context_chromeos.h Loading commit data...
printing_context_linux.cc Loading commit data...
printing_context_linux.h Loading commit data...
printing_context_mac.h Loading commit data...
printing_context_mac.mm Loading commit data...
printing_context_no_system_dialog.cc Loading commit data...
printing_context_no_system_dialog.h Loading commit data...
printing_context_system_dialog_win.cc Loading commit data...
printing_context_system_dialog_win.h Loading commit data...
printing_context_win.cc Loading commit data...
printing_context_win.h Loading commit data...
printing_context_win_unittest.cc Loading commit data...
printing_export.h Loading commit data...
printing_test.h Loading commit data...
printing_utils.cc Loading commit data...
printing_utils.h Loading commit data...
printing_utils_unittest.cc Loading commit data...
pwg_raster_settings.h Loading commit data...
units.cc Loading commit data...
units.h Loading commit data...
units_unittest.cc Loading commit data...