| OLD | NEW |
| 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 15 matching lines...) Expand all Loading... |
| 26 virtual void AskUserForSettings( | 26 virtual void AskUserForSettings( |
| 27 gfx::NativeView parent_view, | 27 gfx::NativeView parent_view, |
| 28 int max_pages, | 28 int max_pages, |
| 29 bool has_selection, | 29 bool has_selection, |
| 30 const PrintSettingsCallback& callback) OVERRIDE; | 30 const PrintSettingsCallback& callback) OVERRIDE; |
| 31 virtual Result UseDefaultSettings() OVERRIDE; | 31 virtual Result UseDefaultSettings() OVERRIDE; |
| 32 virtual Result UpdatePrinterSettings( | 32 virtual Result UpdatePrinterSettings( |
| 33 const base::DictionaryValue& job_settings, | 33 const base::DictionaryValue& job_settings, |
| 34 const PageRanges& ranges) OVERRIDE; | 34 const PageRanges& ranges) OVERRIDE; |
| 35 virtual Result InitWithSettings(const PrintSettings& settings) OVERRIDE; | 35 virtual Result InitWithSettings(const PrintSettings& settings) OVERRIDE; |
| 36 virtual Result NewDocument(const string16& document_name) OVERRIDE; | 36 virtual Result NewDocument(const base::string16& document_name) OVERRIDE; |
| 37 virtual Result NewPage() OVERRIDE; | 37 virtual Result NewPage() OVERRIDE; |
| 38 virtual Result PageDone() OVERRIDE; | 38 virtual Result PageDone() OVERRIDE; |
| 39 virtual Result DocumentDone() OVERRIDE; | 39 virtual Result DocumentDone() OVERRIDE; |
| 40 virtual void Cancel() OVERRIDE; | 40 virtual void Cancel() OVERRIDE; |
| 41 virtual void ReleaseContext() OVERRIDE; | 41 virtual void ReleaseContext() OVERRIDE; |
| 42 virtual gfx::NativeDrawingContext context() const OVERRIDE; | 42 virtual gfx::NativeDrawingContext context() const OVERRIDE; |
| 43 | 43 |
| 44 #if defined(UNIT_TEST) || defined(PRINTING_IMPLEMENTATION) | 44 #if defined(UNIT_TEST) || defined(PRINTING_IMPLEMENTATION) |
| 45 // Sets a fake PrintDlgEx function pointer in tests. | 45 // Sets a fake PrintDlgEx function pointer in tests. |
| 46 void SetPrintDialog(HRESULT (__stdcall *print_dialog_func)(LPPRINTDLGEX)) { | 46 void SetPrintDialog(HRESULT (__stdcall *print_dialog_func)(LPPRINTDLGEX)) { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 // Function pointer that defaults to PrintDlgEx. It can be changed using | 87 // Function pointer that defaults to PrintDlgEx. It can be changed using |
| 88 // SetPrintDialog() in tests. | 88 // SetPrintDialog() in tests. |
| 89 HRESULT (__stdcall *print_dialog_func_)(LPPRINTDLGEX); | 89 HRESULT (__stdcall *print_dialog_func_)(LPPRINTDLGEX); |
| 90 | 90 |
| 91 DISALLOW_COPY_AND_ASSIGN(PrintingContextWin); | 91 DISALLOW_COPY_AND_ASSIGN(PrintingContextWin); |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 } // namespace printing | 94 } // namespace printing |
| 95 | 95 |
| 96 #endif // PRINTING_PRINTING_CONTEXT_WIN_H_ | 96 #endif // PRINTING_PRINTING_CONTEXT_WIN_H_ |
| OLD | NEW |