summaryrefslogtreecommitdiffstats
path: root/printing/printing_context_cairo.h
diff options
context:
space:
mode:
Diffstat (limited to 'printing/printing_context_cairo.h')
-rw-r--r--printing/printing_context_cairo.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/printing/printing_context_cairo.h b/printing/printing_context_cairo.h
index caee1e3..3002b06 100644
--- a/printing/printing_context_cairo.h
+++ b/printing/printing_context_cairo.h
@@ -15,20 +15,18 @@
namespace printing {
+class PrintDialogGtkInterface;
+
class PrintingContextCairo : public PrintingContext {
public:
explicit PrintingContextCairo(const std::string& app_locale);
~PrintingContextCairo();
#if !defined(OS_CHROMEOS)
- // Sets the function that creates the print dialog, and the function that
- // prints the document.
- static void SetPrintingFunctions(
- void* (*create_dialog_func)(PrintSettingsCallback* callback,
- PrintingContextCairo* context),
- void (*print_document_func)(void* print_dialog,
- const NativeMetafile* metafile,
- const string16& document_name));
+ // Sets the function that creates the print dialog.
+ static void SetCreatePrintDialogFunction(
+ PrintDialogGtkInterface* (*create_dialog_func)(
+ PrintingContextCairo* context));
// Prints the document contained in |metafile|.
void PrintDocument(const NativeMetafile* metafile);
@@ -54,7 +52,7 @@ class PrintingContextCairo : public PrintingContext {
private:
#if !defined(OS_CHROMEOS)
string16 document_name_;
- void* print_dialog_;
+ PrintDialogGtkInterface* print_dialog_;
#endif
DISALLOW_COPY_AND_ASSIGN(PrintingContextCairo);