[Print Preview]: Added code to support pdf fit to page functionality.

BUG=85132
TEST=none


Review URL: https://chromiumcodereview.appspot.com/10083060

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137498 0039d316-1c4b-4281-b951-d872f2087c98
void CalculatePrintCanvasSize(const PrintMsg_Print_Params& print_params,
                              gfx::Size* result) {
  int dpi = GetDPI(&print_params);
  result->set_width(ConvertUnit(print_params.content_size.width(), dpi,
                                print_params.desired_dpi));

  result->set_height(ConvertUnit(print_params.content_size.height(), dpi,
                                 print_params.desired_dpi));
}

void CalculatePrintCanvasSize(const PrintMsg_Print_Params& print_params,
                              gfx::Size* result) {
  int dpi = GetDPI(&print_params);
  result->set_width(ConvertUnit(print_params.content_size.width(), dpi,
                                print_params.desired_dpi));

  result->set_height(ConvertUnit(print_params.content_size.height(), dpi,
                                 print_params.desired_dpi));
}
