summaryrefslogtreecommitdiffstats
path: root/printing/print_settings.cc
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-29 02:36:26 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-29 02:36:26 +0000
commitc48bee274f6c6869430bdda4ce771c8cdabf736f (patch)
tree7ce89dceab0e9dd2d2a7f7426a429f68201a8782 /printing/print_settings.cc
parente555f205eb8931da7fdf0f4cb4a01a24c3e2bf8a (diff)
downloadchromium_src-c48bee274f6c6869430bdda4ce771c8cdabf736f.zip
chromium_src-c48bee274f6c6869430bdda4ce771c8cdabf736f.tar.gz
chromium_src-c48bee274f6c6869430bdda4ce771c8cdabf736f.tar.bz2
Print Preview: Implement basic settings.
BUG=57902 TEST=Run with --enable-print-preview, make sure orientation and color settings work. Review URL: http://codereview.chromium.org/6736014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79655 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/print_settings.cc')
-rw-r--r--printing/print_settings.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/printing/print_settings.cc b/printing/print_settings.cc
index 3f0f842..92f3560 100644
--- a/printing/print_settings.cc
+++ b/printing/print_settings.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -94,4 +94,11 @@ int PrintSettings::NewCookie() {
return cookie_seq.GetNext() + 1;
}
+void PrintSettings::SetOrientation(bool landscape) {
+ if (landscape_ != landscape) {
+ landscape_ = landscape;
+ page_setup_device_units_.FlipOrientation();
+ }
+}
+
} // namespace printing