| Index: chrome/browser/ui/webui/tab_modal_confirm_dialog_webui.h
|
| diff --git a/chrome/browser/ui/webui/tab_modal_confirm_dialog_webui.h b/chrome/browser/ui/webui/tab_modal_confirm_dialog_webui.h
|
| index c3143c6a7f2d40bed4c17639a02cdd3f5bc4a13f..5cbecd9843b5cc216d330621d0ff74be193eadcf 100644
|
| --- a/chrome/browser/ui/webui/tab_modal_confirm_dialog_webui.h
|
| +++ b/chrome/browser/ui/webui/tab_modal_confirm_dialog_webui.h
|
| @@ -10,12 +10,11 @@
|
| #endif
|
|
|
| #include "base/basictypes.h"
|
| +#include "base/compiler_specific.h"
|
| #include "base/memory/scoped_ptr.h"
|
| +#include "chrome/browser/ui/tab_modal_confirm_dialog.h"
|
| #include "ui/web_dialogs/web_dialog_delegate.h"
|
|
|
| -class TabContents;
|
| -class TabModalConfirmDialogDelegate;
|
| -
|
| namespace ui {
|
| class ConstrainedWebDialogDelegate;
|
| }
|
| @@ -25,7 +24,8 @@ class ConstrainedWebDialogDelegate;
|
| // 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 TabModalConfirmDialogWebUI : public ui::WebDialogDelegate {
|
| +class TabModalConfirmDialogWebUI : public TabModalConfirmDialog,
|
| + public ui::WebDialogDelegate {
|
| public:
|
| TabModalConfirmDialogWebUI(
|
| TabModalConfirmDialogDelegate* dialog_delegate,
|
| @@ -51,6 +51,10 @@ class TabModalConfirmDialogWebUI : public ui::WebDialogDelegate {
|
| private:
|
| virtual ~TabModalConfirmDialogWebUI();
|
|
|
| + // TabModalConfirmDialog:
|
| + virtual void AcceptTabModalDialog() OVERRIDE;
|
| + virtual void CancelTabModalDialog() OVERRIDE;
|
| +
|
| scoped_ptr<TabModalConfirmDialogDelegate> delegate_;
|
|
|
| // Deletes itself.
|
|
|