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