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

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

Issue 17500003: Close web contents modal dialogs on content load start (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compilation fixes, change "inhibit" variable names Created 7 years, 5 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/print_preview_ui.h
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_ui.h b/chrome/browser/ui/webui/print_preview/print_preview_ui.h
index 51fdd021cc644071766202c059e76f9dd5e59711..1cd81e397290f012d88f5036721001ada00acf07 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_ui.h
+++ b/chrome/browser/ui/webui/print_preview/print_preview_ui.h
@@ -53,9 +53,9 @@ class PrintPreviewUI : public ConstrainedWebDialogUI {
int GetAvailableDraftPageCount();
// Setters
- void SetInitiatorTabTitle(const string16& initiator_tab_title);
+ void SetInitiatorTitle(const string16& initiator_title);
- string16 initiator_tab_title() { return initiator_tab_title_; }
+ string16 initiator_title() { return initiator_title_; }
bool source_is_modifiable() { return source_is_modifiable_; }
@@ -109,8 +109,8 @@ class PrintPreviewUI : public ConstrainedWebDialogUI {
void OnReusePreviewData(int preview_request_id);
// Notifies the Web UI that preview dialog has been destroyed. This is the
- // last chance to communicate with the initiator tab before the association
- // is erased.
+ // last chance to communicate with the initiator before the association is
+ // erased.
void OnPrintPreviewDialogDestroyed();
// Notifies the Web UI that the print preview failed to render.
@@ -120,9 +120,9 @@ class PrintPreviewUI : public ConstrainedWebDialogUI {
// closed, which may occur for several reasons, e.g. tab closure or crash.
void OnPrintPreviewDialogClosed();
- // 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 initiator is closed, so we can disable all the
+ // controls that need the initiator for generating the preview data.
+ void OnInitiatorClosed();
// Notifies the Web UI renderer that file selection has been cancelled.
void OnFileSelectionCancelled();
@@ -181,9 +181,9 @@ class PrintPreviewUI : public ConstrainedWebDialogUI {
// Indicates whether only the selection should be printed.
bool print_selection_only_;
- // Store the initiator tab title, used for populating the print preview dialog
+ // Store the initiator title, used for populating the print preview dialog
// title.
- string16 initiator_tab_title_;
+ string16 initiator_title_;
// Keeps track of whether OnClosePrintPreviewDialog() has been called or not.
bool dialog_closed_;

Powered by Google App Engine
This is Rietveld 408576698