diff options
author | mhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-14 01:51:32 +0000 |
---|---|---|
committer | mhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-14 01:51:32 +0000 |
commit | d53d849311746e2443b633b46ea20f13e4fc4481 (patch) | |
tree | 3c63c7b61f335556da0d0d141079e2c59dd43484 /chrome/browser/dom_ui/print_ui.h | |
parent | 3ad70eb6fdb20cf77d09d29e8c0e848e80cdd3ad (diff) | |
download | chromium_src-d53d849311746e2443b633b46ea20f13e4fc4481.zip chromium_src-d53d849311746e2443b633b46ea20f13e4fc4481.tar.gz chromium_src-d53d849311746e2443b633b46ea20f13e4fc4481.tar.bz2 |
Hookup Print HTML page to the DOM UI for Print Preview and Settings
Depends on initial foundation:
http://src.chromium.org/viewvc/chrome?view=rev&revision=19906
And html mockup:
http://src.chromium.org/viewvc/chrome?view=rev&revision=19918
BUG=173, 947
TEST=The user will see the print html page as a html test webpage.
Review URL: http://codereview.chromium.org/155067
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20595 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/dom_ui/print_ui.h')
-rw-r--r-- | chrome/browser/dom_ui/print_ui.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/chrome/browser/dom_ui/print_ui.h b/chrome/browser/dom_ui/print_ui.h index 020b3f1..8443da4 100644 --- a/chrome/browser/dom_ui/print_ui.h +++ b/chrome/browser/dom_ui/print_ui.h @@ -5,8 +5,12 @@ #ifndef CHROME_BROWSER_DOM_UI_PRINT_UI_H_ #define CHROME_BROWSER_DOM_UI_PRINT_UI_H_ +#include <string> + +#include "chrome/browser/dom_ui/chrome_url_data_manager.h" #include "chrome/browser/dom_ui/dom_ui.h" +// The TabContents used for the print page. class PrintUI : public DOMUI { public: explicit PrintUI(TabContents* contents); @@ -15,4 +19,19 @@ class PrintUI : public DOMUI { DISALLOW_COPY_AND_ASSIGN(PrintUI); }; +// To serve dynamic print data off of chrome. +class PrintUIHTMLSource : public ChromeURLDataManager::DataSource { + public: + PrintUIHTMLSource(); + + // ChromeURLDataManager overrides. + virtual void StartDataRequest(const std::string& path, int request_id); + virtual std::string GetMimeType(const std::string&) const { + return "text/html"; + } + + private: + DISALLOW_COPY_AND_ASSIGN(PrintUIHTMLSource); +}; + #endif // CHROME_BROWSER_DOM_UI_PRINT_UI_H_ |