diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-30 01:32:30 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-30 01:32:30 +0000 |
commit | 72f53f9945ce253a40b7f7ff441290b49d756836 (patch) | |
tree | 51cf1354b50577c8d0409502caefee74ec85e48d /chrome/browser/cocoa/browser_window_cocoa.mm | |
parent | a73559511d314072bcf16a0341c5126dd4012bc0 (diff) | |
download | chromium_src-72f53f9945ce253a40b7f7ff441290b49d756836.zip chromium_src-72f53f9945ce253a40b7f7ff441290b49d756836.tar.gz chromium_src-72f53f9945ce253a40b7f7ff441290b49d756836.tar.bz2 |
[Mac] Implement form resubmission warning dialog
Surprisingly, this is not a tab-modal sheet on linux and windows, so it's window-modal on os x as well for now.
BUG=23526
TEST=Go to http://www.cs.unc.edu/~jbs/resources/perl/perl-cgi/programs/form1-POST.html , click "Do it!", hit reload. Window sheet should come up. Hitting cancel should cancel the navigation (and hitting reload again should bring up sheet again). Hitting "Resend" should trigger reload.
Review URL: http://codereview.chromium.org/327009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30547 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/browser_window_cocoa.mm')
-rw-r--r-- | chrome/browser/cocoa/browser_window_cocoa.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/browser_window_cocoa.mm b/chrome/browser/cocoa/browser_window_cocoa.mm index f48746e..f16c524 100644 --- a/chrome/browser/cocoa/browser_window_cocoa.mm +++ b/chrome/browser/cocoa/browser_window_cocoa.mm @@ -14,6 +14,7 @@ #import "chrome/browser/cocoa/keyword_editor_cocoa_controller.h" #import "chrome/browser/cocoa/nsmenuitem_additions.h" #include "chrome/browser/cocoa/page_info_window_mac.h" +#include "chrome/browser/cocoa/repost_form_warning_mac.h" #include "chrome/browser/cocoa/status_bubble_mac.h" #include "chrome/browser/cocoa/task_manager_mac.h" #import "chrome/browser/cocoa/theme_install_bubble_view.h" @@ -276,7 +277,7 @@ void BrowserWindowCocoa::ShowNewProfileDialog() { void BrowserWindowCocoa::ShowRepostFormWarningDialog( TabContents* tab_contents) { - NOTIMPLEMENTED(); + new RepostFormWarningMac(GetNativeHandle(), &tab_contents->controller()); } void BrowserWindowCocoa::ShowHistoryTooNewDialog() { |