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

Side by Side Diff: printing/printing_context.h

Issue 329683002: Improvements in --debug-print switch implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Wed 06/11/2014 10:41:42.83 Created 6 years, 6 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
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // Returns paper size to be used for PDF or Cloud Print in device units. 57 // Returns paper size to be used for PDF or Cloud Print in device units.
58 virtual gfx::Size GetPdfPaperSizeDeviceUnits() = 0; 58 virtual gfx::Size GetPdfPaperSizeDeviceUnits() = 0;
59 59
60 // Updates printer settings. 60 // Updates printer settings.
61 // |external_preview| is true if pdf is going to be opened in external 61 // |external_preview| is true if pdf is going to be opened in external
62 // preview. Used by MacOS only now to open Preview.app. 62 // preview. Used by MacOS only now to open Preview.app.
63 virtual Result UpdatePrinterSettings(bool external_preview) = 0; 63 virtual Result UpdatePrinterSettings(bool external_preview) = 0;
64 64
65 // Updates Print Settings. |job_settings| contains all print job 65 // Updates Print Settings. |job_settings| contains all print job
66 // settings information. |ranges| has the new page range settings. 66 // settings information. |ranges| has the new page range settings.
67 Result UpdatePrintSettings(const base::DictionaryValue& job_settings, 67 Result UpdatePrintSettings(const base::DictionaryValue& job_settings);
68 const PageRanges& ranges);
69 68
70 // Initializes with predefined settings. 69 // Initializes with predefined settings.
71 virtual Result InitWithSettings(const PrintSettings& settings) = 0; 70 virtual Result InitWithSettings(const PrintSettings& settings) = 0;
72 71
73 // Does platform specific setup of the printer before the printing. Signal the 72 // Does platform specific setup of the printer before the printing. Signal the
74 // printer that a document is about to be spooled. 73 // printer that a document is about to be spooled.
75 // Warning: This function enters a message loop. That may cause side effects 74 // Warning: This function enters a message loop. That may cause side effects
76 // like IPC message processing! Some printers have side-effects on this call 75 // like IPC message processing! Some printers have side-effects on this call
77 // like virtual printers that ask the user for the path of the saved document; 76 // like virtual printers that ask the user for the path of the saved document;
78 // for example a PDF printer. 77 // for example a PDF printer.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // The application locale. 132 // The application locale.
134 std::string app_locale_; 133 std::string app_locale_;
135 134
136 private: 135 private:
137 DISALLOW_COPY_AND_ASSIGN(PrintingContext); 136 DISALLOW_COPY_AND_ASSIGN(PrintingContext);
138 }; 137 };
139 138
140 } // namespace printing 139 } // namespace printing
141 140
142 #endif // PRINTING_PRINTING_CONTEXT_H_ 141 #endif // PRINTING_PRINTING_CONTEXT_H_
OLDNEW
« printing/printing.gyp ('K') | « printing/printing.gyp ('k') | printing/printing_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698