summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/cocoa/browser_window_cocoa.mm
diff options
context:
space:
mode:
authorbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-17 02:54:43 +0000
committerbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-17 02:54:43 +0000
commitcb928b74a8f2a612d746a06321d14c34cffedb50 (patch)
tree65420c15864fc903263eb3084c21038fa6c6d99b /chrome/browser/ui/cocoa/browser_window_cocoa.mm
parent196fd8a8240ffa5750867f4253475a1f440ca2a6 (diff)
downloadchromium_src-cb928b74a8f2a612d746a06321d14c34cffedb50.zip
chromium_src-cb928b74a8f2a612d746a06321d14c34cffedb50.tar.gz
chromium_src-cb928b74a8f2a612d746a06321d14c34cffedb50.tar.bz2
Revert 114898 - Add TabModalConfirmDialogDelegate to show simple tab-modal confirmation dialogs.
This CL carves a TabModalConfirmDialogDelegate class (modeled after ConfirmInfobarDelegate) out of RepostFormWarningController and makes it a subclass thereof. It also removes the ShowRepostFormWarning method from BrowserWindow and its subclasses, in favor of a method in browser_dialogs.h. BUG=92795 TEST=none Review URL: http://codereview.chromium.org/8658005 TBR=bauerb@chromium.org Review URL: http://codereview.chromium.org/8962012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114903 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/cocoa/browser_window_cocoa.mm')
-rw-r--r--chrome/browser/ui/cocoa/browser_window_cocoa.mm6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/ui/cocoa/browser_window_cocoa.mm b/chrome/browser/ui/cocoa/browser_window_cocoa.mm
index 9db4de1..46b289d 100644
--- a/chrome/browser/ui/cocoa/browser_window_cocoa.mm
+++ b/chrome/browser/ui/cocoa/browser_window_cocoa.mm
@@ -31,6 +31,7 @@
#import "chrome/browser/ui/cocoa/info_bubble_view.h"
#import "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h"
#import "chrome/browser/ui/cocoa/nsmenuitem_additions.h"
+#include "chrome/browser/ui/cocoa/repost_form_warning_mac.h"
#include "chrome/browser/ui/cocoa/restart_browser.h"
#include "chrome/browser/ui/cocoa/status_bubble_mac.h"
#include "chrome/browser/ui/cocoa/task_manager_mac.h"
@@ -432,6 +433,11 @@ DownloadShelf* BrowserWindowCocoa::GetDownloadShelf() {
return [shelfController bridge];
}
+void BrowserWindowCocoa::ShowRepostFormWarningDialog(
+ TabContents* tab_contents) {
+ RepostFormWarningMac::Create(GetNativeHandle(), tab_contents);
+}
+
void BrowserWindowCocoa::ShowCollectedCookiesDialog(
TabContentsWrapper* wrapper) {
// Deletes itself on close.