Home
last modified time | relevance | path

Searched refs:printable_area (Results 1 – 25 of 28) sorted by relevance

12

/external/chromium_org/printing/
Dpage_setup_unittest.cc31 gfx::Rect printable_area(rand() % kMax, rand() % kMax, 0, 0); in TEST() local
32 printable_area.set_width(page_size.width() - (rand() % kMax) - in TEST()
33 printable_area.x()); in TEST()
34 printable_area.set_height(page_size.height() - (rand() % kMax) - in TEST()
35 printable_area.y()); in TEST()
40 setup.Init(page_size, printable_area, kTextHeight); in TEST()
44 effective_margins.header = std::max(margins.header, printable_area.y()); in TEST()
45 effective_margins.left = std::max(margins.left, printable_area.x()); in TEST()
50 printable_area.bottom()); in TEST()
53 printable_area.right()); in TEST()
[all …]
Dpage_setup.cc67 const gfx::Rect& printable_area, in Init() argument
69 DCHECK_LE(printable_area.right(), physical_size.width()); in Init()
73 DCHECK_GE(printable_area.x(), 0); in Init()
74 DCHECK_GE(printable_area.y(), 0); in Init()
77 printable_area_ = printable_area; in Init()
Dpage_setup.h46 void Init(const gfx::Size& physical_size, const gfx::Rect& printable_area,
61 const gfx::Rect& printable_area() const { return printable_area_; } in printable_area() function
Dprinted_document_win.cc68 content_area.x() - page_setup.printable_area().x(), in RenderPrintedPage()
69 content_area.y() - page_setup.printable_area().y(), in RenderPrintedPage()
Dprinting_context_no_system_dialog.cc47 gfx::Rect printable_area(0, 0, physical_size.width(), physical_size.height()); in UseDefaultSettings() local
49 settings_.SetPrinterPrintableArea(physical_size, printable_area, true); in UseDefaultSettings()
Dprint_settings_conversion.cc246 SetRectToJobSettings("printable_area", page_setup.printable_area(), debug); in PrintSettingsToJobSettingsDebug()
/external/chromium_org/ppapi/tests/
Dtest_printing.cc61 ASSERT_TRUE(g_print_settings.printable_area.point.x < 200); in TestGetDefaultPrintSettings()
62 ASSERT_TRUE(g_print_settings.printable_area.point.y < 200); in TestGetDefaultPrintSettings()
63 ASSERT_TRUE(g_print_settings.printable_area.size.width < 2000); in TestGetDefaultPrintSettings()
64 ASSERT_TRUE(g_print_settings.printable_area.size.height < 2000); in TestGetDefaultPrintSettings()
/external/chromium_org/android_webview/browser/renderer_host/
Dprint_manager.cc94 params->printable_area.SetRect( in RenderParamsFromPrintSettings()
95 settings.page_setup_device_units().printable_area().x(), in RenderParamsFromPrintSettings()
96 settings.page_setup_device_units().printable_area().y(), in RenderParamsFromPrintSettings()
97 settings.page_setup_device_units().printable_area().width(), in RenderParamsFromPrintSettings()
98 settings.page_setup_device_units().printable_area().height()); in RenderParamsFromPrintSettings()
/external/chromium_org/android_webview/common/
Dprint_messages.cc16 printable_area(), in PrintMsg_Print_Params()
42 printable_area = gfx::Rect(); in Reset()
Dprint_messages.h34 gfx::Rect printable_area; member
92 IPC_STRUCT_TRAITS_MEMBER(printable_area)
/external/chromium_org/chrome/common/
Dprint_messages.cc14 printable_area(), in PrintMsg_Print_Params()
40 printable_area = gfx::Rect(); in Reset()
Dprint_messages.h32 gfx::Rect printable_area; member
92 IPC_STRUCT_TRAITS_MEMBER(printable_area)
/external/chromium_org/chrome/browser/ui/webui/print_preview/
Dprint_preview_ui.cc486 const PageSizeMargins& page_layout, const gfx::Rect& printable_area, in OnDidGetDefaultPageLayout() argument
491 printable_area.width() <= 0 || printable_area.height() <= 0) { in OnDidGetDefaultPageLayout()
503 layout.SetInteger(printing::kSettingPrintableAreaX, printable_area.x()); in OnDidGetDefaultPageLayout()
504 layout.SetInteger(printing::kSettingPrintableAreaY, printable_area.y()); in OnDidGetDefaultPageLayout()
506 printable_area.width()); in OnDidGetDefaultPageLayout()
508 printable_area.height()); in OnDidGetDefaultPageLayout()
Dprint_preview_ui.h94 const gfx::Rect& printable_area,
/external/chromium_org/ppapi/proxy/
Dprinting_resource_unittest.cc85 EXPECT_TRUE(PP_RectEqual(reply_settings.printable_area, in TEST_F()
86 output_settings.printable_area)); in TEST_F()
/external/chromium_org/content/browser/renderer_host/pepper/
Dpepper_print_settings_manager.cc65 settings.printable_area = PrintAreaToPPPrintArea(page_setup.printable_area(), in ComputeDefaultPrintSettings()
Dpepper_printing_host_unittest.cc110 EXPECT_TRUE(PP_RectEqual(expected_settings.printable_area, in TEST_F()
111 actual_settings.printable_area)); in TEST_F()
/external/chromium_org/chrome/browser/printing/
Dprinting_message_filter.cc64 params->printable_area.SetRect( in RenderParamsFromPrintSettings()
65 settings.page_setup_device_units().printable_area().x(), in RenderParamsFromPrintSettings()
66 settings.page_setup_device_units().printable_area().y(), in RenderParamsFromPrintSettings()
67 settings.page_setup_device_units().printable_area().width(), in RenderParamsFromPrintSettings()
68 settings.page_setup_device_units().printable_area().height()); in RenderParamsFromPrintSettings()
Dprint_dialog_cloud.cc445 default_settings.printable_area = gfx::Rect(0, 0, kWidth, kHeight); in HandleSetPageParameters()
/external/chromium_org/ppapi/c/dev/
Dpp_print_settings_dev.h60 struct PP_Rect printable_area; member
/external/chromium_org/chrome/renderer/printing/
Dmock_printer.cc117 printable_area_ = params.printable_area; in SetDefaultPrintSettings()
157 settings->params.printable_area = printable_area_; in ScriptedPrint()
304 params->printable_area = printable_area_; in SetPrintParams()
Dprint_web_view_helper.cc91 !params.printable_area.IsEmpty() && params.document_cookie && in PrintMsg_Print_Params_IsValid()
240 page_params->printable_area.set_size( in EnsureOrientationMatches()
241 gfx::Size(page_params->printable_area.height(), in EnsureOrientationMatches()
242 page_params->printable_area.width())); in EnsureOrientationMatches()
260 ConvertUnit(print_params.printable_area.x(), dpi, in ComputeWebKitPrintParamsInDesiredDpi()
263 ConvertUnit(print_params.printable_area.y(), dpi, in ComputeWebKitPrintParamsInDesiredDpi()
266 ConvertUnit(print_params.printable_area.width(), dpi, in ComputeWebKitPrintParamsInDesiredDpi()
269 ConvertUnit(print_params.printable_area.height(), in ComputeWebKitPrintParamsInDesiredDpi()
927 print_params.printable_area = gfx::Rect(print_params.page_size); in OnPrintForPrintPreview()
1112 ConvertUnit(print_params.printable_area.x(), dpi, kPointsPerInch), in CreatePreviewDocument()
[all …]
Dprint_web_view_helper_pdf_win.cc111 printed_page_params.content_area = params.params.printable_area; in PrintPagesNative()
/external/chromium_org/android_webview/renderer/
Dprint_web_view_helper.cc97 !params.printable_area.IsEmpty() && params.document_cookie && in PrintMsg_Print_Params_IsValid()
246 page_params->printable_area.set_size( in EnsureOrientationMatches()
247 gfx::Size(page_params->printable_area.height(), in EnsureOrientationMatches()
248 page_params->printable_area.width())); in EnsureOrientationMatches()
266 ConvertUnit(print_params.printable_area.x(), dpi, in ComputeWebKitPrintParamsInDesiredDpi()
269 ConvertUnit(print_params.printable_area.y(), dpi, in ComputeWebKitPrintParamsInDesiredDpi()
272 ConvertUnit(print_params.printable_area.width(), dpi, in ComputeWebKitPrintParamsInDesiredDpi()
275 ConvertUnit(print_params.printable_area.height(), in ComputeWebKitPrintParamsInDesiredDpi()
884 print_params.printable_area = gfx::Rect(print_params.page_size); in OnPrintForPrintPreview()
1084 ConvertUnit(print_params.printable_area.x(), dpi, kPointsPerInch), in CreatePreviewDocument()
[all …]
/external/chromium_org/ppapi/api/dev/
Dpp_print_settings_dev.idl36 PP_Rect printable_area;

12