#ifndef CHROME_BROWSER_UI_GTK_TAB_MODAL_CONFIRM_DIALOG_GTK_H_
#define CHROME_BROWSER_UI_GTK_TAB_MODAL_CONFIRM_DIALOG_GTK_H_
#include <gtk/gtk.h>
#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"
class TabModalConfirmDialogDelegate;
namespace content {
class WebContents;
}
class TabModalConfirmDialogGtk : public TabModalConfirmDialog {
public:
TabModalConfirmDialogGtk(TabModalConfirmDialogDelegate* delegate,
content::WebContents* web_contents);
private:
friend class TabModalConfirmDialogTest;
virtual ~TabModalConfirmDialogGtk();
virtual void AcceptTabModalDialog() OVERRIDE;
virtual void CancelTabModalDialog() OVERRIDE;
virtual void CloseDialog() OVERRIDE;
CHROMEGTK_CALLBACK_0(TabModalConfirmDialogGtk, void, OnAccept);
CHROMEGTK_CALLBACK_0(TabModalConfirmDialogGtk, void, OnCancel);
CHROMEGTK_CALLBACK_0(TabModalConfirmDialogGtk, void, OnDestroy);
CHROMEGTK_CALLBACK_0(TabModalConfirmDialogGtk, void, OnLinkClicked);
scoped_ptr<TabModalConfirmDialogDelegate> delegate_;
GtkWidget* dialog_;
GtkWidget* ok_;
GtkWidget* cancel_;
GtkWidget* window_;
bool closing_;
DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogGtk);
};
#endif