summaryrefslogtreecommitdiffstats
path: root/chrome/browser/download
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-21 22:31:47 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-21 22:31:47 +0000
commit7f1a907d93ee0f7ac527424a70e245343ce0539a (patch)
treef2676a17b23d23c9c044dd64bde0b6601dc256d1 /chrome/browser/download
parent806aeb954d302328cc75bda71331474d8634675b (diff)
downloadchromium_src-7f1a907d93ee0f7ac527424a70e245343ce0539a.zip
chromium_src-7f1a907d93ee0f7ac527424a70e245343ce0539a.tar.gz
chromium_src-7f1a907d93ee0f7ac527424a70e245343ce0539a.tar.bz2
Revert "Refactor DialogDelegate so the DialogButton enum is in cross platform"
This reverts commit r14146. MessageBox is redefined to MessageBoxW by windows. I need to rename the class. Review URL: http://codereview.chromium.org/87064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14147 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download')
-rw-r--r--chrome/browser/download/download_request_dialog_delegate_win.cc6
-rw-r--r--chrome/browser/download/download_request_dialog_delegate_win.h5
2 files changed, 5 insertions, 6 deletions
diff --git a/chrome/browser/download/download_request_dialog_delegate_win.cc b/chrome/browser/download/download_request_dialog_delegate_win.cc
index 767bfee..3f359ca 100644
--- a/chrome/browser/download/download_request_dialog_delegate_win.cc
+++ b/chrome/browser/download/download_request_dialog_delegate_win.cc
@@ -46,10 +46,10 @@ views::View* DownloadRequestDialogDelegateWin::GetContentsView() {
}
std::wstring DownloadRequestDialogDelegateWin::GetDialogButtonLabel(
- MessageBox::DialogButton button) const {
- if (button == MessageBox::DIALOGBUTTON_OK)
+ DialogButton button) const {
+ if (button == DIALOGBUTTON_OK)
return l10n_util::GetString(IDS_MULTI_DOWNLOAD_WARNING_ALLOW);
- if (button == MessageBox::DIALOGBUTTON_CANCEL)
+ if (button == DIALOGBUTTON_CANCEL)
return l10n_util::GetString(IDS_MULTI_DOWNLOAD_WARNING_DENY);
return std::wstring();
}
diff --git a/chrome/browser/download/download_request_dialog_delegate_win.h b/chrome/browser/download/download_request_dialog_delegate_win.h
index df3dd01..7e5f83f 100644
--- a/chrome/browser/download/download_request_dialog_delegate_win.h
+++ b/chrome/browser/download/download_request_dialog_delegate_win.h
@@ -32,10 +32,9 @@ class DownloadRequestDialogDelegateWin : public DownloadRequestDialogDelegate,
virtual bool Cancel();
virtual bool Accept();
virtual views::View* GetContentsView();
- virtual std::wstring GetDialogButtonLabel(
- MessageBox::DialogButton button) const;
+ virtual std::wstring GetDialogButtonLabel(DialogButton button) const;
virtual int GetDefaultDialogButton() const {
- return MessageBox::DIALOGBUTTON_CANCEL;
+ return DIALOGBUTTON_CANCEL;
}
virtual void DeleteDelegate();