summaryrefslogtreecommitdiffstats
path: root/chrome/browser/jsmessage_box_handler.cc
diff options
context:
space:
mode:
authorpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-16 19:39:42 +0000
committerpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-16 19:39:42 +0000
commitdc2e19a410569e30dc9ad317b92da275738722ad (patch)
tree11c61e8fbfaaf26a3404c5a0c3299ec6bddbeafc /chrome/browser/jsmessage_box_handler.cc
parent0471c9f5171d457897bcf9f3448a0befb0ad427c (diff)
downloadchromium_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.cc9
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
}