Chromium Code Reviews| 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_CAIRO_H_ | 5 #ifndef PRINTING_PRINTING_CONTEXT_CAIRO_H_ |
| 6 #define PRINTING_PRINTING_CONTEXT_CAIRO_H_ | 6 #define PRINTING_PRINTING_CONTEXT_CAIRO_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "printing/printing_context.h" | 10 #include "printing/printing_context.h" |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 33 // Prints the document contained in |metafile|. | 33 // Prints the document contained in |metafile|. |
| 34 void PrintDocument(const NativeMetafile* metafile); | 34 void PrintDocument(const NativeMetafile* metafile); |
| 35 #endif | 35 #endif |
| 36 | 36 |
| 37 // PrintingContext implementation. | 37 // PrintingContext implementation. |
| 38 virtual void AskUserForSettings(gfx::NativeView parent_view, | 38 virtual void AskUserForSettings(gfx::NativeView parent_view, |
| 39 int max_pages, | 39 int max_pages, |
| 40 bool has_selection, | 40 bool has_selection, |
| 41 PrintSettingsCallback* callback); | 41 PrintSettingsCallback* callback); |
| 42 virtual Result UseDefaultSettings(); | 42 virtual Result UseDefaultSettings(); |
| 43 virtual Result UpdatePrintSettings(const PageRanges& ranges); | |
|
Lei Zhang
2011/03/03 00:22:44
nit: This comes after InitWithSettings(), per prin
kmadhusu
2011/03/04 19:39:02
Moved it before InitPrintSettings in printing_cont
| |
| 43 virtual Result InitWithSettings(const PrintSettings& settings); | 44 virtual Result InitWithSettings(const PrintSettings& settings); |
| 44 virtual Result NewDocument(const string16& document_name); | 45 virtual Result NewDocument(const string16& document_name); |
| 45 virtual Result NewPage(); | 46 virtual Result NewPage(); |
| 46 virtual Result PageDone(); | 47 virtual Result PageDone(); |
| 47 virtual Result DocumentDone(); | 48 virtual Result DocumentDone(); |
| 48 virtual void Cancel(); | 49 virtual void Cancel(); |
| 49 virtual void ReleaseContext(); | 50 virtual void ReleaseContext(); |
| 50 virtual gfx::NativeDrawingContext context() const; | 51 virtual gfx::NativeDrawingContext context() const; |
| 51 | 52 |
| 52 private: | 53 private: |
| 53 #if !defined(OS_CHROMEOS) | 54 #if !defined(OS_CHROMEOS) |
| 54 string16 document_name_; | 55 string16 document_name_; |
| 55 void* print_dialog_; | 56 void* print_dialog_; |
| 56 #endif | 57 #endif |
| 57 | 58 |
| 58 DISALLOW_COPY_AND_ASSIGN(PrintingContextCairo); | 59 DISALLOW_COPY_AND_ASSIGN(PrintingContextCairo); |
| 59 }; | 60 }; |
| 60 | 61 |
| 61 } // namespace printing | 62 } // namespace printing |
| 62 | 63 |
| 63 #endif // PRINTING_PRINTING_CONTEXT_CAIRO_H_ | 64 #endif // PRINTING_PRINTING_CONTEXT_CAIRO_H_ |
| OLD | NEW |