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

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

Issue 2807653002: Ensure default dialog button focus remains after a dialog update. (Closed)
Patch Set: Addressing Devlin's comments. Created 3 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
Index: ui/views/window/dialog_client_view.h
diff --git a/ui/views/window/dialog_client_view.h b/ui/views/window/dialog_client_view.h
index 01faf827be2b50b149051f8db97573ab99c766d3..e60fa34bbee1c7da70838ef562faba2432e10836 100644
--- a/ui/views/window/dialog_client_view.h
+++ b/ui/views/window/dialog_client_view.h
@@ -131,6 +131,9 @@ class VIEWS_EXPORT DialogClientView : public ClientView,
// SetupLayout(). Everything will be manually updated afterwards.
bool adding_or_removing_views_ = false;
+ // The dialog button with the default focus.
+ View* default_focus_ = nullptr;
+
DISALLOW_COPY_AND_ASSIGN(DialogClientView);
};

Powered by Google App Engine
This is Rietveld 408576698