| Index: chrome/browser/gtk/repost_form_warning_gtk.h
|
| ===================================================================
|
| --- chrome/browser/gtk/repost_form_warning_gtk.h (revision 42478)
|
| +++ chrome/browser/gtk/repost_form_warning_gtk.h (working copy)
|
| @@ -8,26 +8,19 @@
|
| #include <gtk/gtk.h>
|
|
|
| #include "chrome/common/notification_registrar.h"
|
| -#include "chrome/browser/gtk/constrained_window_gtk.h"
|
| -#include "app/gtk_signal.h"
|
|
|
| class NavigationController;
|
| -class TabContents;
|
|
|
| // Displays a dialog that warns the user that they are about to resubmit a form.
|
| // 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 NotificationObserver,
|
| - ConstrainedWindowGtkDelegate {
|
| +class RepostFormWarningGtk : public NotificationObserver {
|
| public:
|
| - RepostFormWarningGtk(GtkWindow* parent, TabContents* tab_contents);
|
| + RepostFormWarningGtk(GtkWindow* parent,
|
| + NavigationController* navigation_controller);
|
| virtual ~RepostFormWarningGtk();
|
|
|
| - virtual GtkWidget* GetWidgetRoot();
|
| -
|
| - virtual void DeleteDelegate();
|
| -
|
| private:
|
| // NotificationObserver implementation.
|
| // Watch for a new load or a closed tab and dismiss the dialog if they occur.
|
| @@ -36,15 +29,13 @@
|
| const NotificationDetails& details);
|
|
|
| // Tell Gtk to destroy the dialog window. This will only be done once, even
|
| - // if Destroy is called multiple times.
|
| + // if Destroy is called multiple times (eg, from both OnResponse and Observe.)
|
| void Destroy();
|
|
|
| - CHROMEGTK_CALLBACK_0(RepostFormWarningGtk, void, OnRefresh);
|
| - CHROMEGTK_CALLBACK_0(RepostFormWarningGtk, void, OnCancel);
|
| - CHROMEGTK_CALLBACK_1(RepostFormWarningGtk,
|
| - void,
|
| - OnHierarchyChanged,
|
| - GtkWidget*);
|
| + static void OnResponse(GtkWidget* widget,
|
| + int response,
|
| + RepostFormWarningGtk* dialog);
|
| + static void OnWindowDestroy(GtkWidget* widget, RepostFormWarningGtk* dialog);
|
|
|
| NotificationRegistrar registrar_;
|
|
|
| @@ -52,11 +43,7 @@
|
| NavigationController* navigation_controller_;
|
|
|
| GtkWidget* dialog_;
|
| - GtkWidget* ok_;
|
| - GtkWidget* cancel_;
|
|
|
| - ConstrainedWindow* window_;
|
| -
|
| DISALLOW_COPY_AND_ASSIGN(RepostFormWarningGtk);
|
| };
|
|
|
|
|