OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef PRINTING_PRINTING_CONTEXT_CAIRO_H_ |
| 6 #define PRINTING_PRINTING_CONTEXT_CAIRO_H_ |
| 7 |
| 8 #include "printing/printing_context.h" |
| 9 |
| 10 namespace printing { |
| 11 |
| 12 class PrintingContextCairo : public PrintingContext { |
| 13 public: |
| 14 PrintingContextCairo(); |
| 15 ~PrintingContextCairo(); |
| 16 |
| 17 // PrintingContext implementation. |
| 18 virtual void AskUserForSettings(gfx::NativeView parent_view, |
| 19 int max_pages, |
| 20 bool has_selection, |
| 21 PrintSettingsCallback* callback); |
| 22 virtual Result UseDefaultSettings(); |
| 23 virtual Result InitWithSettings(const PrintSettings& settings); |
| 24 virtual Result NewDocument(const string16& document_name); |
| 25 virtual Result NewPage(); |
| 26 virtual Result PageDone(); |
| 27 virtual Result DocumentDone(); |
| 28 virtual void Cancel(); |
| 29 virtual void DismissDialog(); |
| 30 virtual void ReleaseContext(); |
| 31 virtual gfx::NativeDrawingContext context() const; |
| 32 |
| 33 private: |
| 34 DISALLOW_COPY_AND_ASSIGN(PrintingContextCairo); |
| 35 }; |
| 36 |
| 37 } // namespace printing |
| 38 |
| 39 #endif // PRINTING_PRINTING_CONTEXT_CAIRO_H_ |
OLD | NEW |