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

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

Issue 7550063: Print Preview: Handle a crashed initiator tab by showing a message in PP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 4 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
Index: chrome/browser/ui/webui/print_preview_handler.h
diff --git a/chrome/browser/ui/webui/print_preview_handler.h b/chrome/browser/ui/webui/print_preview_handler.h
index 1a354e48cc7cd13fd19890af55abffdf2391f99e..70e5a1de40ba4c0156384d2e004b72629aa1ad3e 100644
--- a/chrome/browser/ui/webui/print_preview_handler.h
+++ b/chrome/browser/ui/webui/print_preview_handler.h
@@ -50,7 +50,7 @@ class PrintPreviewHandler : public WebUIMessageHandler,
// Displays a modal dialog, prompting the user to select a file.
void SelectFile(const FilePath& default_path);
- // Called when the print preview tab navigates. This is the last time this
+ // Called when the print preview tab is destroyed. This is the last time
// this object has access to the PrintViewManager in order to disconnect the
// observer.
void OnNavigation();
Lei Zhang 2011/08/11 01:30:51 Based on the comment, shouldn't this be renamed to
kmadhusu 2011/08/15 18:12:49 Fixed.
@@ -100,6 +100,9 @@ class PrintPreviewHandler : public WebUIMessageHandler,
// |args| is unused.
void HandleManageCloudPrint(const base::ListValue* args);
+ // Reloads the initiator tab and closes the associated preview tab.
+ void HandleReloadCrashedInitiatorTab(const base::ListValue* args);
+
// Ask the browser to show the native printer management dialog.
// |args| is unused.
void HandleManagePrinters(const base::ListValue* args);

Powered by Google App Engine
This is Rietveld 408576698