Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7266)

Unified Diff: chrome/browser/ui/webui/tab_modal_confirm_dialog_webui.h

Issue 10448066: Move the web dialogs code to src/ui/web_dialogs from src/chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
};
« no previous file with comments | « chrome/browser/ui/webui/print_preview/print_preview_ui.cc ('k') | chrome/browser/ui/webui/tab_modal_confirm_dialog_webui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698