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

Unified Diff: printing/print_settings.cc

Issue 149212: Move printing related stuff to the root printing project from the browser pro... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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: printing/print_settings.cc
===================================================================
--- printing/print_settings.cc (revision 19957)
+++ printing/print_settings.cc (working copy)
@@ -2,11 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/printing/print_settings.h"
+#include "printing/print_settings.h"
#include "base/atomic_sequence_num.h"
#include "base/logging.h"
-#include "chrome/common/render_messages.h"
#include "printing/units.h"
namespace printing {
@@ -94,22 +93,6 @@
page_setup_pixels_.SetRequestedMargins(margins);
}
-void PrintSettings::RenderParams(ViewMsg_Print_Params* params) const {
- DCHECK(params);
- params->printable_size.SetSize(page_setup_pixels_.content_area().width(),
- page_setup_pixels_.content_area().height());
- params->dpi = dpi_;
- // Currently hardcoded at 1.25. See PrintSettings' constructor.
- params->min_shrink = min_shrink;
- // Currently hardcoded at 2.0. See PrintSettings' constructor.
- params->max_shrink = max_shrink;
- // Currently hardcoded at 72dpi. See PrintSettings' constructor.
- params->desired_dpi = desired_dpi;
- // Always use an invalid cookie.
- params->document_cookie = 0;
- params->selection_only = selection_only;
-}
-
bool PrintSettings::Equals(const PrintSettings& rhs) const {
// Do not test the display device name (printer_name_) for equality since it
// may sometimes be chopped off at 30 chars. As long as device_name is the

Powered by Google App Engine
This is Rietveld 408576698