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" |
11 | 11 |
12 namespace printing { | 12 namespace printing { |
13 | 13 |
14 class Metafile; | 14 class Metafile; |
15 class PrintDialogGtkInterface; | 15 class PrintDialogGtkInterface; |
16 | 16 |
17 class PrintingContextCairo : public PrintingContext { | 17 class PrintingContextCairo : public PrintingContext { |
18 public: | 18 public: |
19 explicit PrintingContextCairo(const std::string& app_locale); | 19 explicit PrintingContextCairo(const std::string& app_locale); |
20 ~PrintingContextCairo(); | 20 virtual ~PrintingContextCairo(); |
21 | 21 |
22 #if !defined(OS_CHROMEOS) | 22 #if !defined(OS_CHROMEOS) |
23 // Sets the function that creates the print dialog. | 23 // Sets the function that creates the print dialog. |
24 static void SetCreatePrintDialogFunction( | 24 static void SetCreatePrintDialogFunction( |
25 PrintDialogGtkInterface* (*create_dialog_func)( | 25 PrintDialogGtkInterface* (*create_dialog_func)( |
26 PrintingContextCairo* context)); | 26 PrintingContextCairo* context)); |
27 | 27 |
28 // Prints the document contained in |metafile|. | 28 // Prints the document contained in |metafile|. |
29 void PrintDocument(const Metafile* metafile); | 29 void PrintDocument(const Metafile* metafile); |
30 #endif | 30 #endif |
(...skipping 20 matching lines...) Expand all Loading... |
51 string16 document_name_; | 51 string16 document_name_; |
52 PrintDialogGtkInterface* print_dialog_; | 52 PrintDialogGtkInterface* print_dialog_; |
53 #endif | 53 #endif |
54 | 54 |
55 DISALLOW_COPY_AND_ASSIGN(PrintingContextCairo); | 55 DISALLOW_COPY_AND_ASSIGN(PrintingContextCairo); |
56 }; | 56 }; |
57 | 57 |
58 } // namespace printing | 58 } // namespace printing |
59 | 59 |
60 #endif // PRINTING_PRINTING_CONTEXT_CAIRO_H_ | 60 #endif // PRINTING_PRINTING_CONTEXT_CAIRO_H_ |
OLD | NEW |