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

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

Issue 15061004: Change new-style default dialog buttons on focus too. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/window/dialog_client_view.cc
diff --git a/ui/views/window/dialog_client_view.cc b/ui/views/window/dialog_client_view.cc
index 72f550eb946a42fcff299ff472a7858967aa6af7..ef10fc4a4529e79c0c438c63df713c387b516218 100644
--- a/ui/views/window/dialog_client_view.cc
+++ b/ui/views/window/dialog_client_view.cc
@@ -146,11 +146,6 @@ const DialogClientView* DialogClientView::AsDialogClientView() const {
void DialogClientView::OnWillChangeFocus(View* focused_before,
View* focused_now) {
- // New style dialogs do not move the default button with the focus.
- // TODO(msw|wittman): Remove this functionality once the new style has landed.
- if (DialogDelegate::UseNewStyle())
- return;
-
// Make the newly focused button default or restore the dialog's default.
const int default_button = GetDialogDelegate()->GetDefaultDialogButton();
LabelButton* new_default_button = NULL;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698