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

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

Issue 2687693002: Linux/Windows: Setting focus to the first profile in profile switcher (Closed)
Patch Set: Renaming |focus_first_profile| to |is_source_keyboard| Created 3 years, 10 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 7da9bda2945d4adb5f209b8d2ac7192b2aa42dec..3d41e57af49bba6f2019ab445b6c826d7cb4087a 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.h
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.h
@@ -59,7 +59,8 @@ class ProfileChooserView : public content::WebContentsDelegate,
const signin::ManageAccountsParams& manage_accounts_params,
signin_metrics::AccessPoint access_point,
views::View* anchor_view,
- Browser* browser);
+ Browser* browser,
+ bool is_source_keyboard);
static bool IsShowing();
static void Hide();
@@ -127,6 +128,9 @@ class ProfileChooserView : public content::WebContentsDelegate,
AvatarMenu* avatar_menu);
void ShowViewFromMode(profiles::BubbleViewMode mode);
+ // Focuses the first profile button in the menu list.
+ void FocusFirstProfileButton();
+
// Creates the profile chooser view.
views::View* CreateProfileChooserView(AvatarMenu* avatar_menu);
@@ -261,6 +265,7 @@ class ProfileChooserView : public content::WebContentsDelegate,
views::LabelButton* current_profile_card_;
// Action buttons.
+ views::LabelButton* first_profile_button_;
views::LabelButton* guest_profile_button_;
views::LabelButton* users_button_;
views::LabelButton* go_incognito_button_;
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/profiles/profile_chooser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698