summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/webui/print_preview_ui.h
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-15 09:12:03 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-15 09:12:03 +0000
commitc2e71d2e86657cad334fb2d778c3756878d1359b (patch)
treeeb1e22e064c20618780a6afedbe333d52862a724 /chrome/browser/ui/webui/print_preview_ui.h
parent29cd97871e733952ab4e05b5d9d7ea79d3a339d9 (diff)
downloadchromium_src-c2e71d2e86657cad334fb2d778c3756878d1359b.zip
chromium_src-c2e71d2e86657cad334fb2d778c3756878d1359b.tar.gz
chromium_src-c2e71d2e86657cad334fb2d778c3756878d1359b.tar.bz2
Revert 110056 - Print Preview: Make print preview tab modal.
BUG=none TEST=none Review URL: http://codereview.chromium.org/8136027 TBR=thestig@chromium.org Review URL: http://codereview.chromium.org/8564044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110059 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/webui/print_preview_ui.h')
-rw-r--r--chrome/browser/ui/webui/print_preview_ui.h23
1 files changed, 5 insertions, 18 deletions
diff --git a/chrome/browser/ui/webui/print_preview_ui.h b/chrome/browser/ui/webui/print_preview_ui.h
index de59b47..0625ef0 100644
--- a/chrome/browser/ui/webui/print_preview_ui.h
+++ b/chrome/browser/ui/webui/print_preview_ui.h
@@ -12,7 +12,7 @@
#include "base/memory/ref_counted_memory.h"
#include "base/time.h"
#include "chrome/browser/printing/print_preview_data_service.h"
-#include "chrome/browser/ui/webui/constrained_html_ui.h"
+#include "chrome/browser/ui/webui/chrome_web_ui.h"
class PrintPreviewDataService;
class PrintPreviewHandler;
@@ -22,7 +22,7 @@ namespace printing {
struct PageSizeMargins;
}
-class PrintPreviewUI : public ConstrainedHtmlUI {
+class PrintPreviewUI : public ChromeWebUI {
public:
explicit PrintPreviewUI(TabContents* contents);
virtual ~PrintPreviewUI();
@@ -100,14 +100,13 @@ class PrintPreviewUI : public ConstrainedHtmlUI {
// Notifies the Web UI that the print preview failed to render.
void OnPrintPreviewFailed();
- // Notified the Web UI that this print preview tab's RenderProcess has been
- // closed, which may occur for several reasons, e.g. tab closure or crash.
- void OnPrintPreviewTabClosed();
-
// Notifies the Web UI that initiator tab is closed, so we can disable all the
// controls that need the initiator tab for generating the preview data.
void OnInitiatorTabClosed();
+ // Notifies the Web UI that the initiator tab has crashed.
+ void OnInitiatorTabCrashed();
+
// Notifies the Web UI renderer that file selection has been cancelled.
void OnFileSelectionCancelled();
@@ -118,15 +117,6 @@ class PrintPreviewUI : public ConstrainedHtmlUI {
// Notifies the Web UI to cancel the pending preview request.
void OnCancelPendingPreviewRequest();
- // Hides the print preview tab.
- void OnHidePreviewTab();
-
- // Closes the print preview tab.
- void OnClosePrintPreviewTab();
-
- // Reload the printers list.
- void OnReloadPrintersList();
-
private:
friend class PrintPreviewHandlerTest;
FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, StickyMarginsCustom);
@@ -162,9 +152,6 @@ class PrintPreviewUI : public ConstrainedHtmlUI {
// title.
string16 initiator_tab_title_;
- // Keeps track of whether OnClosePrintPreviewTab() has been called or not.
- bool tab_closed_;
-
DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI);
};