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

Side by Side Diff: printing/printing_context_win.h

Issue 504763002: Revert of Added PrintingContext::Delegate to get parent view handle and application locale. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/printing_context_no_system_dialog.cc ('k') | printing/printing_context_win.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_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
11 #include <string> 11 #include <string>
12 12
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "build/build_config.h" 14 #include "build/build_config.h"
15 #include "printing/printing_context.h" 15 #include "printing/printing_context.h"
16 #include "ui/gfx/native_widget_types.h" 16 #include "ui/gfx/native_widget_types.h"
17 17
18 namespace printing { 18 namespace printing {
19 19
20 class PRINTING_EXPORT PrintingContextWin : public PrintingContext { 20 class PRINTING_EXPORT PrintingContextWin : public PrintingContext {
21 public: 21 public:
22 explicit PrintingContextWin(Delegate* delegate); 22 explicit PrintingContextWin(const std::string& app_locale);
23 virtual ~PrintingContextWin(); 23 ~PrintingContextWin();
24 24
25 // PrintingContext implementation. 25 // PrintingContext implementation.
26 virtual void AskUserForSettings( 26 virtual void AskUserForSettings(
27 gfx::NativeView parent_view,
27 int max_pages, 28 int max_pages,
28 bool has_selection, 29 bool has_selection,
29 const PrintSettingsCallback& callback) OVERRIDE; 30 const PrintSettingsCallback& callback) OVERRIDE;
30 virtual Result UseDefaultSettings() OVERRIDE; 31 virtual Result UseDefaultSettings() OVERRIDE;
31 virtual gfx::Size GetPdfPaperSizeDeviceUnits() OVERRIDE; 32 virtual gfx::Size GetPdfPaperSizeDeviceUnits() OVERRIDE;
32 virtual Result UpdatePrinterSettings(bool external_preview) OVERRIDE; 33 virtual Result UpdatePrinterSettings(bool external_preview) OVERRIDE;
33 virtual Result InitWithSettings(const PrintSettings& settings) OVERRIDE; 34 virtual Result InitWithSettings(const PrintSettings& settings) OVERRIDE;
34 virtual Result NewDocument(const base::string16& document_name) OVERRIDE; 35 virtual Result NewDocument(const base::string16& document_name) OVERRIDE;
35 virtual Result NewPage() OVERRIDE; 36 virtual Result NewPage() OVERRIDE;
36 virtual Result PageDone() OVERRIDE; 37 virtual Result PageDone() OVERRIDE;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 78
78 // The dialog box for the time it is shown. 79 // The dialog box for the time it is shown.
79 volatile HWND dialog_box_; 80 volatile HWND dialog_box_;
80 81
81 DISALLOW_COPY_AND_ASSIGN(PrintingContextWin); 82 DISALLOW_COPY_AND_ASSIGN(PrintingContextWin);
82 }; 83 };
83 84
84 } // namespace printing 85 } // namespace printing
85 86
86 #endif // PRINTING_PRINTING_CONTEXT_WIN_H_ 87 #endif // PRINTING_PRINTING_CONTEXT_WIN_H_
OLDNEW
« no previous file with comments | « printing/printing_context_no_system_dialog.cc ('k') | printing/printing_context_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698