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