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

Unified Diff: chrome/browser/ui/views/profiles/profile_chooser_view.h

Issue 1226093005: Give ProfileChooserView signin button focus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Override WidgetDelegate::GetInitiallyFocusedView(). Created 5 years, 5 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: chrome/browser/ui/views/profiles/profile_chooser_view.h
diff --git a/chrome/browser/ui/views/profiles/profile_chooser_view.h b/chrome/browser/ui/views/profiles/profile_chooser_view.h
index b40e6af5af9d8e9edb06e87f084a1ea8e2c145b2..9e09891078888d8c9a580f467a938de11166da20 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.h
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.h
@@ -96,6 +96,9 @@ class ProfileChooserView : public content::WebContentsDelegate,
// content::WebContentsDelegate:
bool HandleContextMenu(const content::ContextMenuParams& params) override;
+ // views::WidgetDelegate:
+ views::View* GetInitiallyFocusedView() override;
msw 2015/07/13 21:37:30 nit: merge this with the BubbleDelegateView overri
wjmaclean 2015/07/14 12:26:18 Done.
+
// views::ButtonListener:
void ButtonPressed(views::Button* sender, const ui::Event& event) override;
@@ -220,6 +223,7 @@ class ProfileChooserView : public content::WebContentsDelegate,
scoped_ptr<AvatarMenu> avatar_menu_;
Browser* browser_;
+ views::View* initially_focused_view_;
// Other profiles used in the "fast profile switcher" view.
ButtonIndexes open_other_profile_indexes_map_;

Powered by Google App Engine
This is Rietveld 408576698