diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-29 02:36:26 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-29 02:36:26 +0000 |
commit | c48bee274f6c6869430bdda4ce771c8cdabf736f (patch) | |
tree | 7ce89dceab0e9dd2d2a7f7426a429f68201a8782 /chrome/browser/ui/webui/print_preview_handler.h | |
parent | e555f205eb8931da7fdf0f4cb4a01a24c3e2bf8a (diff) | |
download | chromium_src-c48bee274f6c6869430bdda4ce771c8cdabf736f.zip chromium_src-c48bee274f6c6869430bdda4ce771c8cdabf736f.tar.gz chromium_src-c48bee274f6c6869430bdda4ce771c8cdabf736f.tar.bz2 |
Print Preview: Implement basic settings.
BUG=57902
TEST=Run with --enable-print-preview, make sure orientation and color settings work.
Review URL: http://codereview.chromium.org/6736014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79655 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/webui/print_preview_handler.h')
-rw-r--r-- | chrome/browser/ui/webui/print_preview_handler.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/chrome/browser/ui/webui/print_preview_handler.h b/chrome/browser/ui/webui/print_preview_handler.h index 9f11707..108234e 100644 --- a/chrome/browser/ui/webui/print_preview_handler.h +++ b/chrome/browser/ui/webui/print_preview_handler.h @@ -43,9 +43,24 @@ class PrintPreviewHandler : public WebUIMessageHandler, // Send the list of printers to the Web UI. void SendPrinterList(const ListValue& printers); + // Helper function to process the color setting in the dictionary. + void ProcessColorSetting(const DictionaryValue& settings); + + // Helper function to process the landscape setting in the dictionary. + void ProcessLandscapeSetting(const DictionaryValue& settings); + // Pointer to current print system. scoped_refptr<printing::PrintBackend> print_backend_; + // Set to true if we need to generate a new print preview. + bool need_to_generate_preview_; + + // Set to true if the preview should be in color. + bool color_; + + // Set to true if the preview should be landscape. + bool landscape_; + DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); }; |