diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-21 23:49:18 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-21 23:49:18 +0000 |
commit | 478ff2ed6a244658c0a30d6cbfff1a9046b9ba9d (patch) | |
tree | f995985b8749bd31da7cbb73ec73cfce24e97987 /chrome/browser/app_modal_dialog_mac.mm | |
parent | 69e38eca8034fe35c22744f59bee77f987ae8755 (diff) | |
download | chromium_src-478ff2ed6a244658c0a30d6cbfff1a9046b9ba9d.zip chromium_src-478ff2ed6a244658c0a30d6cbfff1a9046b9ba9d.tar.gz chromium_src-478ff2ed6a244658c0a30d6cbfff1a9046b9ba9d.tar.bz2 |
Reland r14146 which refactors DialogButton into cross platform
code. This is the same as the last change except I renamed
class MessageBox to class MessageBoxFlags to avoid conflicting
with the same name in windows.h.
Review URL: http://codereview.chromium.org/87065
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14159 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/app_modal_dialog_mac.mm')
-rw-r--r-- | chrome/browser/app_modal_dialog_mac.mm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/app_modal_dialog_mac.mm b/chrome/browser/app_modal_dialog_mac.mm index f72a5ee..77823824 100644 --- a/chrome/browser/app_modal_dialog_mac.mm +++ b/chrome/browser/app_modal_dialog_mac.mm @@ -49,10 +49,10 @@ void AppModalDialog::CreateAndShowDialog() { NSString* default_button = NSLocalizedString(@"OK", nil); NSString* other_button = NSLocalizedString(@"Cancel", nil); switch (dialog_flags_) { - case MessageBox::kIsJavascriptAlert: + case MessageBoxFlags::kIsJavascriptAlert: // OK & Cancel are fine for these types of alerts. break; - case MessageBox::kIsJavascriptConfirm: + case MessageBoxFlags::kIsJavascriptConfirm: if (is_before_unload_dialog_) { std::string button_text = l10n_util::GetStringUTF8( IDS_BEFOREUNLOAD_MESSAGEBOX_OK_BUTTON_LABEL); @@ -62,7 +62,7 @@ void AppModalDialog::CreateAndShowDialog() { other_button = base::SysUTF8ToNSString(button_text); } break; - case MessageBox::kIsJavascriptPrompt: + case MessageBoxFlags::kIsJavascriptPrompt: // We need to make a custom message box for javascript prompts. Not // sure how to handle this... NOTIMPLEMENTED(); |