/external/chromium_org/printing/ |
units_unittest.cc | 12 EXPECT_EQ(100, ConvertUnit(100, 100, 100)); 13 EXPECT_EQ(-100, ConvertUnit(-100, 100, 100)); 14 EXPECT_EQ(0, ConvertUnit(0, 100, 100)); 15 EXPECT_EQ(99, ConvertUnit(99, 100, 100)); 16 EXPECT_EQ(101, ConvertUnit(101, 100, 100)); 17 EXPECT_EQ(99900, ConvertUnit(999, 10, 1000)); 18 EXPECT_EQ(100100, ConvertUnit(1001, 10, 1000)); 21 EXPECT_EQ(10, ConvertUnit(999, 1000, 10)); 22 EXPECT_EQ(10, ConvertUnit(950, 1000, 10)); 23 EXPECT_EQ(9, ConvertUnit(949, 1000, 10)) [all...] |
units.cc | 12 int ConvertUnit(int value, int old_unit, int new_unit) { 36 return ConvertUnit(milli_inch, 100, 254); 40 return ConvertUnit(cmm, 254, 100); 44 return ConvertUnit(pixels, kPixelsPerInch, kPointsPerInch);
|
units.h | 43 PRINTING_EXPORT int ConvertUnit(int value, int old_unit, int new_unit);
|
print_settings.cc | 150 header_footer_text_height = ConvertUnit(kSettingHeaderFooterInterstice, 158 int margin_printer_units = ConvertUnit(1000, kHundrethsMMPerInch,
|
/external/chromium_org/android_webview/renderer/ |
print_web_view_helper.cc | 110 ConvertUnit(page_params.page_size.width(), dpi, kPixelsPerInch), 111 ConvertUnit(page_params.page_size.height(), dpi, kPixelsPerInch)); 113 ConvertUnit(page_params.margin_top, dpi, kPixelsPerInch); 114 int margin_right_in_pixels = ConvertUnit( 118 int margin_bottom_in_pixels = ConvertUnit( 122 int margin_left_in_pixels = ConvertUnit( 150 ConvertUnit(new_content_width, kPixelsPerInch, dpi), 151 ConvertUnit(new_content_height, kPixelsPerInch, dpi)); 155 ConvertUnit(page_size_in_pixels.width, kPixelsPerInch, dpi), 156 ConvertUnit(page_size_in_pixels.height, kPixelsPerInch, dpi)) [all...] |
/external/chromium_org/chrome/renderer/printing/ |
print_web_view_helper.cc | 106 ConvertUnit(page_params.page_size.width(), dpi, kPixelsPerInch), 107 ConvertUnit(page_params.page_size.height(), dpi, kPixelsPerInch)); 109 ConvertUnit(page_params.margin_top, dpi, kPixelsPerInch); 110 int margin_right_in_pixels = ConvertUnit( 114 int margin_bottom_in_pixels = ConvertUnit( 118 int margin_left_in_pixels = ConvertUnit( 146 ConvertUnit(new_content_width, kPixelsPerInch, dpi), 147 ConvertUnit(new_content_height, kPixelsPerInch, dpi)); 151 ConvertUnit(page_size_in_pixels.width, kPixelsPerInch, dpi), 152 ConvertUnit(page_size_in_pixels.height, kPixelsPerInch, dpi)) [all...] |
/external/chromium_org/content/browser/renderer_host/pepper/ |
pepper_print_settings_manager.cc | 20 return printing::ConvertUnit(device_units, device_units_per_inch,
|
/external/chromium_org/content/renderer/pepper/ |
pepper_plugin_instance_impl.cc | [all...] |