| Index: chrome/browser/ui/gtk/tab_modal_dialog_gtk.h
|
| diff --git a/chrome/browser/ui/gtk/repost_form_warning_gtk.h b/chrome/browser/ui/gtk/tab_modal_dialog_gtk.h
|
| similarity index 51%
|
| rename from chrome/browser/ui/gtk/repost_form_warning_gtk.h
|
| rename to chrome/browser/ui/gtk/tab_modal_dialog_gtk.h
|
| index f14d335b6a9b9b79b9e71c9751330fa810c8a8b8..d055ce6ed3a547f671038310cab7878b278f8c30 100644
|
| --- a/chrome/browser/ui/gtk/repost_form_warning_gtk.h
|
| +++ b/chrome/browser/ui/gtk/tab_modal_dialog_gtk.h
|
| @@ -2,8 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef CHROME_BROWSER_UI_GTK_REPOST_FORM_WARNING_GTK_H_
|
| -#define CHROME_BROWSER_UI_GTK_REPOST_FORM_WARNING_GTK_H_
|
| +#ifndef CHROME_BROWSER_UI_GTK_TAB_MODAL_DIALOG_GTK_H_
|
| +#define CHROME_BROWSER_UI_GTK_TAB_MODAL_DIALOG_GTK_H_
|
| #pragma once
|
|
|
| #include <gtk/gtk.h>
|
| @@ -13,17 +13,19 @@
|
| #include "chrome/browser/ui/gtk/constrained_window_gtk.h"
|
| #include "ui/base/gtk/gtk_signal.h"
|
|
|
| -class RepostFormWarningController;
|
| class TabContents;
|
| +class TabModalDialogDelegate;
|
|
|
| -// Displays a dialog that warns the user that they are about to resubmit
|
| -// a form.
|
| +// Displays a tab-modal dialog, i.e. a dialog that will block the current page
|
| +// but still allow the user to switch to a different page.
|
| // To display the dialog, allocate this object on the heap. It will open the
|
| // dialog from its constructor and then delete itself when the user dismisses
|
| // the dialog.
|
| -class RepostFormWarningGtk : public ConstrainedWindowGtkDelegate {
|
| +class TabModalDialogGtk : public ConstrainedWindowGtkDelegate {
|
| public:
|
| - RepostFormWarningGtk(GtkWindow* parent, TabContents* tab_contents);
|
| + TabModalDialogGtk(GtkWindow* parent,
|
| + TabModalDialogDelegate* delegate,
|
| + TabContents* tab_contents);
|
|
|
| // ConstrainedWindowGtkDelegate methods
|
| virtual GtkWidget* GetWidgetRoot() OVERRIDE;
|
| @@ -31,19 +33,19 @@ class RepostFormWarningGtk : public ConstrainedWindowGtkDelegate {
|
| virtual void DeleteDelegate() OVERRIDE;
|
|
|
| private:
|
| - virtual ~RepostFormWarningGtk();
|
| + virtual ~TabModalDialogGtk();
|
|
|
| // Callbacks
|
| - CHROMEGTK_CALLBACK_0(RepostFormWarningGtk, void, OnRefresh);
|
| - CHROMEGTK_CALLBACK_0(RepostFormWarningGtk, void, OnCancel);
|
| + CHROMEGTK_CALLBACK_0(TabModalDialogGtk, void, OnRefresh);
|
| + CHROMEGTK_CALLBACK_0(TabModalDialogGtk, void, OnCancel);
|
|
|
| - scoped_ptr<RepostFormWarningController> controller_;
|
| + scoped_ptr<TabModalDialogDelegate> delegate_;
|
|
|
| GtkWidget* dialog_;
|
| GtkWidget* ok_;
|
| GtkWidget* cancel_;
|
|
|
| - DISALLOW_COPY_AND_ASSIGN(RepostFormWarningGtk);
|
| + DISALLOW_COPY_AND_ASSIGN(TabModalDialogGtk);
|
| };
|
|
|
| -#endif // CHROME_BROWSER_UI_GTK_REPOST_FORM_WARNING_GTK_H_
|
| +#endif // CHROME_BROWSER_UI_GTK_TAB_MODAL_DIALOG_GTK_H_
|
|
|