Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1417)

Unified Diff: chrome/browser/printing/cloud_print/cloud_print_setup_flow.cc

Issue 6541027: Small: Cloud print UI options fix. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments; clean up Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/printing/cloud_print/cloud_print_setup_flow.cc
diff --git a/chrome/browser/printing/cloud_print/cloud_print_setup_flow.cc b/chrome/browser/printing/cloud_print/cloud_print_setup_flow.cc
index 6fe624ea0594547daedfcc77ced2a4ea67de8caa..32a8d00b4c5bac1925aba061fc2d60acdd183e75 100644
--- a/chrome/browser/printing/cloud_print/cloud_print_setup_flow.cc
+++ b/chrome/browser/printing/cloud_print/cloud_print_setup_flow.cc
@@ -132,6 +132,12 @@ void CloudPrintSetupFlow::GetDialogSize(gfx::Size* size) const {
IDS_CLOUD_PRINT_SETUP_WIZARD_HEIGHT_LINES,
approximate_web_font);
}
+
+#if !defined(OS_WIN)
csilv 2011/02/18 22:11:55 You may want to add a comment describing why this
+ float scale_hack = 96.f/72.f;
+ size->set_width(size->width() * scale_hack);
+ size->set_height(size->height() * scale_hack);
+#endif
}
// A callback to notify the delegate that the dialog closed.
« no previous file with comments | « chrome/browser/dom_ui/options/advanced_options_handler.cc ('k') | chrome/browser/resources/options/advanced_options.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698