Use kPointsPerInch instead of desired_dpi

Changed in https://codereview.chromium.org/2788343003
This commit is contained in:
Kevin Sawicki 2017-07-03 13:23:54 -07:00 committed by Aleksei Kuzmin
parent 9945fc5148
commit 7d1a49db48
3 changed files with 10 additions and 25 deletions

View file

@ -15,7 +15,6 @@ PrintMsg_Print_Params::PrintMsg_Print_Params()
margin_left(0),
dpi(0),
scale_factor(1.0f),
desired_dpi(0),
document_cookie(0),
selection_only(false),
supports_alpha_blend(false),
@ -41,7 +40,6 @@ void PrintMsg_Print_Params::Reset() {
margin_left = 0;
dpi = 0;
scale_factor = 1.0f;
desired_dpi = 0;
document_cookie = 0;
selection_only = false;
supports_alpha_blend = false;

View file

@ -41,7 +41,6 @@ struct PrintMsg_Print_Params {
int margin_left;
double dpi;
double scale_factor;
int desired_dpi;
bool rasterize_pdf;
int document_cookie;
bool selection_only;
@ -105,9 +104,6 @@ IPC_STRUCT_TRAITS_BEGIN(PrintMsg_Print_Params)
// Specifies the scale factor in percent
IPC_STRUCT_TRAITS_MEMBER(scale_factor)
// Desired apparent dpi on paper.
IPC_STRUCT_TRAITS_MEMBER(desired_dpi)
// Cookie for the document to ensure correctness.
IPC_STRUCT_TRAITS_MEMBER(document_cookie)