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

Unified Diff: chrome/browser/ui/views/profiles/user_manager_view.cc

Issue 1336853003: Request focus for re-auth webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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: chrome/browser/ui/views/profiles/user_manager_view.cc
diff --git a/chrome/browser/ui/views/profiles/user_manager_view.cc b/chrome/browser/ui/views/profiles/user_manager_view.cc
index eee57009c836e15fe946fafa290d10231d50b297..8e6c6a7498a9ecd1fb3546edad864dd8848bcd0d 100644
--- a/chrome/browser/ui/views/profiles/user_manager_view.cc
+++ b/chrome/browser/ui/views/profiles/user_manager_view.cc
@@ -75,6 +75,7 @@ class ReauthDelegate : public views::DialogDelegateView,
void DeleteDelegate() override;
base::string16 GetWindowTitle() const override;
int GetDialogButtons() const override;
+ views::View* GetInitiallyFocusedView() override;
// UserManager::ReauthObserver:
void CloseReauthDialog() override;
@@ -138,6 +139,10 @@ int ReauthDelegate::GetDialogButtons() const {
return ui::DIALOG_BUTTON_NONE;
}
+views::View* ReauthDelegate::GetInitiallyFocusedView() {
+ return static_cast<views::View*>(web_view_);
sky 2015/09/14 22:49:50 You shouldn't need the static_cast. web_view_ is a
+}
+
void ReauthDelegate::CloseReauthDialog() {
GetWidget()->Close();
}
« 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