Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1129)

Unified Diff: ui/views/window/dialog_delegate.cc

Issue 1846033002: Switch GlobalErrorBubbleView to a BubbleDialogDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/window/dialog_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/window/dialog_delegate.cc
diff --git a/ui/views/window/dialog_delegate.cc b/ui/views/window/dialog_delegate.cc
index 6152071f8e06a1eda5de24bcb7ba88f860b1ae9b..b5c4dd64e68a12b014aa47623b7c0b837a975a8e 100644
--- a/ui/views/window/dialog_delegate.cc
+++ b/ui/views/window/dialog_delegate.cc
@@ -113,6 +113,12 @@ bool DialogDelegate::Close() {
return Accept();
}
+void DialogDelegate::UpdateButton(LabelButton* button, ui::DialogButton type) {
+ button->SetText(GetDialogButtonLabel(type));
+ button->SetEnabled(IsDialogButtonEnabled(type));
+ button->SetIsDefault(type == GetDefaultDialogButton());
+}
+
base::string16 DialogDelegate::GetDialogTitle() const {
return GetWindowTitle();
}
« no previous file with comments | « ui/views/window/dialog_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698