| 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_MAC_H_ | 5 #ifndef PRINTING_PRINTING_CONTEXT_MAC_H_ |
| 6 #define PRINTING_PRINTING_CONTEXT_MAC_H_ | 6 #define PRINTING_PRINTING_CONTEXT_MAC_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 virtual ~PrintingContextMac(); | 25 virtual ~PrintingContextMac(); |
| 26 | 26 |
| 27 // PrintingContext implementation. | 27 // PrintingContext implementation. |
| 28 virtual void AskUserForSettings( | 28 virtual void AskUserForSettings( |
| 29 gfx::NativeView parent_view, | 29 gfx::NativeView parent_view, |
| 30 int max_pages, | 30 int max_pages, |
| 31 bool has_selection, | 31 bool has_selection, |
| 32 const PrintSettingsCallback& callback) OVERRIDE; | 32 const PrintSettingsCallback& callback) OVERRIDE; |
| 33 virtual Result UseDefaultSettings() OVERRIDE; | 33 virtual Result UseDefaultSettings() OVERRIDE; |
| 34 virtual gfx::Size GetPdfPaperSizeDeviceUnits() OVERRIDE; | 34 virtual gfx::Size GetPdfPaperSizeDeviceUnits() OVERRIDE; |
| 35 virtual Result UpdatePrinterSettings(bool external_preview) OVERRIDE; | 35 virtual Result UpdatePrinterSettings(bool external_preview, |
| 36 bool show_system_dialog, |
| 37 gfx::NativeView parent_view) OVERRIDE; |
| 36 virtual Result InitWithSettings(const PrintSettings& settings) OVERRIDE; | 38 virtual Result InitWithSettings(const PrintSettings& settings) OVERRIDE; |
| 37 virtual Result NewDocument(const base::string16& document_name) OVERRIDE; | 39 virtual Result NewDocument(const base::string16& document_name) OVERRIDE; |
| 38 virtual Result NewPage() OVERRIDE; | 40 virtual Result NewPage() OVERRIDE; |
| 39 virtual Result PageDone() OVERRIDE; | 41 virtual Result PageDone() OVERRIDE; |
| 40 virtual Result DocumentDone() OVERRIDE; | 42 virtual Result DocumentDone() OVERRIDE; |
| 41 virtual void Cancel() OVERRIDE; | 43 virtual void Cancel() OVERRIDE; |
| 42 virtual void ReleaseContext() OVERRIDE; | 44 virtual void ReleaseContext() OVERRIDE; |
| 43 virtual gfx::NativeDrawingContext context() const OVERRIDE; | 45 virtual gfx::NativeDrawingContext context() const OVERRIDE; |
| 44 | 46 |
| 45 private: | 47 private: |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 // The current page's context; only valid between NewPage and PageDone call | 98 // The current page's context; only valid between NewPage and PageDone call |
| 97 // pairs. | 99 // pairs. |
| 98 CGContext* context_; | 100 CGContext* context_; |
| 99 | 101 |
| 100 DISALLOW_COPY_AND_ASSIGN(PrintingContextMac); | 102 DISALLOW_COPY_AND_ASSIGN(PrintingContextMac); |
| 101 }; | 103 }; |
| 102 | 104 |
| 103 } // namespace printing | 105 } // namespace printing |
| 104 | 106 |
| 105 #endif // PRINTING_PRINTING_CONTEXT_MAC_H_ | 107 #endif // PRINTING_PRINTING_CONTEXT_MAC_H_ |
| OLD | NEW |