diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-09 18:17:09 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-09 18:17:09 +0000 |
commit | 464146ec15e527148efee8f6470dc4e6520d0ce4 (patch) | |
tree | c401012623265dba9c228dc14d253bc2cfeff9a3 /chrome/browser/jsmessage_box_handler.cc | |
parent | 0e9020e23d636a40d32e83ce306468683ed03b01 (diff) | |
download | chromium_src-464146ec15e527148efee8f6470dc4e6520d0ce4.zip chromium_src-464146ec15e527148efee8f6470dc4e6520d0ce4.tar.gz chromium_src-464146ec15e527148efee8f6470dc4e6520d0ce4.tar.bz2 |
Actually implement js message boxes on linux. This handles
alert, confirm and onbeforeunload. prompt has a dialog, but there's
no text field. I'll work on that next.
It turns out there's no nested message loop on the windows side,
so there's no nested message loop here either.
BUG=9493
Review URL: http://codereview.chromium.org/63134
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13437 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/jsmessage_box_handler.cc')
-rw-r--r-- | chrome/browser/jsmessage_box_handler.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/jsmessage_box_handler.cc b/chrome/browser/jsmessage_box_handler.cc index 426d10b..1bf7b21 100644 --- a/chrome/browser/jsmessage_box_handler.cc +++ b/chrome/browser/jsmessage_box_handler.cc @@ -53,7 +53,7 @@ void RunJavascriptMessageBox(WebContents* web_contents, IPC::Message* reply_msg) { std::wstring title = GetWindowTitle(web_contents, frame_url); -#if defined(OS_WIN) +#if defined(OS_WIN) || defined(OS_LINUX) AppModalDialogQueue::AddDialog(new AppModalDialog(web_contents, title, dialog_flags, message_text, default_prompt_text, display_suppress_checkbox, false, reply_msg)); @@ -68,7 +68,7 @@ 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) +#if defined(OS_WIN) || defined(OS_LINUX) AppModalDialogQueue::AddDialog(new AppModalDialog( web_contents, l10n_util::GetString(IDS_BEFOREUNLOAD_MESSAGEBOX_TITLE), MessageBox::kIsJavascriptConfirm, message_text, std::wstring(), false, |