Home
last modified time | relevance | path

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

/external/chromium_org/printing/
Dunits_unittest.cc39 EXPECT_EQ(100, ConvertUnitDouble(100, 100, 100)); in TEST()
40 EXPECT_EQ(-100, ConvertUnitDouble(-100, 100, 100)); in TEST()
41 EXPECT_EQ(0, ConvertUnitDouble(0, 100, 100)); in TEST()
42 EXPECT_DOUBLE_EQ(0.000002, ConvertUnitDouble(2, 1000, 0.001)); in TEST()
43 EXPECT_EQ(2000000, ConvertUnitDouble(2, 0.001, 1000)); in TEST()
Dunits.cc25 double ConvertUnitDouble(double value, double old_unit, double new_unit) { in ConvertUnitDouble() function
48 return ConvertUnitDouble(pixels, kPixelsPerInch, kPointsPerInch); in ConvertPixelsToPointDouble()
52 return ConvertUnitDouble(points, kPointsPerInch, kPixelsPerInch); in ConvertPointsToPixelDouble()
Dprint_settings.cc182 margins.top = ConvertUnitDouble( in SetPrinterPrintableArea()
186 margins.bottom = ConvertUnitDouble( in SetPrinterPrintableArea()
190 margins.left = ConvertUnitDouble( in SetPrinterPrintableArea()
194 margins.right = ConvertUnitDouble( in SetPrinterPrintableArea()
Dunits.h46 PRINTING_EXPORT double ConvertUnitDouble(double value, double old_unit,
Dprinting_context_android.cc129 width = Round(ConvertUnitDouble(width, kInchToMil, 1.0) * dpi); in AskUserForSettingsReply()
130 height = Round(ConvertUnitDouble(height, kInchToMil, 1.0) * dpi); in AskUserForSettingsReply()
/external/chromium_org/chrome/renderer/printing/
Dprint_web_view_helper_win.cc139 static_cast<int>(ConvertUnitDouble(page_size.width(), kPointsPerInch, in RenderPage()
141 static_cast<int>(ConvertUnitDouble(page_size.height(), kPointsPerInch, in RenderPage()
147 static_cast<int>(ConvertUnitDouble(content_area.x(), kPointsPerInch, in RenderPage()
149 static_cast<int>(ConvertUnitDouble(content_area.y(), kPointsPerInch, in RenderPage()
151 static_cast<int>(ConvertUnitDouble(content_area.width(), kPointsPerInch, in RenderPage()
153 static_cast<int>(ConvertUnitDouble(content_area.height(), in RenderPage()
Dprint_web_view_helper_pdf_win.cc168 gfx::Size(static_cast<int>(ConvertUnitDouble( in PrintPageInternal()
170 static_cast<int>(ConvertUnitDouble( in PrintPageInternal()
/external/chromium_org/android_webview/native/
Daw_pdf_exporter.cc20 using printing::ConvertUnitDouble;
60 return static_cast<int>(ConvertUnitDouble(val, 1000.0, dpi)); in MilsToDots()