/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 | 24 PRINTING_EXPORT int ConvertUnit(int value, int old_unit, int new_unit);
|
print_settings.cc | 155 header_footer_text_height = ConvertUnit(kSettingHeaderFooterInterstice, 163 int margin_printer_units = ConvertUnit(1000, kHundrethsMMPerInch,
|
/external/chromium_org/android_webview/renderer/ |
print_web_view_helper.cc | 126 ConvertUnit(page_params.page_size.width(), dpi, kPixelsPerInch), 127 ConvertUnit(page_params.page_size.height(), dpi, kPixelsPerInch)); 129 ConvertUnit(page_params.margin_top, dpi, kPixelsPerInch); 130 int margin_right_in_pixels = ConvertUnit( 134 int margin_bottom_in_pixels = ConvertUnit( 138 int margin_left_in_pixels = ConvertUnit( 166 ConvertUnit(new_content_width, kPixelsPerInch, dpi), 167 ConvertUnit(new_content_height, kPixelsPerInch, dpi)); 171 ConvertUnit(page_size_in_pixels.width, kPixelsPerInch, dpi), 172 ConvertUnit(page_size_in_pixels.height, kPixelsPerInch, dpi)) [all...] |
/external/chromium_org/chrome/renderer/printing/ |
print_web_view_helper.cc | 131 ConvertUnit(page_params.page_size.width(), dpi, kPixelsPerInch), 132 ConvertUnit(page_params.page_size.height(), dpi, kPixelsPerInch)); 134 ConvertUnit(page_params.margin_top, dpi, kPixelsPerInch); 135 int margin_right_in_pixels = ConvertUnit( 139 int margin_bottom_in_pixels = ConvertUnit( 143 int margin_left_in_pixels = ConvertUnit( 171 ConvertUnit(new_content_width, kPixelsPerInch, dpi), 172 ConvertUnit(new_content_height, kPixelsPerInch, dpi)); 176 ConvertUnit(page_size_in_pixels.width, kPixelsPerInch, dpi), 177 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...] |