diff options
author | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-13 18:46:21 +0000 |
---|---|---|
committer | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-13 18:46:21 +0000 |
commit | b75dca87f3ff3ee3ab003960276ec7bb49d4c734 (patch) | |
tree | 8026f1f38f82a5d7c922ba5245e38a5ecf3a61d8 /printing/print_settings.h | |
parent | 7ff3f63b8c66408a382adc88458a6e70038cad8d (diff) | |
download | chromium_src-b75dca87f3ff3ee3ab003960276ec7bb49d4c734.zip chromium_src-b75dca87f3ff3ee3ab003960276ec7bb49d4c734.tar.gz chromium_src-b75dca87f3ff3ee3ab003960276ec7bb49d4c734.tar.bz2 |
Implement the basic OS-level printing mechanics on Mac
Part two of printing implementation on the Mac. This adds a Mac implementation of PrintSettings to get page setup and printer information, basic PDF->context rendering in PrintedDocument, and most of PrintingContext to allow getting print settings (both default and interactive).
Reworks the message flow a bit when asking for print settings on the Mac, since it can only be done from the UI thread. Uses a modal dialog for now, but will later be modified further to allow for a sheet.
BUG=13158
TEST=None; no user-visible effect yet.
Review URL: http://codereview.chromium.org/268036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28857 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/print_settings.h')
-rw-r--r-- | printing/print_settings.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/printing/print_settings.h b/printing/print_settings.h index d1929c3..dd90007f 100644 --- a/printing/print_settings.h +++ b/printing/print_settings.h @@ -10,6 +10,10 @@ #include "printing/page_range.h" #include "printing/page_setup.h" +#if defined(OS_MACOSX) +#import <ApplicationServices/ApplicationServices.h> +#endif + typedef struct HDC__* HDC; typedef struct _devicemodeW DEVMODE; @@ -31,6 +35,10 @@ class PrintSettings { const PageRanges& new_ranges, const std::wstring& new_device_name, bool selection_only); +#elif defined(OS_MACOSX) + // Reads the settings from the given PMPrinter and PMPageFormat. + void Init(PMPrinter printer, PMPageFormat page_format, + const PageRanges& new_ranges, bool print_selection_only); #endif // Set printer printable area in in pixels. |