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

Side by Side Diff: printing/printing_context.h

Issue 480303002: Use document from preview for System Dialog printing on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tue Aug 26 01:11:31 PDT 2014 Created 6 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « printing/print_job_constants.cc ('k') | printing/printing_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PRINTING_PRINTING_CONTEXT_H_ 5 #ifndef PRINTING_PRINTING_CONTEXT_H_
6 #define PRINTING_PRINTING_CONTEXT_H_ 6 #define PRINTING_PRINTING_CONTEXT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 // Updates the context with PDF printer settings. 66 // Updates the context with PDF printer settings.
67 Result UsePdfSettings(); 67 Result UsePdfSettings();
68 68
69 // Returns paper size to be used for PDF or Cloud Print in device units. 69 // Returns paper size to be used for PDF or Cloud Print in device units.
70 virtual gfx::Size GetPdfPaperSizeDeviceUnits() = 0; 70 virtual gfx::Size GetPdfPaperSizeDeviceUnits() = 0;
71 71
72 // Updates printer settings. 72 // Updates printer settings.
73 // |external_preview| is true if pdf is going to be opened in external 73 // |external_preview| is true if pdf is going to be opened in external
74 // preview. Used by MacOS only now to open Preview.app. 74 // preview. Used by MacOS only now to open Preview.app.
75 virtual Result UpdatePrinterSettings(bool external_preview) = 0; 75 virtual Result UpdatePrinterSettings(bool external_preview,
76 bool show_system_dialog) = 0;
76 77
77 // Updates Print Settings. |job_settings| contains all print job 78 // Updates Print Settings. |job_settings| contains all print job
78 // settings information. |ranges| has the new page range settings. 79 // settings information. |ranges| has the new page range settings.
79 Result UpdatePrintSettings(const base::DictionaryValue& job_settings); 80 Result UpdatePrintSettings(const base::DictionaryValue& job_settings);
80 81
81 // Initializes with predefined settings. 82 // Initializes with predefined settings.
82 virtual Result InitWithSettings(const PrintSettings& settings) = 0; 83 virtual Result InitWithSettings(const PrintSettings& settings) = 0;
83 84
84 // Does platform specific setup of the printer before the printing. Signal the 85 // Does platform specific setup of the printer before the printing. Signal the
85 // printer that a document is about to be spooled. 86 // printer that a document is about to be spooled.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // Did the user cancel the print job. 144 // Did the user cancel the print job.
144 volatile bool abort_printing_; 145 volatile bool abort_printing_;
145 146
146 private: 147 private:
147 DISALLOW_COPY_AND_ASSIGN(PrintingContext); 148 DISALLOW_COPY_AND_ASSIGN(PrintingContext);
148 }; 149 };
149 150
150 } // namespace printing 151 } // namespace printing
151 152
152 #endif // PRINTING_PRINTING_CONTEXT_H_ 153 #endif // PRINTING_PRINTING_CONTEXT_H_
OLDNEW
« no previous file with comments | « printing/print_job_constants.cc ('k') | printing/printing_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698