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

Side by Side Diff: printing/printing_context.h

Issue 294923005: Add media size capability to PDF printer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add a comment to the new query stopping code. 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // asynchronous printing API. 44 // asynchronous printing API.
45 virtual void AskUserForSettings(gfx::NativeView parent_view, 45 virtual void AskUserForSettings(gfx::NativeView parent_view,
46 int max_pages, 46 int max_pages,
47 bool has_selection, 47 bool has_selection,
48 const PrintSettingsCallback& callback) = 0; 48 const PrintSettingsCallback& callback) = 0;
49 49
50 // Selects the user's default printer and format. Updates the context with the 50 // Selects the user's default printer and format. Updates the context with the
51 // default device settings. 51 // default device settings.
52 virtual Result UseDefaultSettings() = 0; 52 virtual Result UseDefaultSettings() = 0;
53 53
54 // Updates the context with PDF printer settings.
55 Result UsePdfSettings();
56
54 // 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.
55 virtual gfx::Size GetPdfPaperSizeDeviceUnits() = 0; 58 virtual gfx::Size GetPdfPaperSizeDeviceUnits() = 0;
56 59
57 // Updates printer settings. 60 // Updates printer settings.
58 // |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
59 // preview. Used by MacOS only now to open Preview.app. 62 // preview. Used by MacOS only now to open Preview.app.
60 virtual Result UpdatePrinterSettings(bool external_preview) = 0; 63 virtual Result UpdatePrinterSettings(bool external_preview) = 0;
61 64
62 // Updates Print Settings. |job_settings| contains all print job 65 // Updates Print Settings. |job_settings| contains all print job
63 // settings information. |ranges| has the new page range settings. 66 // settings information. |ranges| has the new page range settings.
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 // The application locale. 133 // The application locale.
131 std::string app_locale_; 134 std::string app_locale_;
132 135
133 private: 136 private:
134 DISALLOW_COPY_AND_ASSIGN(PrintingContext); 137 DISALLOW_COPY_AND_ASSIGN(PrintingContext);
135 }; 138 };
136 139
137 } // namespace printing 140 } // namespace printing
138 141
139 #endif // PRINTING_PRINTING_CONTEXT_H_ 142 #endif // PRINTING_PRINTING_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698