Chromium Code Reviews| Index: chrome/browser/ui/gtk/tab_modal_confirm_dialog_gtk.h |
| diff --git a/chrome/browser/ui/gtk/tab_modal_confirm_dialog_gtk.h b/chrome/browser/ui/gtk/tab_modal_confirm_dialog_gtk.h |
| index cf17041b656285ae3d96e475466d68d66b41e6a4..83b914fa892c6f599a24b5c9ca85ef4c824473a4 100644 |
| --- a/chrome/browser/ui/gtk/tab_modal_confirm_dialog_gtk.h |
| +++ b/chrome/browser/ui/gtk/tab_modal_confirm_dialog_gtk.h |
| @@ -9,6 +9,7 @@ |
| #include "base/compiler_specific.h" |
| #include "base/memory/scoped_ptr.h" |
| +#include "chrome/browser/ui/tab_modal_confirm_dialog.h" |
| #include "chrome/browser/ui/gtk/constrained_window_gtk.h" |
| #include "ui/base/gtk/gtk_signal.h" |
| @@ -20,12 +21,13 @@ class TabModalConfirmDialogDelegate; |
| // 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 TabModalConfirmDialogGtk : public ConstrainedWindowGtkDelegate { |
| +class TabModalConfirmDialogGtk : public TabModalConfirmDialog, |
| + public ConstrainedWindowGtkDelegate { |
| public: |
| TabModalConfirmDialogGtk(TabModalConfirmDialogDelegate* delegate, |
| TabContents* tab_contents); |
| - // ConstrainedWindowGtkDelegate methods |
| + // Overridden from ConstrainedWindowGtkDelegate: |
|
Peter Kasting
2012/09/25 00:39:20
Nit: Be consistent; the the Mac header you used "X
tfarina
2012/09/25 02:03:38
Done.
|
| virtual GtkWidget* GetWidgetRoot() OVERRIDE; |
| virtual GtkWidget* GetFocusWidget() OVERRIDE; |
| virtual void DeleteDelegate() OVERRIDE; |
| @@ -35,6 +37,10 @@ class TabModalConfirmDialogGtk : public ConstrainedWindowGtkDelegate { |
| virtual ~TabModalConfirmDialogGtk(); |
| + // Overridden from TabModalConfirmDialog: |
| + virtual void AcceptTabModalDialog() OVERRIDE; |
| + virtual void CancelTabModalDialog() OVERRIDE; |
| + |
| // Callbacks |
| CHROMEGTK_CALLBACK_0(TabModalConfirmDialogGtk, void, OnAccept); |
| CHROMEGTK_CALLBACK_0(TabModalConfirmDialogGtk, void, OnCancel); |