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

Side by Side Diff: printing/printing_context_win.h

Issue 46623002: Move settings setup for PDF and cloud print into single location in PrintingContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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_WIN_H_ 5 #ifndef PRINTING_PRINTING_CONTEXT_WIN_H_
6 #define PRINTING_PRINTING_CONTEXT_WIN_H_ 6 #define PRINTING_PRINTING_CONTEXT_WIN_H_
7 7
8 #include <ocidl.h> 8 #include <ocidl.h>
9 #include <commdlg.h> 9 #include <commdlg.h>
10 10
(...skipping 14 matching lines...) Expand all
25 explicit PrintingContextWin(const std::string& app_locale); 25 explicit PrintingContextWin(const std::string& app_locale);
26 ~PrintingContextWin(); 26 ~PrintingContextWin();
27 27
28 // PrintingContext implementation. 28 // PrintingContext implementation.
29 virtual void AskUserForSettings( 29 virtual void AskUserForSettings(
30 gfx::NativeView parent_view, 30 gfx::NativeView parent_view,
31 int max_pages, 31 int max_pages,
32 bool has_selection, 32 bool has_selection,
33 const PrintSettingsCallback& callback) OVERRIDE; 33 const PrintSettingsCallback& callback) OVERRIDE;
34 virtual Result UseDefaultSettings() OVERRIDE; 34 virtual Result UseDefaultSettings() OVERRIDE;
35 virtual Result UpdatePrinterSettings(bool target_is_pdf, 35 virtual gfx::Size GetPdfPaperSizeDeviceUnits() OVERRIDE;
36 bool external_preview) OVERRIDE; 36 virtual Result UpdatePrinterSettings(bool external_preview) OVERRIDE;
37 virtual Result InitWithSettings(const PrintSettings& settings) OVERRIDE; 37 virtual Result InitWithSettings(const PrintSettings& settings) OVERRIDE;
38 virtual Result NewDocument(const base::string16& document_name) OVERRIDE; 38 virtual Result NewDocument(const base::string16& document_name) OVERRIDE;
39 virtual Result NewPage() OVERRIDE; 39 virtual Result NewPage() OVERRIDE;
40 virtual Result PageDone() OVERRIDE; 40 virtual Result PageDone() OVERRIDE;
41 virtual Result DocumentDone() OVERRIDE; 41 virtual Result DocumentDone() OVERRIDE;
42 virtual void Cancel() OVERRIDE; 42 virtual void Cancel() OVERRIDE;
43 virtual void ReleaseContext() OVERRIDE; 43 virtual void ReleaseContext() OVERRIDE;
44 virtual gfx::NativeDrawingContext context() const OVERRIDE; 44 virtual gfx::NativeDrawingContext context() const OVERRIDE;
45 45
46 // PrintSettingsDialogWin::Observer implementation: 46 // PrintSettingsDialogWin::Observer implementation:
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 // Wrapper around native print dialog that runs it on a background thread. 100 // Wrapper around native print dialog that runs it on a background thread.
101 scoped_refptr<ui::PrintSettingsDialogWin> print_settings_dialog_; 101 scoped_refptr<ui::PrintSettingsDialogWin> print_settings_dialog_;
102 102
103 DISALLOW_COPY_AND_ASSIGN(PrintingContextWin); 103 DISALLOW_COPY_AND_ASSIGN(PrintingContextWin);
104 }; 104 };
105 105
106 } // namespace printing 106 } // namespace printing
107 107
108 #endif // PRINTING_PRINTING_CONTEXT_WIN_H_ 108 #endif // PRINTING_PRINTING_CONTEXT_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698