Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2297)

Unified Diff: chrome/browser/ui/webui/print_preview_ui.h

Issue 7202012: Print Preview: Display a throbber when the user requests the system print (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix. Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/print_preview_handler.cc ('k') | chrome/browser/ui/webui/print_preview_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/print_preview_ui.h
diff --git a/chrome/browser/ui/webui/print_preview_ui.h b/chrome/browser/ui/webui/print_preview_ui.h
index d55f306feade74e0992f8d37aaae6d79540fca61..7637801ac9f425c2db3d5876a5d0459beb423105 100644
--- a/chrome/browser/ui/webui/print_preview_ui.h
+++ b/chrome/browser/ui/webui/print_preview_ui.h
@@ -15,6 +15,7 @@
#include "chrome/browser/ui/webui/chrome_web_ui.h"
class PrintPreviewDataService;
+class PrintPreviewHandler;
class PrintPreviewUI : public ChromeWebUI {
public:
@@ -38,6 +39,11 @@ class PrintPreviewUI : public ChromeWebUI {
const string16& job_title,
bool modifiable);
+ // Notify the Web UI that a navigation has occurred in this tab. This is the
+ // last chance to communicate with the source tab before the assocation is
+ // erased.
+ void OnNavigation();
+
// Notify 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.
// |initiator_tab_url| is passed in order to display a more accurate error
@@ -56,6 +62,9 @@ class PrintPreviewUI : public ChromeWebUI {
// Store the PrintPreviewUI address string.
std::string preview_ui_addr_str_;
+ // Weak pointer to the WebUI handler.
+ PrintPreviewHandler* handler_;
+
DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI);
};
« no previous file with comments | « chrome/browser/ui/webui/print_preview_handler.cc ('k') | chrome/browser/ui/webui/print_preview_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698