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

Unified Diff: chrome/browser/ui/tab_modal_confirm_dialog.h

Issue 12276010: Factor out uses of the WebContentsModalDialog interface from platform-independent code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove incorrect override Created 7 years, 10 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
« no previous file with comments | « chrome/browser/ui/login/login_prompt.cc ('k') | chrome/browser/ui/tab_modal_confirm_dialog_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/tab_modal_confirm_dialog.h
diff --git a/chrome/browser/ui/tab_modal_confirm_dialog.h b/chrome/browser/ui/tab_modal_confirm_dialog.h
index e9d5fed7d56d27a929751ee8cdde7a9f4411c09b..6bd54acc963669644d64093474f34b5cb834a1eb 100644
--- a/chrome/browser/ui/tab_modal_confirm_dialog.h
+++ b/chrome/browser/ui/tab_modal_confirm_dialog.h
@@ -5,14 +5,14 @@
#ifndef CHROME_BROWSER_UI_TAB_MODAL_CONFIRM_DIALOG_H_
#define CHROME_BROWSER_UI_TAB_MODAL_CONFIRM_DIALOG_H_
-class TabModalConfirmDialogDelegate;
+#include "chrome/browser/ui/tab_modal_confirm_dialog_delegate.h"
namespace content {
class WebContents;
}
// Base class for the tab modal confirm dialog.
-class TabModalConfirmDialog {
+class TabModalConfirmDialog : public TabModalConfirmDialogCloseDelegate {
public:
// Platform specific factory function. This function will automatically show
// the dialog.
@@ -24,6 +24,10 @@ class TabModalConfirmDialog {
// Cancels the dialog.
virtual void CancelTabModalDialog() = 0;
+ // TabModalConfirmDialogCloseDelegate:
+ // Closes the dialog.
+ virtual void CloseDialog() = 0;
+
protected:
virtual ~TabModalConfirmDialog() {}
};
« no previous file with comments | « chrome/browser/ui/login/login_prompt.cc ('k') | chrome/browser/ui/tab_modal_confirm_dialog_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698