diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-11 04:58:20 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-11 04:58:20 +0000 |
commit | eaa389e3a4be9d9f87113043156cf6ac85f67c8d (patch) | |
tree | 5bf89af4a8b7a477dd2e878e08e98b9852333b47 /printing/printing_context_cairo.h | |
parent | 9b6db26fcc22a7a4ec0510a93733b2e190d9e649 (diff) | |
download | chromium_src-eaa389e3a4be9d9f87113043156cf6ac85f67c8d.zip chromium_src-eaa389e3a4be9d9f87113043156cf6ac85f67c8d.tar.gz chromium_src-eaa389e3a4be9d9f87113043156cf6ac85f67c8d.tar.bz2 |
Linux: Refactor PrintDialogGtk in preparation for adding dialog-less printing.
BUG=none
TEST=Printing on Linux still works.
Review URL: http://codereview.chromium.org/6811016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81069 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/printing_context_cairo.h')
-rw-r--r-- | printing/printing_context_cairo.h | 16 |
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); |