diff options
author | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-16 19:39:42 +0000 |
---|---|---|
committer | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-16 19:39:42 +0000 |
commit | dc2e19a410569e30dc9ad317b92da275738722ad (patch) | |
tree | 11c61e8fbfaaf26a3404c5a0c3299ec6bddbeafc /chrome/browser/jsmessage_box_handler.cc | |
parent | 0471c9f5171d457897bcf9f3448a0befb0ad427c (diff) | |
download | chromium_src-dc2e19a410569e30dc9ad317b92da275738722ad.zip chromium_src-dc2e19a410569e30dc9ad317b92da275738722ad.tar.gz chromium_src-dc2e19a410569e30dc9ad317b92da275738722ad.tar.bz2 |
Implement app modal dialogs on mac.
Review URL: http://codereview.chromium.org/79012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13869 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/jsmessage_box_handler.cc')
-rw-r--r-- | chrome/browser/jsmessage_box_handler.cc | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/chrome/browser/jsmessage_box_handler.cc b/chrome/browser/jsmessage_box_handler.cc index 551cf4b..6c43fbf 100644 --- a/chrome/browser/jsmessage_box_handler.cc +++ b/chrome/browser/jsmessage_box_handler.cc @@ -68,14 +68,9 @@ void RunJavascriptMessageBox(WebContents* web_contents, bool display_suppress_checkbox, IPC::Message* reply_msg) { std::wstring title = GetWindowTitle(web_contents, frame_url, dialog_flags); - -#if defined(OS_WIN) || defined(OS_LINUX) AppModalDialogQueue::AddDialog(new AppModalDialog(web_contents, title, dialog_flags, MakeTextSafe(message_text), default_prompt_text, display_suppress_checkbox, false, reply_msg)); -#else - NOTIMPLEMENTED(); -#endif } void RunBeforeUnloadDialog(WebContents* web_contents, @@ -84,12 +79,8 @@ void RunBeforeUnloadDialog(WebContents* web_contents, std::wstring full_message = message_text + L"\n\n" + l10n_util::GetString(IDS_BEFOREUNLOAD_MESSAGEBOX_FOOTER); -#if defined(OS_WIN) || defined(OS_LINUX) AppModalDialogQueue::AddDialog(new AppModalDialog( web_contents, l10n_util::GetString(IDS_BEFOREUNLOAD_MESSAGEBOX_TITLE), MessageBox::kIsJavascriptConfirm, MakeTextSafe(message_text), std::wstring(), false, true, reply_msg)); -#else - NOTIMPLEMENTED(); -#endif } |