diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-21 22:31:47 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-21 22:31:47 +0000 |
commit | 7f1a907d93ee0f7ac527424a70e245343ce0539a (patch) | |
tree | f2676a17b23d23c9c044dd64bde0b6601dc256d1 /chrome/browser/views/user_data_dir_dialog.cc | |
parent | 806aeb954d302328cc75bda71331474d8634675b (diff) | |
download | chromium_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/views/user_data_dir_dialog.cc')
-rw-r--r-- | chrome/browser/views/user_data_dir_dialog.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/chrome/browser/views/user_data_dir_dialog.cc b/chrome/browser/views/user_data_dir_dialog.cc index e5a2a8c..3598950 100644 --- a/chrome/browser/views/user_data_dir_dialog.cc +++ b/chrome/browser/views/user_data_dir_dialog.cc @@ -37,14 +37,19 @@ UserDataDirDialog::~UserDataDirDialog() { select_file_dialog_->ListenerDestroyed(); } +int UserDataDirDialog::GetDialogButtons() const { + return DIALOGBUTTON_OK | DIALOGBUTTON_CANCEL; + +} + std::wstring UserDataDirDialog::GetDialogButtonLabel( - MessageBox::DialogButton button) const { + DialogButton button) const { switch (button) { - case MessageBox::DIALOGBUTTON_OK: + case DIALOGBUTTON_OK: return l10n_util::GetString( IDS_CANT_WRITE_USER_DIRECTORY_CHOOSE_DIRECTORY_BUTTON); - case MessageBox::DIALOGBUTTON_CANCEL: + case DIALOGBUTTON_CANCEL: return l10n_util::GetString(IDS_CANT_WRITE_USER_DIRECTORY_EXIT_BUTTON); default: NOTREACHED(); |