summaryrefslogtreecommitdiffstats
path: root/chrome/views/window/dialog_delegate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/views/window/dialog_delegate.cc')
-rw-r--r--chrome/views/window/dialog_delegate.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/chrome/views/window/dialog_delegate.cc b/chrome/views/window/dialog_delegate.cc
index 80d0e8b..9778066 100644
--- a/chrome/views/window/dialog_delegate.cc
+++ b/chrome/views/window/dialog_delegate.cc
@@ -13,18 +13,18 @@ namespace views {
// Overridden from WindowDelegate:
int DialogDelegate::GetDefaultDialogButton() const {
- if (GetDialogButtons() & MessageBox::DIALOGBUTTON_OK)
- return MessageBox::DIALOGBUTTON_OK;
- if (GetDialogButtons() & MessageBox::DIALOGBUTTON_CANCEL)
- return MessageBox::DIALOGBUTTON_CANCEL;
- return MessageBox::DIALOGBUTTON_NONE;
+ if (GetDialogButtons() & DIALOGBUTTON_OK)
+ return DIALOGBUTTON_OK;
+ if (GetDialogButtons() & DIALOGBUTTON_CANCEL)
+ return DIALOGBUTTON_CANCEL;
+ return DIALOGBUTTON_NONE;
}
View* DialogDelegate::GetInitiallyFocusedView() {
// Focus the default button if any.
DialogClientView* dcv = GetDialogClientView();
int default_button = GetDefaultDialogButton();
- if (default_button == MessageBox::DIALOGBUTTON_NONE)
+ if (default_button == DIALOGBUTTON_NONE)
return NULL;
if ((default_button & GetDialogButtons()) == 0) {
@@ -33,9 +33,9 @@ View* DialogDelegate::GetInitiallyFocusedView() {
return NULL;
}
- if (default_button & MessageBox::DIALOGBUTTON_OK)
+ if (default_button & DIALOGBUTTON_OK)
return dcv->ok_button();
- if (default_button & MessageBox::DIALOGBUTTON_CANCEL)
+ if (default_button & DIALOGBUTTON_CANCEL)
return dcv->cancel_button();
return NULL;
}