Home
last modified time | relevance | path

Searched refs:ConvertUnit (Results 1 – 8 of 8) sorted by relevance

/external/chromium_org/printing/
Dunits_unittest.cc12 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 …]
Dunits.cc12 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()
Dprint_settings.cc150 header_footer_text_height = ConvertUnit(kSettingHeaderFooterInterstice, in SetPrinterPrintableArea()
158 int margin_printer_units = ConvertUnit(1000, kHundrethsMMPerInch, in SetPrinterPrintableArea()
Dunits.h43 PRINTING_EXPORT int ConvertUnit(int value, int old_unit, int new_unit);
/external/chromium_org/chrome/renderer/printing/
Dprint_web_view_helper.cc106 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/
Dprint_web_view_helper.cc110 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/
Dpepper_print_settings_manager.cc20 return printing::ConvertUnit(device_units, device_units_per_inch, in DeviceUnitsInPoints()
/external/chromium_org/content/renderer/pepper/
Dpepper_plugin_instance_impl.cc1827 size_in_pixels.set_width(printing::ConvertUnit( in PrintPDFOutput()
1831 size_in_pixels.set_height(printing::ConvertUnit( in PrintPDFOutput()