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

Unified Diff: printing/print_settings.h

Issue 268036: Implement the basic OS-level printing mechanics on Mac (Closed)
Patch Set: Address review comments Created 11 years, 2 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
« no previous file with comments | « no previous file | printing/print_settings.cc » ('j') | printing/printed_document_mac.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/print_settings.h
diff --git a/printing/print_settings.h b/printing/print_settings.h
index d1929c319d9de795f3e25814f380f522e7e39b55..dd90007f391ace1c614a6a9282a2cd6dcd18e40e 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.
« no previous file with comments | « no previous file | printing/print_settings.cc » ('j') | printing/printed_document_mac.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698