| 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 72d2e86770ddc762ff3448bbf8e3fdfbfb6ad4d3..da3fb08e95e95df3cd01edece4d30b4ec231caec 100644
|
| --- a/chrome/browser/ui/webui/tab_modal_confirm_dialog_webui.h
|
| +++ b/chrome/browser/ui/webui/tab_modal_confirm_dialog_webui.h
|
| @@ -12,24 +12,27 @@
|
|
|
| #include "base/basictypes.h"
|
| #include "base/memory/scoped_ptr.h"
|
| -#include "chrome/browser/ui/webui/web_dialog_delegate.h"
|
| +#include "ui/web_dialogs/web_dialog_delegate.h"
|
|
|
| -class ConstrainedWebDialogDelegate;
|
| class TabContentsWrapper;
|
| class TabModalConfirmDialogDelegate;
|
|
|
| +namespace ui {
|
| +class ConstrainedWebDialogDelegate;
|
| +}
|
| +
|
| // 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 TabModalConfirmDialogWebUI : public WebDialogDelegate {
|
| +class TabModalConfirmDialogWebUI : public ui::WebDialogDelegate {
|
| public:
|
| TabModalConfirmDialogWebUI(
|
| TabModalConfirmDialogDelegate* dialog_delegate,
|
| TabContentsWrapper* wrapper);
|
|
|
| - // WebDialogDelegate implementation.
|
| + // ui::WebDialogDelegate implementation.
|
| virtual ui::ModalType GetDialogModalType() const OVERRIDE;
|
| virtual string16 GetDialogTitle() const OVERRIDE;
|
| virtual GURL GetDialogContentURL() const OVERRIDE;
|
| @@ -42,7 +45,7 @@ class TabModalConfirmDialogWebUI : public WebDialogDelegate {
|
| bool* out_close_dialog) OVERRIDE;
|
| virtual bool ShouldShowDialogTitle() const OVERRIDE;
|
|
|
| - ConstrainedWebDialogDelegate* constrained_web_dialog_delegate() {
|
| + ui::ConstrainedWebDialogDelegate* constrained_web_dialog_delegate() {
|
| return constrained_web_dialog_delegate_;
|
| }
|
|
|
| @@ -52,7 +55,7 @@ class TabModalConfirmDialogWebUI : public WebDialogDelegate {
|
| scoped_ptr<TabModalConfirmDialogDelegate> delegate_;
|
|
|
| // Deletes itself.
|
| - ConstrainedWebDialogDelegate* constrained_web_dialog_delegate_;
|
| + ui::ConstrainedWebDialogDelegate* constrained_web_dialog_delegate_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogWebUI);
|
| };
|
|
|