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

Unified Diff: printing/printing_context_mac.h

Issue 7074051: PrintPreview: Modified PrintingContextMac code to use the copy of sharedPrintInfo object. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Comment added. Created 9 years, 7 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/printing_context_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printing_context_mac.h
diff --git a/printing/printing_context_mac.h b/printing/printing_context_mac.h
index 84a5c05409832105d53cbab4cf07ef5417f20459..af6f9f63c73fd71af3e6f87735381f38d0051b62 100644
--- a/printing/printing_context_mac.h
+++ b/printing/printing_context_mac.h
@@ -42,12 +42,16 @@ class PrintingContextMac : public PrintingContext {
virtual gfx::NativeDrawingContext context() const;
private:
- // Read the settings from the given NSPrintInfo (and cache it for later use).
- void ParsePrintInfo(NSPrintInfo* print_info);
-
- // Initializes PrintSettings from native print info object.
+ // Initializes PrintSettings from |print_info_|. This must be called
+ // after changes to |print_info_| in order for the changes to take effect in
+ // printing.
+ // This function ignores the page range information specified in the print
+ // info object and use |ranges| instead.
void InitPrintSettingsFromPrintInfo(const PageRanges& ranges);
+ // Returns the set of page ranges constructed from |print_info_|.
+ PageRanges GetPageRangesFromPrintInfo();
+
// Updates |print_info_| to use the given printer.
// Returns true if the printer was set else returns false.
bool SetPrinter(const std::string& device_name);
« no previous file with comments | « no previous file | printing/printing_context_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698