summaryrefslogtreecommitdiffstats
path: root/printing
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-27 16:04:56 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-27 16:04:56 +0000
commit4de0e88bab4685e1992f29f3697e4345f9bcbcfb (patch)
tree2b4536810ab530d16891211a557942426e08dcaa /printing
parentdf456a86b2cbc5265773f2beb5c98b5a718253d2 (diff)
downloadchromium_src-4de0e88bab4685e1992f29f3697e4345f9bcbcfb.zip
chromium_src-4de0e88bab4685e1992f29f3697e4345f9bcbcfb.tar.gz
chromium_src-4de0e88bab4685e1992f29f3697e4345f9bcbcfb.tar.bz2
Move Page Setup into print, as Chrome is not a document-based app.
xib change: removed "Page Setup" menu item BUG=http://crbug.com/36653 TEST=as in bug Review URL: http://codereview.chromium.org/1741011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45701 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing')
-rw-r--r--printing/printing_context_mac.mm7
1 files changed, 7 insertions, 0 deletions
diff --git a/printing/printing_context_mac.mm b/printing/printing_context_mac.mm
index a933f74..acc9c28 100644
--- a/printing/printing_context_mac.mm
+++ b/printing/printing_context_mac.mm
@@ -39,6 +39,13 @@ PrintingContext::Result PrintingContext::AskUserForSettings(
// adding a new custom view to the panel on 10.5; 10.6 has
// NSPrintPanelShowsPrintSelection).
NSPrintPanel* panel = [NSPrintPanel printPanel];
+
+ NSPrintPanelOptions options = [panel options];
+ options |= NSPrintPanelShowsPaperSize;
+ options |= NSPrintPanelShowsOrientation;
+ options |= NSPrintPanelShowsScaling;
+ [panel setOptions:options];
+
// TODO(stuartmorgan): We really want a tab sheet here, not a modal window.
// Will require restructuring the PrintingContext API to use a callback.
NSInteger selection =